15 lines
275 B
Go
15 lines
275 B
Go
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
|
|
}
|