feat: initial commit
This commit is contained in:
14
test/testutil/fake_speech_transcriber.go
Normal file
14
test/testutil/fake_speech_transcriber.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package testutil
|
||||
|
||||
import "context"
|
||||
|
||||
type FakeSpeechTranscriber struct {
|
||||
Transcript string
|
||||
Error error
|
||||
CallCount int
|
||||
}
|
||||
|
||||
func (f *FakeSpeechTranscriber) Transcribe(_ context.Context, _ []byte, _ string) (string, error) {
|
||||
f.CallCount++
|
||||
return f.Transcript, f.Error
|
||||
}
|
||||
Reference in New Issue
Block a user