Documentation ¶
Index ¶
- type AudioRepository
- func (_m *AudioRepository) AddAudio(ctx context.Context, lang5 domain.Lang5, text string, audioContent string) (domain.AudioID, error)
- func (_m *AudioRepository) FindAudioByAudioID(ctx context.Context, audioID domain.AudioID) (service.Audio, error)
- func (_m *AudioRepository) FindAudioIDByText(ctx context.Context, lang5 domain.Lang5, text string) (domain.AudioID, error)
- func (_m *AudioRepository) FindByLangAndText(ctx context.Context, lang5 domain.Lang5, text string) (service.Audio, error)
- type RepositoryFactory
- type SynthesizerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioRepository ¶
AudioRepository is an autogenerated mock type for the AudioRepository type
func NewAudioRepository ¶
func NewAudioRepository(t testing.TB) *AudioRepository
NewAudioRepository creates a new instance of AudioRepository. It also registers a cleanup function to assert the mocks expectations.
func (*AudioRepository) AddAudio ¶
func (_m *AudioRepository) AddAudio(ctx context.Context, lang5 domain.Lang5, text string, audioContent string) (domain.AudioID, error)
AddAudio provides a mock function with given fields: ctx, lang5, text, audioContent
func (*AudioRepository) FindAudioByAudioID ¶
func (_m *AudioRepository) FindAudioByAudioID(ctx context.Context, audioID domain.AudioID) (service.Audio, error)
FindAudioByAudioID provides a mock function with given fields: ctx, audioID
type RepositoryFactory ¶
RepositoryFactory is an autogenerated mock type for the RepositoryFactory type
func NewRepositoryFactory ¶
func NewRepositoryFactory(t testing.TB) *RepositoryFactory
NewRepositoryFactory creates a new instance of RepositoryFactory. It also registers a cleanup function to assert the mocks expectations.
func (*RepositoryFactory) NewAudioRepository ¶
func (_m *RepositoryFactory) NewAudioRepository(ctx context.Context) service.AudioRepository
NewAudioRepository provides a mock function with given fields: ctx
type SynthesizerClient ¶
SynthesizerClient is an autogenerated mock type for the SynthesizerClient type
func NewSynthesizerClient ¶
func NewSynthesizerClient(t testing.TB) *SynthesizerClient
NewSynthesizerClient creates a new instance of SynthesizerClient. It also registers a cleanup function to assert the mocks expectations.
func (*SynthesizerClient) Synthesize ¶
func (_m *SynthesizerClient) Synthesize(ctx context.Context, lang5 domain.Lang5, text string) (string, error)
Synthesize provides a mock function with given fields: ctx, lang5, text