-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathregistry_mock_test.go
More file actions
220 lines (185 loc) · 6.94 KB
/
registry_mock_test.go
File metadata and controls
220 lines (185 loc) · 6.94 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
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
// Copyright © 2024 Ory Corp
// SPDX-License-Identifier: Apache-2.0
// Code generated by MockGen. DO NOT EDIT.
// Source: jwk/registry.go
// Package jwk_test is a generated GoMock package.
package jwk_test
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
herodot "github.com/ory/herodot"
aead "github.com/ory/hydra/v2/aead"
config "github.com/ory/hydra/v2/driver/config"
jwk "github.com/ory/hydra/v2/jwk"
logrusx "github.com/ory/x/logrusx"
)
// MockInternalRegistry is a mock of InternalRegistry interface.
type MockInternalRegistry struct {
ctrl *gomock.Controller
recorder *MockInternalRegistryMockRecorder
}
// MockInternalRegistryMockRecorder is the mock recorder for MockInternalRegistry.
type MockInternalRegistryMockRecorder struct {
mock *MockInternalRegistry
}
// NewMockInternalRegistry creates a new mock instance.
func NewMockInternalRegistry(ctrl *gomock.Controller) *MockInternalRegistry {
mock := &MockInternalRegistry{ctrl: ctrl}
mock.recorder = &MockInternalRegistryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockInternalRegistry) EXPECT() *MockInternalRegistryMockRecorder {
return m.recorder
}
// AuditLogger mocks base method.
func (m *MockInternalRegistry) AuditLogger() *logrusx.Logger {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AuditLogger")
ret0, _ := ret[0].(*logrusx.Logger)
return ret0
}
// AuditLogger indicates an expected call of AuditLogger.
func (mr *MockInternalRegistryMockRecorder) AuditLogger() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuditLogger", reflect.TypeOf((*MockInternalRegistry)(nil).AuditLogger))
}
// Config mocks base method.
func (m *MockInternalRegistry) Config() *config.DefaultProvider {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Config")
ret0, _ := ret[0].(*config.DefaultProvider)
return ret0
}
// Config indicates an expected call of Config.
func (mr *MockInternalRegistryMockRecorder) Config() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockInternalRegistry)(nil).Config))
}
// KeyCipher mocks base method.
func (m *MockInternalRegistry) KeyCipher() *aead.AESGCM {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KeyCipher")
ret0, _ := ret[0].(*aead.AESGCM)
return ret0
}
// KeyCipher indicates an expected call of KeyCipher.
func (mr *MockInternalRegistryMockRecorder) KeyCipher() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeyCipher", reflect.TypeOf((*MockInternalRegistry)(nil).KeyCipher))
}
// KeyManager mocks base method.
func (m *MockInternalRegistry) KeyManager() jwk.Manager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KeyManager")
ret0, _ := ret[0].(jwk.Manager)
return ret0
}
// KeyManager indicates an expected call of KeyManager.
func (mr *MockInternalRegistryMockRecorder) KeyManager() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeyManager", reflect.TypeOf((*MockInternalRegistry)(nil).KeyManager))
}
// Logger mocks base method.
func (m *MockInternalRegistry) Logger() *logrusx.Logger {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Logger")
ret0, _ := ret[0].(*logrusx.Logger)
return ret0
}
// Logger indicates an expected call of Logger.
func (mr *MockInternalRegistryMockRecorder) Logger() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Logger", reflect.TypeOf((*MockInternalRegistry)(nil).Logger))
}
// SoftwareKeyManager mocks base method.
func (m *MockInternalRegistry) SoftwareKeyManager() jwk.Manager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SoftwareKeyManager")
ret0, _ := ret[0].(jwk.Manager)
return ret0
}
// SoftwareKeyManager indicates an expected call of SoftwareKeyManager.
func (mr *MockInternalRegistryMockRecorder) SoftwareKeyManager() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SoftwareKeyManager", reflect.TypeOf((*MockInternalRegistry)(nil).SoftwareKeyManager))
}
// Writer mocks base method.
func (m *MockInternalRegistry) Writer() herodot.Writer {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Writer")
ret0, _ := ret[0].(herodot.Writer)
return ret0
}
// Writer indicates an expected call of Writer.
func (mr *MockInternalRegistryMockRecorder) Writer() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Writer", reflect.TypeOf((*MockInternalRegistry)(nil).Writer))
}
// MockRegistry is a mock of Registry interface.
type MockRegistry struct {
ctrl *gomock.Controller
recorder *MockRegistryMockRecorder
}
// MockRegistryMockRecorder is the mock recorder for MockRegistry.
type MockRegistryMockRecorder struct {
mock *MockRegistry
}
// NewMockRegistry creates a new mock instance.
func NewMockRegistry(ctrl *gomock.Controller) *MockRegistry {
mock := &MockRegistry{ctrl: ctrl}
mock.recorder = &MockRegistryMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockRegistry) EXPECT() *MockRegistryMockRecorder {
return m.recorder
}
// Config mocks base method.
func (m *MockRegistry) Config() *config.DefaultProvider {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Config")
ret0, _ := ret[0].(*config.DefaultProvider)
return ret0
}
// Config indicates an expected call of Config.
func (mr *MockRegistryMockRecorder) Config() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Config", reflect.TypeOf((*MockRegistry)(nil).Config))
}
// KeyCipher mocks base method.
func (m *MockRegistry) KeyCipher() *aead.AESGCM {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KeyCipher")
ret0, _ := ret[0].(*aead.AESGCM)
return ret0
}
// KeyCipher indicates an expected call of KeyCipher.
func (mr *MockRegistryMockRecorder) KeyCipher() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeyCipher", reflect.TypeOf((*MockRegistry)(nil).KeyCipher))
}
// KeyManager mocks base method.
func (m *MockRegistry) KeyManager() jwk.Manager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KeyManager")
ret0, _ := ret[0].(jwk.Manager)
return ret0
}
// KeyManager indicates an expected call of KeyManager.
func (mr *MockRegistryMockRecorder) KeyManager() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeyManager", reflect.TypeOf((*MockRegistry)(nil).KeyManager))
}
// SoftwareKeyManager mocks base method.
func (m *MockRegistry) SoftwareKeyManager() jwk.Manager {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SoftwareKeyManager")
ret0, _ := ret[0].(jwk.Manager)
return ret0
}
// SoftwareKeyManager indicates an expected call of SoftwareKeyManager.
func (mr *MockRegistryMockRecorder) SoftwareKeyManager() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SoftwareKeyManager", reflect.TypeOf((*MockRegistry)(nil).SoftwareKeyManager))
}