detached c541a90

library_functions_mock_test.go RawHistoryFolder

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

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 1

Tags 1

↑↓ moveenter openesc close