Documentation ¶
Index ¶
- type AdminUsecase
- func (_m *AdminUsecase) AddTranslation(ctx context.Context, param service.TranslationAddParameter) error
- func (_m *AdminUsecase) FindTranslationByText(ctx context.Context, lang2 domain.Lang2, text string) ([]domain.Translation, error)
- func (_m *AdminUsecase) FindTranslationByTextAndPos(ctx context.Context, lang2 domain.Lang2, text string, pos domain.WordPos) (domain.Translation, error)
- func (_m *AdminUsecase) FindTranslationsByFirstLetter(ctx context.Context, lang2 domain.Lang2, firstLetter string) ([]domain.Translation, error)
- func (_m *AdminUsecase) RemoveTranslation(ctx context.Context, lang2 domain.Lang2, text string, pos domain.WordPos) error
- func (_m *AdminUsecase) UpdateTranslation(ctx context.Context, lang2 domain.Lang2, text string, pos domain.WordPos, ...) error
- type UserUsecase
- func (_m *UserUsecase) DictionaryLookup(ctx context.Context, fromLang domain.Lang2, toLang domain.Lang2, text string) ([]domain.Translation, error)
- func (_m *UserUsecase) DictionaryLookupWithPos(ctx context.Context, fromLang domain.Lang2, toLang domain.Lang2, text string, ...) (domain.Translation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminUsecase ¶
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 service.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 service.TranslationUpdateParameter) error
UpdateTranslation provides a mock function with given fields: ctx, lang2, text, pos, param
type UserUsecase ¶
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