Files
gateway-telegram/test/testutil/fake_speech_transcriber.go
T
2026-04-16 19:39:02 +02:00

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
}