v2.6.0 fe25b4f

mock_domain_secret_store.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package mocks
6
7import (
8	mock "github.com/stretchr/testify/mock"
9)
10
11// NewMockDomainSecretStore creates a new instance of MockDomainSecretStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
12// The first argument is typically a *testing.T value.
13func NewMockDomainSecretStore(t interface {
14	mock.TestingT
15	Cleanup(func())
16}) *MockDomainSecretStore {
17	mock := &MockDomainSecretStore{}
18	mock.Mock.Test(t)
19
20	t.Cleanup(func() { mock.AssertExpectations(t) })
21
22	return mock
23}
24
25// MockDomainSecretStore is an autogenerated mock type for the DomainSecretStore type
26type MockDomainSecretStore struct {
27	mock.Mock
28}
29
30type MockDomainSecretStore_Expecter struct {
31	mock *mock.Mock
32}
33
34func (_m *MockDomainSecretStore) EXPECT() *MockDomainSecretStore_Expecter {
35	return &MockDomainSecretStore_Expecter{mock: &_m.Mock}
36}
37
38// Delete provides a mock function for the type MockDomainSecretStore
39func (_mock *MockDomainSecretStore) Delete(domain string, key string) error {
40	ret := _mock.Called(domain, key)
41
42	if len(ret) == 0 {
43		panic("no return value specified for Delete")
44	}
45
46	var r0 error
47	if returnFunc, ok := ret.Get(0).(func(string, string) error); ok {
48		r0 = returnFunc(domain, key)
49	} else {
50		r0 = ret.Error(0)
51	}
52	return r0
53}
54
55// MockDomainSecretStore_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
56type MockDomainSecretStore_Delete_Call struct {
57	*mock.Call
58}
59
60// Delete is a helper method to define mock.On call
61//   - domain string
62//   - key string
63func (_e *MockDomainSecretStore_Expecter) Delete(domain interface{}, key interface{}) *MockDomainSecretStore_Delete_Call {
64	return &MockDomainSecretStore_Delete_Call{Call: _e.mock.On("Delete", domain, key)}
65}
66
67func (_c *MockDomainSecretStore_Delete_Call) Run(run func(domain string, key string)) *MockDomainSecretStore_Delete_Call {
68	_c.Call.Run(func(args mock.Arguments) {
69		var arg0 string
70		if args[0] != nil {
71			arg0 = args[0].(string)
72		}
73		var arg1 string
74		if args[1] != nil {
75			arg1 = args[1].(string)
76		}
77		run(
78			arg0,
79			arg1,
80		)
81	})
82	return _c
83}
84
85func (_c *MockDomainSecretStore_Delete_Call) Return(err error) *MockDomainSecretStore_Delete_Call {
86	_c.Call.Return(err)
87	return _c
88}
89
90func (_c *MockDomainSecretStore_Delete_Call) RunAndReturn(run func(domain string, key string) error) *MockDomainSecretStore_Delete_Call {
91	_c.Call.Return(run)
92	return _c
93}
94
95// GetAll provides a mock function for the type MockDomainSecretStore
96func (_mock *MockDomainSecretStore) GetAll(domain string) (map[string]string, error) {
97	ret := _mock.Called(domain)
98
99	if len(ret) == 0 {
100		panic("no return value specified for GetAll")
101	}
102
103	var r0 map[string]string
104	var r1 error
105	if returnFunc, ok := ret.Get(0).(func(string) (map[string]string, error)); ok {
106		return returnFunc(domain)
107	}
108	if returnFunc, ok := ret.Get(0).(func(string) map[string]string); ok {
109		r0 = returnFunc(domain)
110	} else {
111		if ret.Get(0) != nil {
112			r0 = ret.Get(0).(map[string]string)
113		}
114	}
115	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
116		r1 = returnFunc(domain)
117	} else {
118		r1 = ret.Error(1)
119	}
120	return r0, r1
121}
122
123// MockDomainSecretStore_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'
124type MockDomainSecretStore_GetAll_Call struct {
125	*mock.Call
126}
127
128// GetAll is a helper method to define mock.On call
129//   - domain string
130func (_e *MockDomainSecretStore_Expecter) GetAll(domain interface{}) *MockDomainSecretStore_GetAll_Call {
131	return &MockDomainSecretStore_GetAll_Call{Call: _e.mock.On("GetAll", domain)}
132}
133
134func (_c *MockDomainSecretStore_GetAll_Call) Run(run func(domain string)) *MockDomainSecretStore_GetAll_Call {
135	_c.Call.Run(func(args mock.Arguments) {
136		var arg0 string
137		if args[0] != nil {
138			arg0 = args[0].(string)
139		}
140		run(
141			arg0,
142		)
143	})
144	return _c
145}
146
147func (_c *MockDomainSecretStore_GetAll_Call) Return(stringToString map[string]string, err error) *MockDomainSecretStore_GetAll_Call {
148	_c.Call.Return(stringToString, err)
149	return _c
150}
151
152func (_c *MockDomainSecretStore_GetAll_Call) RunAndReturn(run func(domain string) (map[string]string, error)) *MockDomainSecretStore_GetAll_Call {
153	_c.Call.Return(run)
154	return _c
155}
156
157// ListKeys provides a mock function for the type MockDomainSecretStore
158func (_mock *MockDomainSecretStore) ListKeys(domain string) ([]string, error) {
159	ret := _mock.Called(domain)
160
161	if len(ret) == 0 {
162		panic("no return value specified for ListKeys")
163	}
164
165	var r0 []string
166	var r1 error
167	if returnFunc, ok := ret.Get(0).(func(string) ([]string, error)); ok {
168		return returnFunc(domain)
169	}
170	if returnFunc, ok := ret.Get(0).(func(string) []string); ok {
171		r0 = returnFunc(domain)
172	} else {
173		if ret.Get(0) != nil {
174			r0 = ret.Get(0).([]string)
175		}
176	}
177	if returnFunc, ok := ret.Get(1).(func(string) error); ok {
178		r1 = returnFunc(domain)
179	} else {
180		r1 = ret.Error(1)
181	}
182	return r0, r1
183}
184
185// MockDomainSecretStore_ListKeys_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListKeys'
186type MockDomainSecretStore_ListKeys_Call struct {
187	*mock.Call
188}
189
190// ListKeys is a helper method to define mock.On call
191//   - domain string
192func (_e *MockDomainSecretStore_Expecter) ListKeys(domain interface{}) *MockDomainSecretStore_ListKeys_Call {
193	return &MockDomainSecretStore_ListKeys_Call{Call: _e.mock.On("ListKeys", domain)}
194}
195
196func (_c *MockDomainSecretStore_ListKeys_Call) Run(run func(domain string)) *MockDomainSecretStore_ListKeys_Call {
197	_c.Call.Run(func(args mock.Arguments) {
198		var arg0 string
199		if args[0] != nil {
200			arg0 = args[0].(string)
201		}
202		run(
203			arg0,
204		)
205	})
206	return _c
207}
208
209func (_c *MockDomainSecretStore_ListKeys_Call) Return(strings []string, err error) *MockDomainSecretStore_ListKeys_Call {
210	_c.Call.Return(strings, err)
211	return _c
212}
213
214func (_c *MockDomainSecretStore_ListKeys_Call) RunAndReturn(run func(domain string) ([]string, error)) *MockDomainSecretStore_ListKeys_Call {
215	_c.Call.Return(run)
216	return _c
217}
218
219// Set provides a mock function for the type MockDomainSecretStore
220func (_mock *MockDomainSecretStore) Set(domain string, secrets map[string]string) error {
221	ret := _mock.Called(domain, secrets)
222
223	if len(ret) == 0 {
224		panic("no return value specified for Set")
225	}
226
227	var r0 error
228	if returnFunc, ok := ret.Get(0).(func(string, map[string]string) error); ok {
229		r0 = returnFunc(domain, secrets)
230	} else {
231		r0 = ret.Error(0)
232	}
233	return r0
234}
235
236// MockDomainSecretStore_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
237type MockDomainSecretStore_Set_Call struct {
238	*mock.Call
239}
240
241// Set is a helper method to define mock.On call
242//   - domain string
243//   - secrets map[string]string
244func (_e *MockDomainSecretStore_Expecter) Set(domain interface{}, secrets interface{}) *MockDomainSecretStore_Set_Call {
245	return &MockDomainSecretStore_Set_Call{Call: _e.mock.On("Set", domain, secrets)}
246}
247
248func (_c *MockDomainSecretStore_Set_Call) Run(run func(domain string, secrets map[string]string)) *MockDomainSecretStore_Set_Call {
249	_c.Call.Run(func(args mock.Arguments) {
250		var arg0 string
251		if args[0] != nil {
252			arg0 = args[0].(string)
253		}
254		var arg1 map[string]string
255		if args[1] != nil {
256			arg1 = args[1].(map[string]string)
257		}
258		run(
259			arg0,
260			arg1,
261		)
262	})
263	return _c
264}
265
266func (_c *MockDomainSecretStore_Set_Call) Return(err error) *MockDomainSecretStore_Set_Call {
267	_c.Call.Return(err)
268	return _c
269}
270
271func (_c *MockDomainSecretStore_Set_Call) RunAndReturn(run func(domain string, secrets map[string]string) error) *MockDomainSecretStore_Set_Call {
272	_c.Call.Return(run)
273	return _c
274}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close