/
mocks.go
104 lines (89 loc) · 3.29 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
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/gardener/gardener/pkg/utils/kubernetes/client (interfaces: Cleaner,GoneEnsurer)
//
// Generated by this command:
//
// mockgen -package=mock -destination=mocks.go github.com/gardener/gardener/pkg/utils/kubernetes/client Cleaner,GoneEnsurer
//
// Package mock is a generated GoMock package.
package mock
import (
context "context"
reflect "reflect"
client "github.com/gardener/gardener/pkg/utils/kubernetes/client"
gomock "go.uber.org/mock/gomock"
runtime "k8s.io/apimachinery/pkg/runtime"
client0 "sigs.k8s.io/controller-runtime/pkg/client"
)
// MockCleaner is a mock of Cleaner interface.
type MockCleaner struct {
ctrl *gomock.Controller
recorder *MockCleanerMockRecorder
}
// MockCleanerMockRecorder is the mock recorder for MockCleaner.
type MockCleanerMockRecorder struct {
mock *MockCleaner
}
// NewMockCleaner creates a new mock instance.
func NewMockCleaner(ctrl *gomock.Controller) *MockCleaner {
mock := &MockCleaner{ctrl: ctrl}
mock.recorder = &MockCleanerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockCleaner) EXPECT() *MockCleanerMockRecorder {
return m.recorder
}
// Clean mocks base method.
func (m *MockCleaner) Clean(arg0 context.Context, arg1 client0.Client, arg2 runtime.Object, arg3 ...client.CleanOption) error {
m.ctrl.T.Helper()
varargs := []any{arg0, arg1, arg2}
for _, a := range arg3 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "Clean", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// Clean indicates an expected call of Clean.
func (mr *MockCleanerMockRecorder) Clean(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{arg0, arg1, arg2}, arg3...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Clean", reflect.TypeOf((*MockCleaner)(nil).Clean), varargs...)
}
// MockGoneEnsurer is a mock of GoneEnsurer interface.
type MockGoneEnsurer struct {
ctrl *gomock.Controller
recorder *MockGoneEnsurerMockRecorder
}
// MockGoneEnsurerMockRecorder is the mock recorder for MockGoneEnsurer.
type MockGoneEnsurerMockRecorder struct {
mock *MockGoneEnsurer
}
// NewMockGoneEnsurer creates a new mock instance.
func NewMockGoneEnsurer(ctrl *gomock.Controller) *MockGoneEnsurer {
mock := &MockGoneEnsurer{ctrl: ctrl}
mock.recorder = &MockGoneEnsurerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockGoneEnsurer) EXPECT() *MockGoneEnsurerMockRecorder {
return m.recorder
}
// EnsureGone mocks base method.
func (m *MockGoneEnsurer) EnsureGone(arg0 context.Context, arg1 client0.Client, arg2 runtime.Object, arg3 ...client0.ListOption) error {
m.ctrl.T.Helper()
varargs := []any{arg0, arg1, arg2}
for _, a := range arg3 {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "EnsureGone", varargs...)
ret0, _ := ret[0].(error)
return ret0
}
// EnsureGone indicates an expected call of EnsureGone.
func (mr *MockGoneEnsurerMockRecorder) EnsureGone(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{arg0, arg1, arg2}, arg3...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnsureGone", reflect.TypeOf((*MockGoneEnsurer)(nil).EnsureGone), varargs...)
}