-
Notifications
You must be signed in to change notification settings - Fork 473
/
mocks.go
193 lines (162 loc) · 5.9 KB
/
mocks.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/gardener/gardener/pkg/operation/botanist/component (interfaces: Deployer,Waiter,DeployWaiter)
// Package component is a generated GoMock package.
package component
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockDeployer is a mock of Deployer interface.
type MockDeployer struct {
ctrl *gomock.Controller
recorder *MockDeployerMockRecorder
}
// MockDeployerMockRecorder is the mock recorder for MockDeployer.
type MockDeployerMockRecorder struct {
mock *MockDeployer
}
// NewMockDeployer creates a new mock instance.
func NewMockDeployer(ctrl *gomock.Controller) *MockDeployer {
mock := &MockDeployer{ctrl: ctrl}
mock.recorder = &MockDeployerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockDeployer) EXPECT() *MockDeployerMockRecorder {
return m.recorder
}
// Deploy mocks base method.
func (m *MockDeployer) Deploy(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Deploy", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Deploy indicates an expected call of Deploy.
func (mr *MockDeployerMockRecorder) Deploy(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deploy", reflect.TypeOf((*MockDeployer)(nil).Deploy), arg0)
}
// Destroy mocks base method.
func (m *MockDeployer) Destroy(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Destroy", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Destroy indicates an expected call of Destroy.
func (mr *MockDeployerMockRecorder) Destroy(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockDeployer)(nil).Destroy), arg0)
}
// MockWaiter is a mock of Waiter interface.
type MockWaiter struct {
ctrl *gomock.Controller
recorder *MockWaiterMockRecorder
}
// MockWaiterMockRecorder is the mock recorder for MockWaiter.
type MockWaiterMockRecorder struct {
mock *MockWaiter
}
// NewMockWaiter creates a new mock instance.
func NewMockWaiter(ctrl *gomock.Controller) *MockWaiter {
mock := &MockWaiter{ctrl: ctrl}
mock.recorder = &MockWaiterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWaiter) EXPECT() *MockWaiterMockRecorder {
return m.recorder
}
// Wait mocks base method.
func (m *MockWaiter) Wait(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Wait", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Wait indicates an expected call of Wait.
func (mr *MockWaiterMockRecorder) Wait(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wait", reflect.TypeOf((*MockWaiter)(nil).Wait), arg0)
}
// WaitCleanup mocks base method.
func (m *MockWaiter) WaitCleanup(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WaitCleanup", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// WaitCleanup indicates an expected call of WaitCleanup.
func (mr *MockWaiterMockRecorder) WaitCleanup(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitCleanup", reflect.TypeOf((*MockWaiter)(nil).WaitCleanup), arg0)
}
// MockDeployWaiter is a mock of DeployWaiter interface.
type MockDeployWaiter struct {
ctrl *gomock.Controller
recorder *MockDeployWaiterMockRecorder
}
// MockDeployWaiterMockRecorder is the mock recorder for MockDeployWaiter.
type MockDeployWaiterMockRecorder struct {
mock *MockDeployWaiter
}
// NewMockDeployWaiter creates a new mock instance.
func NewMockDeployWaiter(ctrl *gomock.Controller) *MockDeployWaiter {
mock := &MockDeployWaiter{ctrl: ctrl}
mock.recorder = &MockDeployWaiterMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockDeployWaiter) EXPECT() *MockDeployWaiterMockRecorder {
return m.recorder
}
// Deploy mocks base method.
func (m *MockDeployWaiter) Deploy(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Deploy", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Deploy indicates an expected call of Deploy.
func (mr *MockDeployWaiterMockRecorder) Deploy(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Deploy", reflect.TypeOf((*MockDeployWaiter)(nil).Deploy), arg0)
}
// Destroy mocks base method.
func (m *MockDeployWaiter) Destroy(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Destroy", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Destroy indicates an expected call of Destroy.
func (mr *MockDeployWaiterMockRecorder) Destroy(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Destroy", reflect.TypeOf((*MockDeployWaiter)(nil).Destroy), arg0)
}
// Wait mocks base method.
func (m *MockDeployWaiter) Wait(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Wait", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Wait indicates an expected call of Wait.
func (mr *MockDeployWaiterMockRecorder) Wait(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Wait", reflect.TypeOf((*MockDeployWaiter)(nil).Wait), arg0)
}
// WaitCleanup mocks base method.
func (m *MockDeployWaiter) WaitCleanup(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "WaitCleanup", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// WaitCleanup indicates an expected call of WaitCleanup.
func (mr *MockDeployWaiterMockRecorder) WaitCleanup(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WaitCleanup", reflect.TypeOf((*MockDeployWaiter)(nil).WaitCleanup), arg0)
}