Files
gateway-telegram/test/testutil/fake_speech_transcriber.go

19 lines
365 B
Go

package testutil
import (
"context"
"github.com/paramah/gw_telegram/internal/domain/port"
)
type FakeSpeechTranscriber struct {
Result port.TranscriptionResult
Error error
CallCount int
}
func (f *FakeSpeechTranscriber) Transcribe(_ context.Context, _ []byte, _ string) (port.TranscriptionResult, error) {
f.CallCount++
return f.Result, f.Error
}