X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/80e348724041a694002fc38f57e8868b9b9a2be9..c781f79f3c8cb9a7577ee1574d196988da2719b3:/voice_transcriber_test.go diff --git a/voice_transcriber_test.go b/voice_transcriber_test.go index c9e24bc..c04d091 100644 --- a/voice_transcriber_test.go +++ b/voice_transcriber_test.go @@ -29,6 +29,7 @@ printf ' A made-up voice transcript.\n' > "$output.txt" printf 'private speech in process output' printf 'private speech in process errors' >&2 `) + data := []byte("made-up audio") text := transcriber.Text(t.Context(), store, data) require.Contains(t, text, "[voice ") @@ -70,6 +71,7 @@ func TestVoiceFailuresKeepStoredAudioAndSafeMarkers(t *testing.T) { script: "while [ \"$1\" != --output-file ]; do shift; done; shift; touch \"$1.txt\"", }, } + for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { store, transcriber := voiceTestInput(t, tc.script) @@ -208,6 +210,7 @@ func TestVoiceLookupHonorsExplicitThenNixThenPath(t *testing.T) { program: valid.Transcriber, }, } + for _, tc := range testCases { t.Run(tc.name, func(t *testing.T) { program, model, err := voiceLookup(tc.config, tc.program, tc.model)