mocks

package
v0.0.0-...-04b3042 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 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 AdminUsecase

type AdminUsecase struct {
	mock.Mock
}

AdminUsecase is an autogenerated mock type for the AdminUsecase type

func NewAdminUsecase

func NewAdminUsecase(t testing.TB) *AdminUsecase

NewAdminUsecase creates a new instance of AdminUsecase. It also registers a cleanup function to assert the mocks expectations.

func (*AdminUsecase) AddTranslation

func (_m *AdminUsecase) AddTranslation(ctx context.Context, param domain.TranslationAddParameter) error

AddTranslation provides a mock function with given fields: ctx, param

func (*AdminUsecase) FindTranslationByText

func (_m *AdminUsecase) FindTranslationByText(ctx context.Context, lang2 domain.Lang2, text string) ([]domain.Translation, error)

FindTranslationByText provides a mock function with given fields: ctx, lang2, text

func (*AdminUsecase) FindTranslationByTextAndPos

func (_m *AdminUsecase) FindTranslationByTextAndPos(ctx context.Context, lang2 domain.Lang2, text string, pos domain.WordPos) (domain.Translation, error)

FindTranslationByTextAndPos provides a mock function with given fields: ctx, lang2, text, pos

func (*AdminUsecase) FindTranslationsByFirstLetter

func (_m *AdminUsecase) FindTranslationsByFirstLetter(ctx context.Context, lang2 domain.Lang2, firstLetter string) ([]domain.Translation, error)

FindTranslationsByFirstLetter provides a mock function with given fields: ctx, lang2, firstLetter

func (*AdminUsecase) RemoveTranslation

func (_m *AdminUsecase) RemoveTranslation(ctx context.Context, lang2 domain.Lang2, text string, pos domain.WordPos) error

RemoveTranslation provides a mock function with given fields: ctx, lang2, text, pos

func (*AdminUsecase) UpdateTranslation

func (_m *AdminUsecase) UpdateTranslation(ctx context.Context, lang2 domain.Lang2, text string, pos domain.WordPos, param domain.TranslationUpdateParameter) error

UpdateTranslation provides a mock function with given fields: ctx, lang2, text, pos, param

type UserUsecase

type UserUsecase struct {
	mock.Mock
}

UserUsecase is an autogenerated mock type for the UserUsecase type

func NewUserUsecase

func NewUserUsecase(t testing.TB) *UserUsecase

NewUserUsecase creates a new instance of UserUsecase. It also registers a cleanup function to assert the mocks expectations.

func (*UserUsecase) DictionaryLookup

func (_m *UserUsecase) DictionaryLookup(ctx context.Context, fromLang domain.Lang2, toLang domain.Lang2, text string) ([]domain.Translation, error)

DictionaryLookup provides a mock function with given fields: ctx, fromLang, toLang, text

func (*UserUsecase) DictionaryLookupWithPos

func (_m *UserUsecase) DictionaryLookupWithPos(ctx context.Context, fromLang domain.Lang2, toLang domain.Lang2, text string, pos domain.WordPos) (domain.Translation, error)

DictionaryLookupWithPos provides a mock function with given fields: ctx, fromLang, toLang, text, pos

Jump to

Keyboard shortcuts

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