Files
gateway-telegram/test/testutil/fake_speech_transcriber.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
}