main f2d166b

device_config_mock_test.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package libinput
6
7import (
8	mock "github.com/stretchr/testify/mock"
9)
10
11// newMockdeviceConfig creates a new instance of mockdeviceConfig. 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 newMockdeviceConfig(t interface {
14	mock.TestingT
15	Cleanup(func())
16}) *mockdeviceConfig {
17	if helper, ok := t.(interface{ Helper() }); ok {
18		helper.Helper()
19	}
20
21	mock := &mockdeviceConfig{}
22	mock.Mock.Test(t)
23
24	t.Cleanup(func() {
25		if helper, ok := t.(interface{ Helper() }); ok {
26			helper.Helper()
27		}
28		mock.AssertExpectations(t)
29	})
30
31	return mock
32}
33
34// mockdeviceConfig is an autogenerated mock type for the deviceConfig type
35type mockdeviceConfig struct {
36	mock.Mock
37}
38
39type mockdeviceConfig_Expecter struct {
40	mock *mock.Mock
41}
42
43func (_m *mockdeviceConfig) EXPECT() *mockdeviceConfig_Expecter {
44	return &mockdeviceConfig_Expecter{mock: &_m.Mock}
45}
46
47// IsPointer provides a mock function for the type mockdeviceConfig
48func (_mock *mockdeviceConfig) IsPointer(dev uintptr) bool {
49	ret := _mock.Called(dev)
50
51	if len(ret) == 0 {
52		panic("no return value specified for IsPointer")
53	}
54
55	var r0 bool
56	if returnFunc, ok := ret.Get(0).(func(uintptr) bool); ok {
57		r0 = returnFunc(dev)
58	} else {
59		r0 = ret.Get(0).(bool)
60	}
61	return r0
62}
63
64// mockdeviceConfig_IsPointer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsPointer'
65type mockdeviceConfig_IsPointer_Call struct {
66	*mock.Call
67}
68
69// IsPointer is a helper method to define mock.On call
70//   - dev uintptr
71func (_e *mockdeviceConfig_Expecter) IsPointer(dev any) *mockdeviceConfig_IsPointer_Call {
72	return &mockdeviceConfig_IsPointer_Call{Call: _e.mock.On("IsPointer", dev)}
73}
74
75func (_c *mockdeviceConfig_IsPointer_Call) Run(run func(dev uintptr)) *mockdeviceConfig_IsPointer_Call {
76	_c.Call.Run(func(args mock.Arguments) {
77		var arg0 uintptr
78		if args[0] != nil {
79			arg0 = args[0].(uintptr)
80		}
81		run(
82			arg0,
83		)
84	})
85	return _c
86}
87
88func (_c *mockdeviceConfig_IsPointer_Call) Return(b bool) *mockdeviceConfig_IsPointer_Call {
89	_c.Call.Return(b)
90	return _c
91}
92
93func (_c *mockdeviceConfig_IsPointer_Call) RunAndReturn(run func(dev uintptr) bool) *mockdeviceConfig_IsPointer_Call {
94	_c.Call.Return(run)
95	return _c
96}
97
98// IsTouchpad provides a mock function for the type mockdeviceConfig
99func (_mock *mockdeviceConfig) IsTouchpad(dev uintptr) bool {
100	ret := _mock.Called(dev)
101
102	if len(ret) == 0 {
103		panic("no return value specified for IsTouchpad")
104	}
105
106	var r0 bool
107	if returnFunc, ok := ret.Get(0).(func(uintptr) bool); ok {
108		r0 = returnFunc(dev)
109	} else {
110		r0 = ret.Get(0).(bool)
111	}
112	return r0
113}
114
115// mockdeviceConfig_IsTouchpad_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsTouchpad'
116type mockdeviceConfig_IsTouchpad_Call struct {
117	*mock.Call
118}
119
120// IsTouchpad is a helper method to define mock.On call
121//   - dev uintptr
122func (_e *mockdeviceConfig_Expecter) IsTouchpad(dev any) *mockdeviceConfig_IsTouchpad_Call {
123	return &mockdeviceConfig_IsTouchpad_Call{Call: _e.mock.On("IsTouchpad", dev)}
124}
125
126func (_c *mockdeviceConfig_IsTouchpad_Call) Run(run func(dev uintptr)) *mockdeviceConfig_IsTouchpad_Call {
127	_c.Call.Run(func(args mock.Arguments) {
128		var arg0 uintptr
129		if args[0] != nil {
130			arg0 = args[0].(uintptr)
131		}
132		run(
133			arg0,
134		)
135	})
136	return _c
137}
138
139func (_c *mockdeviceConfig_IsTouchpad_Call) Return(b bool) *mockdeviceConfig_IsTouchpad_Call {
140	_c.Call.Return(b)
141	return _c
142}
143
144func (_c *mockdeviceConfig_IsTouchpad_Call) RunAndReturn(run func(dev uintptr) bool) *mockdeviceConfig_IsTouchpad_Call {
145	_c.Call.Return(run)
146	return _c
147}
148
149// Name provides a mock function for the type mockdeviceConfig
150func (_mock *mockdeviceConfig) Name(dev uintptr) string {
151	ret := _mock.Called(dev)
152
153	if len(ret) == 0 {
154		panic("no return value specified for Name")
155	}
156
157	var r0 string
158	if returnFunc, ok := ret.Get(0).(func(uintptr) string); ok {
159		r0 = returnFunc(dev)
160	} else {
161		r0 = ret.Get(0).(string)
162	}
163	return r0
164}
165
166// mockdeviceConfig_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
167type mockdeviceConfig_Name_Call struct {
168	*mock.Call
169}
170
171// Name is a helper method to define mock.On call
172//   - dev uintptr
173func (_e *mockdeviceConfig_Expecter) Name(dev any) *mockdeviceConfig_Name_Call {
174	return &mockdeviceConfig_Name_Call{Call: _e.mock.On("Name", dev)}
175}
176
177func (_c *mockdeviceConfig_Name_Call) Run(run func(dev uintptr)) *mockdeviceConfig_Name_Call {
178	_c.Call.Run(func(args mock.Arguments) {
179		var arg0 uintptr
180		if args[0] != nil {
181			arg0 = args[0].(uintptr)
182		}
183		run(
184			arg0,
185		)
186	})
187	return _c
188}
189
190func (_c *mockdeviceConfig_Name_Call) Return(s string) *mockdeviceConfig_Name_Call {
191	_c.Call.Return(s)
192	return _c
193}
194
195func (_c *mockdeviceConfig_Name_Call) RunAndReturn(run func(dev uintptr) string) *mockdeviceConfig_Name_Call {
196	_c.Call.Return(run)
197	return _c
198}
199
200// SetAccel provides a mock function for the type mockdeviceConfig
201func (_mock *mockdeviceConfig) SetAccel(dev uintptr, speed float64, profile string) error {
202	ret := _mock.Called(dev, speed, profile)
203
204	if len(ret) == 0 {
205		panic("no return value specified for SetAccel")
206	}
207
208	var r0 error
209	if returnFunc, ok := ret.Get(0).(func(uintptr, float64, string) error); ok {
210		r0 = returnFunc(dev, speed, profile)
211	} else {
212		r0 = ret.Error(0)
213	}
214	return r0
215}
216
217// mockdeviceConfig_SetAccel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAccel'
218type mockdeviceConfig_SetAccel_Call struct {
219	*mock.Call
220}
221
222// SetAccel is a helper method to define mock.On call
223//   - dev uintptr
224//   - speed float64
225//   - profile string
226func (_e *mockdeviceConfig_Expecter) SetAccel(dev any, speed any, profile any) *mockdeviceConfig_SetAccel_Call {
227	return &mockdeviceConfig_SetAccel_Call{Call: _e.mock.On("SetAccel", dev, speed, profile)}
228}
229
230func (_c *mockdeviceConfig_SetAccel_Call) Run(run func(dev uintptr, speed float64, profile string)) *mockdeviceConfig_SetAccel_Call {
231	_c.Call.Run(func(args mock.Arguments) {
232		var arg0 uintptr
233		if args[0] != nil {
234			arg0 = args[0].(uintptr)
235		}
236		var arg1 float64
237		if args[1] != nil {
238			arg1 = args[1].(float64)
239		}
240		var arg2 string
241		if args[2] != nil {
242			arg2 = args[2].(string)
243		}
244		run(
245			arg0,
246			arg1,
247			arg2,
248		)
249	})
250	return _c
251}
252
253func (_c *mockdeviceConfig_SetAccel_Call) Return(err error) *mockdeviceConfig_SetAccel_Call {
254	_c.Call.Return(err)
255	return _c
256}
257
258func (_c *mockdeviceConfig_SetAccel_Call) RunAndReturn(run func(dev uintptr, speed float64, profile string) error) *mockdeviceConfig_SetAccel_Call {
259	_c.Call.Return(run)
260	return _c
261}
262
263// SetLeftHanded provides a mock function for the type mockdeviceConfig
264func (_mock *mockdeviceConfig) SetLeftHanded(dev uintptr, on bool) error {
265	ret := _mock.Called(dev, on)
266
267	if len(ret) == 0 {
268		panic("no return value specified for SetLeftHanded")
269	}
270
271	var r0 error
272	if returnFunc, ok := ret.Get(0).(func(uintptr, bool) error); ok {
273		r0 = returnFunc(dev, on)
274	} else {
275		r0 = ret.Error(0)
276	}
277	return r0
278}
279
280// mockdeviceConfig_SetLeftHanded_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetLeftHanded'
281type mockdeviceConfig_SetLeftHanded_Call struct {
282	*mock.Call
283}
284
285// SetLeftHanded is a helper method to define mock.On call
286//   - dev uintptr
287//   - on bool
288func (_e *mockdeviceConfig_Expecter) SetLeftHanded(dev any, on any) *mockdeviceConfig_SetLeftHanded_Call {
289	return &mockdeviceConfig_SetLeftHanded_Call{Call: _e.mock.On("SetLeftHanded", dev, on)}
290}
291
292func (_c *mockdeviceConfig_SetLeftHanded_Call) Run(run func(dev uintptr, on bool)) *mockdeviceConfig_SetLeftHanded_Call {
293	_c.Call.Run(func(args mock.Arguments) {
294		var arg0 uintptr
295		if args[0] != nil {
296			arg0 = args[0].(uintptr)
297		}
298		var arg1 bool
299		if args[1] != nil {
300			arg1 = args[1].(bool)
301		}
302		run(
303			arg0,
304			arg1,
305		)
306	})
307	return _c
308}
309
310func (_c *mockdeviceConfig_SetLeftHanded_Call) Return(err error) *mockdeviceConfig_SetLeftHanded_Call {
311	_c.Call.Return(err)
312	return _c
313}
314
315func (_c *mockdeviceConfig_SetLeftHanded_Call) RunAndReturn(run func(dev uintptr, on bool) error) *mockdeviceConfig_SetLeftHanded_Call {
316	_c.Call.Return(run)
317	return _c
318}
319
320// SetNaturalScroll provides a mock function for the type mockdeviceConfig
321func (_mock *mockdeviceConfig) SetNaturalScroll(dev uintptr, on bool) error {
322	ret := _mock.Called(dev, on)
323
324	if len(ret) == 0 {
325		panic("no return value specified for SetNaturalScroll")
326	}
327
328	var r0 error
329	if returnFunc, ok := ret.Get(0).(func(uintptr, bool) error); ok {
330		r0 = returnFunc(dev, on)
331	} else {
332		r0 = ret.Error(0)
333	}
334	return r0
335}
336
337// mockdeviceConfig_SetNaturalScroll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetNaturalScroll'
338type mockdeviceConfig_SetNaturalScroll_Call struct {
339	*mock.Call
340}
341
342// SetNaturalScroll is a helper method to define mock.On call
343//   - dev uintptr
344//   - on bool
345func (_e *mockdeviceConfig_Expecter) SetNaturalScroll(dev any, on any) *mockdeviceConfig_SetNaturalScroll_Call {
346	return &mockdeviceConfig_SetNaturalScroll_Call{Call: _e.mock.On("SetNaturalScroll", dev, on)}
347}
348
349func (_c *mockdeviceConfig_SetNaturalScroll_Call) Run(run func(dev uintptr, on bool)) *mockdeviceConfig_SetNaturalScroll_Call {
350	_c.Call.Run(func(args mock.Arguments) {
351		var arg0 uintptr
352		if args[0] != nil {
353			arg0 = args[0].(uintptr)
354		}
355		var arg1 bool
356		if args[1] != nil {
357			arg1 = args[1].(bool)
358		}
359		run(
360			arg0,
361			arg1,
362		)
363	})
364	return _c
365}
366
367func (_c *mockdeviceConfig_SetNaturalScroll_Call) Return(err error) *mockdeviceConfig_SetNaturalScroll_Call {
368	_c.Call.Return(err)
369	return _c
370}
371
372func (_c *mockdeviceConfig_SetNaturalScroll_Call) RunAndReturn(run func(dev uintptr, on bool) error) *mockdeviceConfig_SetNaturalScroll_Call {
373	_c.Call.Return(run)
374	return _c
375}
376
377// SetTap provides a mock function for the type mockdeviceConfig
378func (_mock *mockdeviceConfig) SetTap(dev uintptr, on bool) error {
379	ret := _mock.Called(dev, on)
380
381	if len(ret) == 0 {
382		panic("no return value specified for SetTap")
383	}
384
385	var r0 error
386	if returnFunc, ok := ret.Get(0).(func(uintptr, bool) error); ok {
387		r0 = returnFunc(dev, on)
388	} else {
389		r0 = ret.Error(0)
390	}
391	return r0
392}
393
394// mockdeviceConfig_SetTap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTap'
395type mockdeviceConfig_SetTap_Call struct {
396	*mock.Call
397}
398
399// SetTap is a helper method to define mock.On call
400//   - dev uintptr
401//   - on bool
402func (_e *mockdeviceConfig_Expecter) SetTap(dev any, on any) *mockdeviceConfig_SetTap_Call {
403	return &mockdeviceConfig_SetTap_Call{Call: _e.mock.On("SetTap", dev, on)}
404}
405
406func (_c *mockdeviceConfig_SetTap_Call) Run(run func(dev uintptr, on bool)) *mockdeviceConfig_SetTap_Call {
407	_c.Call.Run(func(args mock.Arguments) {
408		var arg0 uintptr
409		if args[0] != nil {
410			arg0 = args[0].(uintptr)
411		}
412		var arg1 bool
413		if args[1] != nil {
414			arg1 = args[1].(bool)
415		}
416		run(
417			arg0,
418			arg1,
419		)
420	})
421	return _c
422}
423
424func (_c *mockdeviceConfig_SetTap_Call) Return(err error) *mockdeviceConfig_SetTap_Call {
425	_c.Call.Return(err)
426	return _c
427}
428
429func (_c *mockdeviceConfig_SetTap_Call) RunAndReturn(run func(dev uintptr, on bool) error) *mockdeviceConfig_SetTap_Call {
430	_c.Call.Return(run)
431	return _c
432}

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 25

Tags 10

↑↓ moveenter openesc close