Documentation
¶
Index ¶
- type MockSpeechTranscriber
- type MockSpeechTranscriber_Expecter
- type MockSpeechTranscriber_Transcribe_Call
- func (_c *MockSpeechTranscriber_Transcribe_Call) Return(transcription speech.Transcription, err error) *MockSpeechTranscriber_Transcribe_Call
- func (_c *MockSpeechTranscriber_Transcribe_Call) Run(run func(ctx context.Context, audio []byte, language string)) *MockSpeechTranscriber_Transcribe_Call
- func (_c *MockSpeechTranscriber_Transcribe_Call) RunAndReturn(...) *MockSpeechTranscriber_Transcribe_Call
- type MockTranscriptionEnhancer
- type MockTranscriptionEnhancer_EnhanceTranscription_Call
- func (_c *MockTranscriptionEnhancer_EnhanceTranscription_Call) Return(enhanceResult textgen.EnhanceResult, err error) *MockTranscriptionEnhancer_EnhanceTranscription_Call
- func (_c *MockTranscriptionEnhancer_EnhanceTranscription_Call) Run(run func(ctx context.Context, transcript string)) *MockTranscriptionEnhancer_EnhanceTranscription_Call
- func (_c *MockTranscriptionEnhancer_EnhanceTranscription_Call) RunAndReturn(...) *MockTranscriptionEnhancer_EnhanceTranscription_Call
- type MockTranscriptionEnhancer_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSpeechTranscriber ¶
MockSpeechTranscriber is an autogenerated mock type for the SpeechTranscriber type
func NewMockSpeechTranscriber ¶
func NewMockSpeechTranscriber(t interface {
mock.TestingT
Cleanup(func())
}) *MockSpeechTranscriber
NewMockSpeechTranscriber creates a new instance of MockSpeechTranscriber. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockSpeechTranscriber) EXPECT ¶
func (_m *MockSpeechTranscriber) EXPECT() *MockSpeechTranscriber_Expecter
func (*MockSpeechTranscriber) Transcribe ¶
func (_mock *MockSpeechTranscriber) Transcribe(ctx context.Context, audio []byte, language string) (speech.Transcription, error)
Transcribe provides a mock function for the type MockSpeechTranscriber
type MockSpeechTranscriber_Expecter ¶
type MockSpeechTranscriber_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSpeechTranscriber_Expecter) Transcribe ¶
func (_e *MockSpeechTranscriber_Expecter) Transcribe(ctx any, audio any, language any) *MockSpeechTranscriber_Transcribe_Call
Transcribe is a helper method to define mock.On call
- ctx context.Context
- audio []byte
- language string
type MockSpeechTranscriber_Transcribe_Call ¶
MockSpeechTranscriber_Transcribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transcribe'
func (*MockSpeechTranscriber_Transcribe_Call) Return ¶
func (_c *MockSpeechTranscriber_Transcribe_Call) Return(transcription speech.Transcription, err error) *MockSpeechTranscriber_Transcribe_Call
func (*MockSpeechTranscriber_Transcribe_Call) Run ¶
func (_c *MockSpeechTranscriber_Transcribe_Call) Run(run func(ctx context.Context, audio []byte, language string)) *MockSpeechTranscriber_Transcribe_Call
func (*MockSpeechTranscriber_Transcribe_Call) RunAndReturn ¶
func (_c *MockSpeechTranscriber_Transcribe_Call) RunAndReturn(run func(ctx context.Context, audio []byte, language string) (speech.Transcription, error)) *MockSpeechTranscriber_Transcribe_Call
type MockTranscriptionEnhancer ¶
MockTranscriptionEnhancer is an autogenerated mock type for the TranscriptionEnhancer type
func NewMockTranscriptionEnhancer ¶
func NewMockTranscriptionEnhancer(t interface {
mock.TestingT
Cleanup(func())
}) *MockTranscriptionEnhancer
NewMockTranscriptionEnhancer creates a new instance of MockTranscriptionEnhancer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockTranscriptionEnhancer) EXPECT ¶
func (_m *MockTranscriptionEnhancer) EXPECT() *MockTranscriptionEnhancer_Expecter
func (*MockTranscriptionEnhancer) EnhanceTranscription ¶
func (_mock *MockTranscriptionEnhancer) EnhanceTranscription(ctx context.Context, transcript string) (textgen.EnhanceResult, error)
EnhanceTranscription provides a mock function for the type MockTranscriptionEnhancer
type MockTranscriptionEnhancer_EnhanceTranscription_Call ¶
MockTranscriptionEnhancer_EnhanceTranscription_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnhanceTranscription'
func (*MockTranscriptionEnhancer_EnhanceTranscription_Call) Return ¶
func (_c *MockTranscriptionEnhancer_EnhanceTranscription_Call) Return(enhanceResult textgen.EnhanceResult, err error) *MockTranscriptionEnhancer_EnhanceTranscription_Call
func (*MockTranscriptionEnhancer_EnhanceTranscription_Call) Run ¶
func (_c *MockTranscriptionEnhancer_EnhanceTranscription_Call) Run(run func(ctx context.Context, transcript string)) *MockTranscriptionEnhancer_EnhanceTranscription_Call
func (*MockTranscriptionEnhancer_EnhanceTranscription_Call) RunAndReturn ¶
func (_c *MockTranscriptionEnhancer_EnhanceTranscription_Call) RunAndReturn(run func(ctx context.Context, transcript string) (textgen.EnhanceResult, error)) *MockTranscriptionEnhancer_EnhanceTranscription_Call
type MockTranscriptionEnhancer_Expecter ¶
type MockTranscriptionEnhancer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTranscriptionEnhancer_Expecter) EnhanceTranscription ¶
func (_e *MockTranscriptionEnhancer_Expecter) EnhanceTranscription(ctx any, transcript any) *MockTranscriptionEnhancer_EnhanceTranscription_Call
EnhanceTranscription is a helper method to define mock.On call
- ctx context.Context
- transcript string