package transcode import "testing" func TestWhisperOptions(t *testing.T) { o := WhisperOptions() if err := o.Validate(); err != nil { t.Fatal(err) } if o.SampleRate != 16000 || o.Channels != 1 { t.Fatalf("unexpected whisper opts: %+v", o) } } func TestResolveFormat_unknown(t *testing.T) { _, err := ResolveFormat("xyz") if err == nil { t.Fatal("expected error") } }