mocks

package
v0.0.0-...-2f4d8a3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TatoebaClient

type TatoebaClient struct {
	mock.Mock
}

TatoebaClient is an autogenerated mock type for the TatoebaClient type

func NewTatoebaClient

func NewTatoebaClient(t testing.TB) *TatoebaClient

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

func (*TatoebaClient) FindSentenceBySentenceNumber

func (_m *TatoebaClient) FindSentenceBySentenceNumber(ctx context.Context, sentenceNumber int) (service.TatoebaSentence, error)

FindSentenceBySentenceNumber provides a mock function with given fields: ctx, sentenceNumber

func (*TatoebaClient) FindSentencePairs

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

func (_m *TatoebaClient) ImportLinks(ctx context.Context, reader io.Reader) error

ImportLinks provides a mock function with given fields: ctx, reader

func (*TatoebaClient) ImportSentences

func (_m *TatoebaClient) ImportSentences(ctx context.Context, reader io.Reader) error

ImportSentences provides a mock function with given fields: ctx, reader

type TatoebaSentence

type TatoebaSentence struct {
	mock.Mock
}

TatoebaSentence is an autogenerated mock type for the TatoebaSentence type

func NewTatoebaSentence

func NewTatoebaSentence(t testing.TB) *TatoebaSentence

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

func (*TatoebaSentence) GetAuthor

func (_m *TatoebaSentence) GetAuthor() string

GetAuthor provides a mock function with given fields:

func (*TatoebaSentence) GetLang2

func (_m *TatoebaSentence) GetLang2() domain.Lang2

GetLang2 provides a mock function with given fields:

func (*TatoebaSentence) GetSentenceNumber

func (_m *TatoebaSentence) GetSentenceNumber() int

GetSentenceNumber provides a mock function with given fields:

func (*TatoebaSentence) GetText

func (_m *TatoebaSentence) GetText() string

GetText provides a mock function with given fields:

func (*TatoebaSentence) GetUpdatedAt

func (_m *TatoebaSentence) GetUpdatedAt() time.Time

GetUpdatedAt provides a mock function with given fields:

type TatoebaSentencePair

type TatoebaSentencePair struct {
	mock.Mock
}

TatoebaSentencePair is an autogenerated mock type for the TatoebaSentencePair type

func NewTatoebaSentencePair

func NewTatoebaSentencePair(t testing.TB) *TatoebaSentencePair

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

func (*TatoebaSentencePair) GetDst

GetDst provides a mock function with given fields:

func (*TatoebaSentencePair) GetSrc

GetSrc provides a mock function with given fields:

type TranslatorClient

type TranslatorClient struct {
	mock.Mock
}

TranslatorClient is an autogenerated mock type for the TranslatorClient type

func NewTranslatorClient

func NewTranslatorClient(t testing.TB) *TranslatorClient

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

func (*TranslatorClient) AddTranslation

func (_m *TranslatorClient) AddTranslation(ctx context.Context, param service.TranslationAddParameter) error

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

func (*TranslatorClient) DictionaryLookup

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

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

func (*TranslatorClient) DictionaryLookupWithPos

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

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

func (*TranslatorClient) FindTranslationByTextAndPos

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

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

func (*TranslatorClient) FindTranslationsByFirstLetter

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

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

func (*TranslatorClient) FindTranslationsByText

func (_m *TranslatorClient) FindTranslationsByText(ctx context.Context, lang2 domain.Lang2, text string) ([]commondomain.Translation, error)

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

func (*TranslatorClient) RemoveTranslation

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

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

func (*TranslatorClient) UpdateTranslation

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

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

Jump to

Keyboard shortcuts

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