mocks

package
v0.0.0-...-e0d14af Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioRepository

type AudioRepository struct {
	mock.Mock
}

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

func (*AudioRepository) FindAudioIDByText

func (_m *AudioRepository) FindAudioIDByText(ctx context.Context, lang5 domain.Lang5, text string) (domain.AudioID, error)

FindAudioIDByText provides a mock function with given fields: ctx, lang5, text

func (*AudioRepository) FindByLangAndText

func (_m *AudioRepository) FindByLangAndText(ctx context.Context, lang5 domain.Lang5, text string) (service.Audio, error)

FindByLangAndText provides a mock function with given fields: ctx, lang5, text

type RepositoryFactory

type RepositoryFactory struct {
	mock.Mock
}

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

type SynthesizerClient struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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