go-clean-template
156 строк · 5.2 Кб
1// Code generated by MockGen. DO NOT EDIT.
2// Source: ./internal/usecase/interfaces.go
3
4// Package usecase_test is a generated GoMock package.
5package usecase_test6
7import (8context "context"9reflect "reflect"10
11entity "github.com/evrone/go-clean-template/internal/entity"12gomock "github.com/golang/mock/gomock"13)
14
15// MockTranslation is a mock of Translation interface.
16type MockTranslation struct {17ctrl *gomock.Controller18recorder *MockTranslationMockRecorder19}
20
21// MockTranslationMockRecorder is the mock recorder for MockTranslation.
22type MockTranslationMockRecorder struct {23mock *MockTranslation24}
25
26// NewMockTranslation creates a new mock instance.
27func NewMockTranslation(ctrl *gomock.Controller) *MockTranslation {28mock := &MockTranslation{ctrl: ctrl}29mock.recorder = &MockTranslationMockRecorder{mock}30return mock31}
32
33// EXPECT returns an object that allows the caller to indicate expected use.
34func (m *MockTranslation) EXPECT() *MockTranslationMockRecorder {35return m.recorder36}
37
38// History mocks base method.
39func (m *MockTranslation) History(arg0 context.Context) ([]entity.Translation, error) {40m.ctrl.T.Helper()41ret := m.ctrl.Call(m, "History", arg0)42ret0, _ := ret[0].([]entity.Translation)43ret1, _ := ret[1].(error)44return ret0, ret145}
46
47// History indicates an expected call of History.
48func (mr *MockTranslationMockRecorder) History(arg0 interface{}) *gomock.Call {49mr.mock.ctrl.T.Helper()50return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "History", reflect.TypeOf((*MockTranslation)(nil).History), arg0)51}
52
53// Translate mocks base method.
54func (m *MockTranslation) Translate(arg0 context.Context, arg1 entity.Translation) (entity.Translation, error) {55m.ctrl.T.Helper()56ret := m.ctrl.Call(m, "Translate", arg0, arg1)57ret0, _ := ret[0].(entity.Translation)58ret1, _ := ret[1].(error)59return ret0, ret160}
61
62// Translate indicates an expected call of Translate.
63func (mr *MockTranslationMockRecorder) Translate(arg0, arg1 interface{}) *gomock.Call {64mr.mock.ctrl.T.Helper()65return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Translate", reflect.TypeOf((*MockTranslation)(nil).Translate), arg0, arg1)66}
67
68// MockTranslationRepo is a mock of TranslationRepo interface.
69type MockTranslationRepo struct {70ctrl *gomock.Controller71recorder *MockTranslationRepoMockRecorder72}
73
74// MockTranslationRepoMockRecorder is the mock recorder for MockTranslationRepo.
75type MockTranslationRepoMockRecorder struct {76mock *MockTranslationRepo77}
78
79// NewMockTranslationRepo creates a new mock instance.
80func NewMockTranslationRepo(ctrl *gomock.Controller) *MockTranslationRepo {81mock := &MockTranslationRepo{ctrl: ctrl}82mock.recorder = &MockTranslationRepoMockRecorder{mock}83return mock84}
85
86// EXPECT returns an object that allows the caller to indicate expected use.
87func (m *MockTranslationRepo) EXPECT() *MockTranslationRepoMockRecorder {88return m.recorder89}
90
91// GetHistory mocks base method.
92func (m *MockTranslationRepo) GetHistory(arg0 context.Context) ([]entity.Translation, error) {93m.ctrl.T.Helper()94ret := m.ctrl.Call(m, "GetHistory", arg0)95ret0, _ := ret[0].([]entity.Translation)96ret1, _ := ret[1].(error)97return ret0, ret198}
99
100// GetHistory indicates an expected call of GetHistory.
101func (mr *MockTranslationRepoMockRecorder) GetHistory(arg0 interface{}) *gomock.Call {102mr.mock.ctrl.T.Helper()103return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHistory", reflect.TypeOf((*MockTranslationRepo)(nil).GetHistory), arg0)104}
105
106// Store mocks base method.
107func (m *MockTranslationRepo) Store(arg0 context.Context, arg1 entity.Translation) error {108m.ctrl.T.Helper()109ret := m.ctrl.Call(m, "Store", arg0, arg1)110ret0, _ := ret[0].(error)111return ret0112}
113
114// Store indicates an expected call of Store.
115func (mr *MockTranslationRepoMockRecorder) Store(arg0, arg1 interface{}) *gomock.Call {116mr.mock.ctrl.T.Helper()117return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockTranslationRepo)(nil).Store), arg0, arg1)118}
119
120// MockTranslationWebAPI is a mock of TranslationWebAPI interface.
121type MockTranslationWebAPI struct {122ctrl *gomock.Controller123recorder *MockTranslationWebAPIMockRecorder124}
125
126// MockTranslationWebAPIMockRecorder is the mock recorder for MockTranslationWebAPI.
127type MockTranslationWebAPIMockRecorder struct {128mock *MockTranslationWebAPI129}
130
131// NewMockTranslationWebAPI creates a new mock instance.
132func NewMockTranslationWebAPI(ctrl *gomock.Controller) *MockTranslationWebAPI {133mock := &MockTranslationWebAPI{ctrl: ctrl}134mock.recorder = &MockTranslationWebAPIMockRecorder{mock}135return mock136}
137
138// EXPECT returns an object that allows the caller to indicate expected use.
139func (m *MockTranslationWebAPI) EXPECT() *MockTranslationWebAPIMockRecorder {140return m.recorder141}
142
143// Translate mocks base method.
144func (m *MockTranslationWebAPI) Translate(arg0 entity.Translation) (entity.Translation, error) {145m.ctrl.T.Helper()146ret := m.ctrl.Call(m, "Translate", arg0)147ret0, _ := ret[0].(entity.Translation)148ret1, _ := ret[1].(error)149return ret0, ret1150}
151
152// Translate indicates an expected call of Translate.
153func (mr *MockTranslationWebAPIMockRecorder) Translate(arg0 interface{}) *gomock.Call {154mr.mock.ctrl.T.Helper()155return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Translate", reflect.TypeOf((*MockTranslationWebAPI)(nil).Translate), arg0)156}
157