mocks

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockSpeechTranscriber

type MockSpeechTranscriber struct {
	mock.Mock
}

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 (*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

type MockSpeechTranscriber_Transcribe_Call struct {
	*mock.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 (*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

type MockTranscriptionEnhancer struct {
	mock.Mock
}

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 (*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

type MockTranscriptionEnhancer_EnhanceTranscription_Call struct {
	*mock.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 (*MockTranscriptionEnhancer_EnhanceTranscription_Call) Run

func (*MockTranscriptionEnhancer_EnhanceTranscription_Call) RunAndReturn

type MockTranscriptionEnhancer_Expecter

type MockTranscriptionEnhancer_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockTranscriptionEnhancer_Expecter) EnhanceTranscription

EnhanceTranscription is a helper method to define mock.On call

  • ctx context.Context
  • transcript string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL