-
Notifications
You must be signed in to change notification settings - Fork 76
/
governance_config_mock.go
177 lines (151 loc) · 6.43 KB
/
governance_config_mock.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
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/apache/dubbo-admin/pkg/admin/config (interfaces: GovernanceConfig)
// Package config is a generated GoMock package.
package governance
import (
reflect "reflect"
)
import (
common "dubbo.apache.org/dubbo-go/v3/common"
gomock "github.com/golang/mock/gomock"
)
// MockGovernanceConfig is a mock of GovernanceConfig interface.
type MockGovernanceConfig struct {
ctrl *gomock.Controller
recorder *MockGovernanceConfigMockRecorder
}
func (m *MockGovernanceConfig) GetList(arg0 string) (map[string]string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetList", arg0)
ret0, _ := ret[0].(map[string]string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// MockGovernanceConfigMockRecorder is the mock recorder for MockGovernanceConfig.
type MockGovernanceConfigMockRecorder struct {
mock *MockGovernanceConfig
}
// NewMockGovernanceConfig creates a new mock instance.
func NewMockGovernanceConfig(ctrl *gomock.Controller) *MockGovernanceConfig {
mock := &MockGovernanceConfig{ctrl: ctrl}
mock.recorder = &MockGovernanceConfigMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockGovernanceConfig) EXPECT() *MockGovernanceConfigMockRecorder {
return m.recorder
}
// DeleteConfig mocks base method.
func (m *MockGovernanceConfig) DeleteConfig(arg0 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteConfig", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteConfig indicates an expected call of DeleteConfig.
func (mr *MockGovernanceConfigMockRecorder) DeleteConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConfig", reflect.TypeOf((*MockGovernanceConfig)(nil).DeleteConfig), arg0)
}
// DeleteConfigWithGroup mocks base method.
func (m *MockGovernanceConfig) DeleteConfigWithGroup(arg0, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteConfigWithGroup", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// DeleteConfigWithGroup indicates an expected call of DeleteConfigWithGroup.
func (mr *MockGovernanceConfigMockRecorder) DeleteConfigWithGroup(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteConfigWithGroup", reflect.TypeOf((*MockGovernanceConfig)(nil).DeleteConfigWithGroup), arg0, arg1)
}
// GetConfig mocks base method.
func (m *MockGovernanceConfig) GetConfig(arg0 string) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetConfig", arg0)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetConfig indicates an expected call of GetConfig.
func (mr *MockGovernanceConfigMockRecorder) GetConfig(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfig", reflect.TypeOf((*MockGovernanceConfig)(nil).GetConfig), arg0)
}
// GetConfigWithGroup mocks base method.
func (m *MockGovernanceConfig) GetConfigWithGroup(arg0, arg1 string) (string, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetConfigWithGroup", arg0, arg1)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetConfigWithGroup indicates an expected call of GetConfigWithGroup.
func (mr *MockGovernanceConfigMockRecorder) GetConfigWithGroup(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetConfigWithGroup", reflect.TypeOf((*MockGovernanceConfig)(nil).GetConfigWithGroup), arg0, arg1)
}
// Register mocks base method.
func (m *MockGovernanceConfig) Register(arg0 *common.URL) 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 *MockGovernanceConfigMockRecorder) Register(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Register", reflect.TypeOf((*MockGovernanceConfig)(nil).Register), arg0)
}
// SetConfig mocks base method.
func (m *MockGovernanceConfig) SetConfig(arg0, arg1 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetConfig", arg0, arg1)
ret0, _ := ret[0].(error)
return ret0
}
// SetConfig indicates an expected call of SetConfig.
func (mr *MockGovernanceConfigMockRecorder) SetConfig(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetConfig", reflect.TypeOf((*MockGovernanceConfig)(nil).SetConfig), arg0, arg1)
}
// SetConfigWithGroup mocks base method.
func (m *MockGovernanceConfig) SetConfigWithGroup(arg0, arg1, arg2 string) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetConfigWithGroup", arg0, arg1, arg2)
ret0, _ := ret[0].(error)
return ret0
}
// SetConfigWithGroup indicates an expected call of SetConfigWithGroup.
func (mr *MockGovernanceConfigMockRecorder) SetConfigWithGroup(arg0, arg1, arg2 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetConfigWithGroup", reflect.TypeOf((*MockGovernanceConfig)(nil).SetConfigWithGroup), arg0, arg1, arg2)
}
// UnRegister mocks base method.
func (m *MockGovernanceConfig) UnRegister(arg0 *common.URL) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UnRegister", arg0)
ret0, _ := ret[0].(error)
return ret0
}
// UnRegister indicates an expected call of UnRegister.
func (mr *MockGovernanceConfigMockRecorder) UnRegister(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnRegister", reflect.TypeOf((*MockGovernanceConfig)(nil).UnRegister), arg0)
}