/
funcs.go
88 lines (73 loc) · 2.42 KB
/
funcs.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/gardener/gardener/pkg/utils/retry/mock (interfaces: WaitFunc,Func)
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockWaitFunc is a mock of WaitFunc interface.
type MockWaitFunc struct {
ctrl *gomock.Controller
recorder *MockWaitFuncMockRecorder
}
// MockWaitFuncMockRecorder is the mock recorder for MockWaitFunc.
type MockWaitFuncMockRecorder struct {
mock *MockWaitFunc
}
// NewMockWaitFunc creates a new mock instance.
func NewMockWaitFunc(ctrl *gomock.Controller) *MockWaitFunc {
mock := &MockWaitFunc{ctrl: ctrl}
mock.recorder = &MockWaitFuncMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWaitFunc) EXPECT() *MockWaitFuncMockRecorder {
return m.recorder
}
// Do mocks base method.
func (m *MockWaitFunc) Do(arg0 context.Context) (context.Context, context.CancelFunc) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Do", arg0)
ret0, _ := ret[0].(context.Context)
ret1, _ := ret[1].(context.CancelFunc)
return ret0, ret1
}
// Do indicates an expected call of Do.
func (mr *MockWaitFuncMockRecorder) Do(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockWaitFunc)(nil).Do), arg0)
}
// MockFunc is a mock of Func interface.
type MockFunc struct {
ctrl *gomock.Controller
recorder *MockFuncMockRecorder
}
// MockFuncMockRecorder is the mock recorder for MockFunc.
type MockFuncMockRecorder struct {
mock *MockFunc
}
// NewMockFunc creates a new mock instance.
func NewMockFunc(ctrl *gomock.Controller) *MockFunc {
mock := &MockFunc{ctrl: ctrl}
mock.recorder = &MockFuncMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockFunc) EXPECT() *MockFuncMockRecorder {
return m.recorder
}
// Do mocks base method.
func (m *MockFunc) Do(arg0 context.Context) (bool, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Do", arg0)
ret0, _ := ret[0].(bool)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Do indicates an expected call of Do.
func (mr *MockFuncMockRecorder) Do(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Do", reflect.TypeOf((*MockFunc)(nil).Do), arg0)
}