go-clean-template

Форк
0
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.
5
package usecase_test
6

7
import (
8
	context "context"
9
	reflect "reflect"
10

11
	entity "github.com/evrone/go-clean-template/internal/entity"
12
	gomock "github.com/golang/mock/gomock"
13
)
14

15
// MockTranslation is a mock of Translation interface.
16
type MockTranslation struct {
17
	ctrl     *gomock.Controller
18
	recorder *MockTranslationMockRecorder
19
}
20

21
// MockTranslationMockRecorder is the mock recorder for MockTranslation.
22
type MockTranslationMockRecorder struct {
23
	mock *MockTranslation
24
}
25

26
// NewMockTranslation creates a new mock instance.
27
func NewMockTranslation(ctrl *gomock.Controller) *MockTranslation {
28
	mock := &MockTranslation{ctrl: ctrl}
29
	mock.recorder = &MockTranslationMockRecorder{mock}
30
	return mock
31
}
32

33
// EXPECT returns an object that allows the caller to indicate expected use.
34
func (m *MockTranslation) EXPECT() *MockTranslationMockRecorder {
35
	return m.recorder
36
}
37

38
// History mocks base method.
39
func (m *MockTranslation) History(arg0 context.Context) ([]entity.Translation, error) {
40
	m.ctrl.T.Helper()
41
	ret := m.ctrl.Call(m, "History", arg0)
42
	ret0, _ := ret[0].([]entity.Translation)
43
	ret1, _ := ret[1].(error)
44
	return ret0, ret1
45
}
46

47
// History indicates an expected call of History.
48
func (mr *MockTranslationMockRecorder) History(arg0 interface{}) *gomock.Call {
49
	mr.mock.ctrl.T.Helper()
50
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "History", reflect.TypeOf((*MockTranslation)(nil).History), arg0)
51
}
52

53
// Translate mocks base method.
54
func (m *MockTranslation) Translate(arg0 context.Context, arg1 entity.Translation) (entity.Translation, error) {
55
	m.ctrl.T.Helper()
56
	ret := m.ctrl.Call(m, "Translate", arg0, arg1)
57
	ret0, _ := ret[0].(entity.Translation)
58
	ret1, _ := ret[1].(error)
59
	return ret0, ret1
60
}
61

62
// Translate indicates an expected call of Translate.
63
func (mr *MockTranslationMockRecorder) Translate(arg0, arg1 interface{}) *gomock.Call {
64
	mr.mock.ctrl.T.Helper()
65
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Translate", reflect.TypeOf((*MockTranslation)(nil).Translate), arg0, arg1)
66
}
67

68
// MockTranslationRepo is a mock of TranslationRepo interface.
69
type MockTranslationRepo struct {
70
	ctrl     *gomock.Controller
71
	recorder *MockTranslationRepoMockRecorder
72
}
73

74
// MockTranslationRepoMockRecorder is the mock recorder for MockTranslationRepo.
75
type MockTranslationRepoMockRecorder struct {
76
	mock *MockTranslationRepo
77
}
78

79
// NewMockTranslationRepo creates a new mock instance.
80
func NewMockTranslationRepo(ctrl *gomock.Controller) *MockTranslationRepo {
81
	mock := &MockTranslationRepo{ctrl: ctrl}
82
	mock.recorder = &MockTranslationRepoMockRecorder{mock}
83
	return mock
84
}
85

86
// EXPECT returns an object that allows the caller to indicate expected use.
87
func (m *MockTranslationRepo) EXPECT() *MockTranslationRepoMockRecorder {
88
	return m.recorder
89
}
90

91
// GetHistory mocks base method.
92
func (m *MockTranslationRepo) GetHistory(arg0 context.Context) ([]entity.Translation, error) {
93
	m.ctrl.T.Helper()
94
	ret := m.ctrl.Call(m, "GetHistory", arg0)
95
	ret0, _ := ret[0].([]entity.Translation)
96
	ret1, _ := ret[1].(error)
97
	return ret0, ret1
98
}
99

100
// GetHistory indicates an expected call of GetHistory.
101
func (mr *MockTranslationRepoMockRecorder) GetHistory(arg0 interface{}) *gomock.Call {
102
	mr.mock.ctrl.T.Helper()
103
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHistory", reflect.TypeOf((*MockTranslationRepo)(nil).GetHistory), arg0)
104
}
105

106
// Store mocks base method.
107
func (m *MockTranslationRepo) Store(arg0 context.Context, arg1 entity.Translation) error {
108
	m.ctrl.T.Helper()
109
	ret := m.ctrl.Call(m, "Store", arg0, arg1)
110
	ret0, _ := ret[0].(error)
111
	return ret0
112
}
113

114
// Store indicates an expected call of Store.
115
func (mr *MockTranslationRepoMockRecorder) Store(arg0, arg1 interface{}) *gomock.Call {
116
	mr.mock.ctrl.T.Helper()
117
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Store", reflect.TypeOf((*MockTranslationRepo)(nil).Store), arg0, arg1)
118
}
119

120
// MockTranslationWebAPI is a mock of TranslationWebAPI interface.
121
type MockTranslationWebAPI struct {
122
	ctrl     *gomock.Controller
123
	recorder *MockTranslationWebAPIMockRecorder
124
}
125

126
// MockTranslationWebAPIMockRecorder is the mock recorder for MockTranslationWebAPI.
127
type MockTranslationWebAPIMockRecorder struct {
128
	mock *MockTranslationWebAPI
129
}
130

131
// NewMockTranslationWebAPI creates a new mock instance.
132
func NewMockTranslationWebAPI(ctrl *gomock.Controller) *MockTranslationWebAPI {
133
	mock := &MockTranslationWebAPI{ctrl: ctrl}
134
	mock.recorder = &MockTranslationWebAPIMockRecorder{mock}
135
	return mock
136
}
137

138
// EXPECT returns an object that allows the caller to indicate expected use.
139
func (m *MockTranslationWebAPI) EXPECT() *MockTranslationWebAPIMockRecorder {
140
	return m.recorder
141
}
142

143
// Translate mocks base method.
144
func (m *MockTranslationWebAPI) Translate(arg0 entity.Translation) (entity.Translation, error) {
145
	m.ctrl.T.Helper()
146
	ret := m.ctrl.Call(m, "Translate", arg0)
147
	ret0, _ := ret[0].(entity.Translation)
148
	ret1, _ := ret[1].(error)
149
	return ret0, ret1
150
}
151

152
// Translate indicates an expected call of Translate.
153
func (mr *MockTranslationWebAPIMockRecorder) Translate(arg0 interface{}) *gomock.Call {
154
	mr.mock.ctrl.T.Helper()
155
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Translate", reflect.TypeOf((*MockTranslationWebAPI)(nil).Translate), arg0)
156
}
157

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.