mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-12 09:31:01 +01:00
A 29-assertion suite covering all six functions. transcribe_venv.sh measures 53/53 = 100.00% through the directory runner, and check_shell_coverage.sh passes it with the exemption deleted. Assertions are on recorded ARGV because which index a pip install points at IS the behaviour: the OpenNMT cu12 wheel index on the NVIDIA path, the CPU-only torch index for diarization (forced to avoid mismatched CUDA builds). "pip was called" cannot see either. generate_test_audio's four-deep fallback chain is covered by failing each generator in turn. Every stub materialises the wav, because the chain advances on `[[ ! -s $tmpwav ]]` -- a record-only stub would silently exercise the branch after the one under test. One assertion was wrong and got corrected rather than forced: I claimed a wholly-failing pip still returns 0, but the final `python "$PY_HELPERS" deps-installed` carries no `|| log`, so it does not. The suite now asserts what the subject actually guarantees -- all four warnings emitted, no earlier failure aborting the run. SC2016 fixed at the source with a quoted heredoc, not suppressed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016sxxsDHWgdRhmdmzNMA6XM |
||
|---|---|---|
| .. | ||
| features | ||
| feedback-appimage | ||
| fixes | ||
| fresh-install | ||
| lib | ||
| misc/testsAndMisc-bash | ||
| utils | ||
| install_code_insiders.sh | ||
| install_feedback.sh | ||
| install_joplin.sh | ||
| install_ungoogled_chromium_ubuntu.sh | ||
| test_bad.sh | ||
| test_removal.sh | ||