Documentation
¶
Index ¶
- type TatoebaClient
- func (_m *TatoebaClient) FindSentenceBySentenceNumber(ctx context.Context, sentenceNumber int) (service.TatoebaSentence, error)
- func (_m *TatoebaClient) FindSentencePairs(ctx context.Context, param service.TatoebaSentenceSearchCondition) (*service.TatoebaSentencePairSearchResult, error)
- func (_m *TatoebaClient) ImportLinks(ctx context.Context, reader io.Reader) error
- func (_m *TatoebaClient) ImportSentences(ctx context.Context, reader io.Reader) error
- type TatoebaSentence
- type TatoebaSentencePair
- type TranslatorClient
- func (_m *TranslatorClient) AddTranslation(ctx context.Context, param service.TranslationAddParameter) error
- func (_m *TranslatorClient) DictionaryLookup(ctx context.Context, fromLang domain.Lang2, toLang domain.Lang2, text string) ([]commondomain.Translation, error)
- func (_m *TranslatorClient) DictionaryLookupWithPos(ctx context.Context, fromLang domain.Lang2, toLang domain.Lang2, text string, ...) (commondomain.Translation, error)
- func (_m *TranslatorClient) FindTranslationByTextAndPos(ctx context.Context, lang2 domain.Lang2, text string, pos commondomain.WordPos) (commondomain.Translation, error)
- func (_m *TranslatorClient) FindTranslationsByFirstLetter(ctx context.Context, lang2 domain.Lang2, firstLetter string) ([]commondomain.Translation, error)
- func (_m *TranslatorClient) FindTranslationsByText(ctx context.Context, lang2 domain.Lang2, text string) ([]commondomain.Translation, error)
- func (_m *TranslatorClient) RemoveTranslation(ctx context.Context, lang2 domain.Lang2, text string, pos commondomain.WordPos) error
- func (_m *TranslatorClient) UpdateTranslation(ctx context.Context, lang2 domain.Lang2, text string, pos commondomain.WordPos, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TatoebaClient ¶
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 ¶
func (_m *TatoebaClient) FindSentencePairs(ctx context.Context, param service.TatoebaSentenceSearchCondition) (*service.TatoebaSentencePairSearchResult, error)
FindSentencePairs provides a mock function with given fields: ctx, param
func (*TatoebaClient) ImportLinks ¶
ImportLinks provides a mock function with given fields: ctx, reader
func (*TatoebaClient) ImportSentences ¶
ImportSentences provides a mock function with given fields: ctx, reader
type TatoebaSentence ¶
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 ¶
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 ¶
func (_m *TatoebaSentencePair) GetDst() service.TatoebaSentence
GetDst provides a mock function with given fields:
func (*TatoebaSentencePair) GetSrc ¶
func (_m *TatoebaSentencePair) GetSrc() service.TatoebaSentence
GetSrc provides a mock function with given fields:
type TranslatorClient ¶
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