This repository has been archived by the owner on Jan 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 480
/
mock_manager.go
194 lines (164 loc) · 7.14 KB
/
mock_manager.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
194
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/vmware-tanzu/octant/internal/module (interfaces: ManagerInterface)
// Package fake is a generated GoMock package.
package fake
import (
context "context"
reflect "reflect"
gomock "github.com/golang/mock/gomock"
schema "k8s.io/apimachinery/pkg/runtime/schema"
module "github.com/vmware-tanzu/octant/internal/module"
octant "github.com/vmware-tanzu/octant/internal/octant"
navigation "github.com/vmware-tanzu/octant/pkg/navigation"
)
// MockManagerInterface is a mock of ManagerInterface interface
type MockManagerInterface struct {
ctrl *gomock.Controller
recorder *MockManagerInterfaceMockRecorder
}
// MockManagerInterfaceMockRecorder is the mock recorder for MockManagerInterface
type MockManagerInterfaceMockRecorder struct {
mock *MockManagerInterface
}
// NewMockManagerInterface creates a new mock instance
func NewMockManagerInterface(ctrl *gomock.Controller) *MockManagerInterface {
mock := &MockManagerInterface{ctrl: ctrl}
mock.recorder = &MockManagerInterfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockManagerInterface) EXPECT() *MockManagerInterfaceMockRecorder {
return m.recorder
}
// ClientRequestHandlers mocks base method
func (m *MockManagerInterface) ClientRequestHandlers() []octant.ClientRequestHandler {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ClientRequestHandlers")
ret0, _ := ret[0].([]octant.ClientRequestHandler)
return ret0
}
// ClientRequestHandlers indicates an expected call of ClientRequestHandlers
func (mr *MockManagerInterfaceMockRecorder) ClientRequestHandlers() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientRequestHandlers", reflect.TypeOf((*MockManagerInterface)(nil).ClientRequestHandlers))
}
// GetNamespace mocks base method
func (m *MockManagerInterface) GetNamespace() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetNamespace")
ret0, _ := ret[0].(string)
return ret0
}
// GetNamespace indicates an expected call of GetNamespace
func (mr *MockManagerInterfaceMockRecorder) GetNamespace() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetNamespace", reflect.TypeOf((*MockManagerInterface)(nil).GetNamespace))
}
// GvkFromPath mocks base method
func (m *MockManagerInterface) GvkFromPath(arg0, arg1 string) (schema.GroupVersionKind, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GvkFromPath", arg0, arg1)
ret0, _ := ret[0].(schema.GroupVersionKind)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GvkFromPath indicates an expected call of GvkFromPath
func (mr *MockManagerInterfaceMockRecorder) GvkFromPath(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GvkFromPath", reflect.TypeOf((*MockManagerInterface)(nil).GvkFromPath), arg0, arg1)
}
// ModuleForContentPath mocks base method
func (m *MockManagerInterface) ModuleForContentPath(arg0 string) (module.Module, bool) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ModuleForContentPath", arg0)
ret0, _ := ret[0].(module.Module)
ret1, _ := ret[1].(bool)
return ret0, ret1
}
// ModuleForContentPath indicates an expected call of ModuleForContentPath
func (mr *MockManagerInterfaceMockRecorder) ModuleForContentPath(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ModuleForContentPath", reflect.TypeOf((*MockManagerInterface)(nil).ModuleForContentPath), arg0)
}
// Modules mocks base method
func (m *MockManagerInterface) Modules() []module.Module {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Modules")
ret0, _ := ret[0].([]module.Module)
return ret0
}
// Modules indicates an expected call of Modules
func (mr *MockManagerInterfaceMockRecorder) Modules() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Modules", reflect.TypeOf((*MockManagerInterface)(nil).Modules))
}
// Navigation mocks base method
func (m *MockManagerInterface) Navigation(arg0 context.Context, arg1, arg2 string) ([]navigation.Navigation, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Navigation", arg0, arg1, arg2)
ret0, _ := ret[0].([]navigation.Navigation)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// Navigation indicates an expected call of Navigation
func (mr *MockManagerInterfaceMockRecorder) Navigation(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Navigation", reflect.TypeOf((*MockManagerInterface)(nil).Navigation), arg0, arg1, arg2)
}
// ObjectPath mocks base method
func (m *MockManagerInterface) ObjectPath(arg0, arg1, arg2, arg3 string) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ObjectPath", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ObjectPath indicates an expected call of ObjectPath
func (mr *MockManagerInterfaceMockRecorder) ObjectPath(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ObjectPath", reflect.TypeOf((*MockManagerInterface)(nil).ObjectPath), arg0, arg1, arg2, arg3)
}
// Register mocks base method
func (m *MockManagerInterface) Register(arg0 module.Module) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Register", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// Register indicates an expected call of Register
func (mr *MockManagerInterfaceMockRecorder) Register(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockManagerInterface)(nil).Register), arg0)
}
// SetNamespace mocks base method
func (m *MockManagerInterface) SetNamespace(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetNamespace", arg0)
}
// SetNamespace indicates an expected call of SetNamespace
func (mr *MockManagerInterfaceMockRecorder) SetNamespace(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNamespace", reflect.TypeOf((*MockManagerInterface)(nil).SetNamespace), arg0)
}
// Unregister mocks base method
func (m *MockManagerInterface) Unregister(arg0 module.Module) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Unregister", arg0)
}
// Unregister indicates an expected call of Unregister
func (mr *MockManagerInterfaceMockRecorder) Unregister(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unregister", reflect.TypeOf((*MockManagerInterface)(nil).Unregister), arg0)
}
// UpdateContext mocks base method
func (m *MockManagerInterface) UpdateContext(arg0 context.Context, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateContext", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// UpdateContext indicates an expected call of UpdateContext
func (mr *MockManagerInterfaceMockRecorder) UpdateContext(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContext", reflect.TypeOf((*MockManagerInterface)(nil).UpdateContext), arg0, arg1)
}