-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconfig_mock.go
More file actions
105 lines (88 loc) · 3.15 KB
/
config_mock.go
File metadata and controls
105 lines (88 loc) · 3.15 KB
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
// Code generated by MockGen. DO NOT EDIT.
// Source: ./config.go
//
// Generated by this command:
//
// mockgen -source=./config.go -package=gone -destination=./config_mock.go
//
// Package gone is a generated GoMock package.
package gone
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockConfigure is a mock of Configure interface.
type MockConfigure struct {
ctrl *gomock.Controller
recorder *MockConfigureMockRecorder
isgomock struct{}
}
// MockConfigureMockRecorder is the mock recorder for MockConfigure.
type MockConfigureMockRecorder struct {
mock *MockConfigure
}
// NewMockConfigure creates a new mock instance.
func NewMockConfigure(ctrl *gomock.Controller) *MockConfigure {
mock := &MockConfigure{ctrl: ctrl}
mock.recorder = &MockConfigureMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockConfigure) EXPECT() *MockConfigureMockRecorder {
return m.recorder
}
// Get mocks base method.
func (m *MockConfigure) Get(key string, v any, defaultVal string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", key, v, defaultVal)
ret0, _ := ret[0].(error)
return ret0
}
// Get indicates an expected call of Get.
func (mr *MockConfigureMockRecorder) Get(key, v, defaultVal any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockConfigure)(nil).Get), key, v, defaultVal)
}
// MockDynamicConfigure is a mock of DynamicConfigure interface.
type MockDynamicConfigure struct {
Flag
ctrl *gomock.Controller
recorder *MockDynamicConfigureMockRecorder
isgomock struct{}
}
// MockDynamicConfigureMockRecorder is the mock recorder for MockDynamicConfigure.
type MockDynamicConfigureMockRecorder struct {
mock *MockDynamicConfigure
}
// NewMockDynamicConfigure creates a new mock instance.
func NewMockDynamicConfigure(ctrl *gomock.Controller) *MockDynamicConfigure {
mock := &MockDynamicConfigure{ctrl: ctrl}
mock.recorder = &MockDynamicConfigureMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockDynamicConfigure) EXPECT() *MockDynamicConfigureMockRecorder {
return m.recorder
}
// Get mocks base method.
func (m *MockDynamicConfigure) Get(key string, v any, defaultVal string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Get", key, v, defaultVal)
ret0, _ := ret[0].(error)
return ret0
}
// Get indicates an expected call of Get.
func (mr *MockDynamicConfigureMockRecorder) Get(key, v, defaultVal any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockDynamicConfigure)(nil).Get), key, v, defaultVal)
}
// Notify mocks base method.
func (m *MockDynamicConfigure) Notify(key string, callback ConfWatchFunc) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "Notify", key, callback)
}
// Notify indicates an expected call of Notify.
func (mr *MockDynamicConfigureMockRecorder) Notify(key, callback any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Notify", reflect.TypeOf((*MockDynamicConfigure)(nil).Notify), key, callback)
}