-
Notifications
You must be signed in to change notification settings - Fork 165
/
workaround.go
94 lines (78 loc) · 2.92 KB
/
workaround.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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/Azure/ARO-RP/pkg/operator/controllers/workaround (interfaces: Workaround)
// Package mock_workaround is a generated GoMock package.
package mock_workaround
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
v1alpha1 "github.com/Azure/ARO-RP/pkg/operator/apis/aro.openshift.io/v1alpha1"
version "github.com/Azure/ARO-RP/pkg/util/version"
)
// MockWorkaround is a mock of Workaround interface.
type MockWorkaround struct {
ctrl *gomock.Controller
recorder *MockWorkaroundMockRecorder
}
// MockWorkaroundMockRecorder is the mock recorder for MockWorkaround.
type MockWorkaroundMockRecorder struct {
mock *MockWorkaround
}
// NewMockWorkaround creates a new mock instance.
func NewMockWorkaround(ctrl *gomock.Controller) *MockWorkaround {
mock := &MockWorkaround{ctrl: ctrl}
mock.recorder = &MockWorkaroundMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockWorkaround) EXPECT() *MockWorkaroundMockRecorder {
return m.recorder
}
// Ensure mocks base method.
func (m *MockWorkaround) Ensure(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Ensure", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Ensure indicates an expected call of Ensure.
func (mr *MockWorkaroundMockRecorder) Ensure(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Ensure", reflect.TypeOf((*MockWorkaround)(nil).Ensure), arg0)
}
// IsRequired mocks base method.
func (m *MockWorkaround) IsRequired(arg0 *version.Version, arg1 *v1alpha1.Cluster) bool {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "IsRequired", arg0, arg1)
ret0, _ := ret[0].(bool)
return ret0
}
// IsRequired indicates an expected call of IsRequired.
func (mr *MockWorkaroundMockRecorder) IsRequired(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsRequired", reflect.TypeOf((*MockWorkaround)(nil).IsRequired), arg0, arg1)
}
// Name mocks base method.
func (m *MockWorkaround) Name() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Name")
ret0, _ := ret[0].(string)
return ret0
}
// Name indicates an expected call of Name.
func (mr *MockWorkaroundMockRecorder) Name() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockWorkaround)(nil).Name))
}
// Remove mocks base method.
func (m *MockWorkaround) Remove(arg0 context.Context) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Remove", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Remove indicates an expected call of Remove.
func (mr *MockWorkaroundMockRecorder) Remove(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockWorkaround)(nil).Remove), arg0)
}