mocks

package
v0.0.0-...-df3562f Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SynthesizerUsecase

type SynthesizerUsecase struct {
	mock.Mock
}

SynthesizerUsecase is an autogenerated mock type for the SynthesizerUsecase type

func NewSynthesizerUsecase

func NewSynthesizerUsecase(t interface {
	mock.TestingT
	Cleanup(func())
}) *SynthesizerUsecase

NewSynthesizerUsecase creates a new instance of SynthesizerUsecase. 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 (*SynthesizerUsecase) EXPECT

func (*SynthesizerUsecase) Synthesize

func (_m *SynthesizerUsecase) Synthesize(ctx context.Context, lang5 *domain.Lang5, void string, text string) (*srcdomain.AudioModel, error)

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

type SynthesizerUsecase_Expecter

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

func (*SynthesizerUsecase_Expecter) Synthesize

func (_e *SynthesizerUsecase_Expecter) Synthesize(ctx interface{}, lang5 interface{}, void interface{}, text interface{}) *SynthesizerUsecase_Synthesize_Call

Synthesize is a helper method to define mock.On call

  • ctx context.Context
  • lang5 *domain.Lang5
  • void string
  • text string

type SynthesizerUsecase_Synthesize_Call

type SynthesizerUsecase_Synthesize_Call struct {
	*mock.Call
}

SynthesizerUsecase_Synthesize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Synthesize'

func (*SynthesizerUsecase_Synthesize_Call) Return

func (*SynthesizerUsecase_Synthesize_Call) Run

func (*SynthesizerUsecase_Synthesize_Call) RunAndReturn

Jump to

Keyboard shortcuts

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