acquire_poller_mock_test.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package wayland
6
7import (
8	mock "github.com/stretchr/testify/mock"
9	"golang.org/x/sys/unix"
10)
11
12// newMockacquirePoller creates a new instance of mockacquirePoller. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
13// The first argument is typically a *testing.T value.
14func newMockacquirePoller(t interface {
15	mock.TestingT
16	Cleanup(func())
17}) *mockacquirePoller {
18	if helper, ok := t.(interface{ Helper() }); ok {
19		helper.Helper()
20	}
21
22	mock := &mockacquirePoller{}
23	mock.Mock.Test(t)
24
25	t.Cleanup(func() {
26		if helper, ok := t.(interface{ Helper() }); ok {
27			helper.Helper()
28		}
29		mock.AssertExpectations(t)
30	})
31
32	return mock
33}
34
35// mockacquirePoller is an autogenerated mock type for the acquirePoller type
36type mockacquirePoller struct {
37	mock.Mock
38}
39
40type mockacquirePoller_Expecter struct {
41	mock *mock.Mock
42}
43
44func (_m *mockacquirePoller) EXPECT() *mockacquirePoller_Expecter {
45	return &mockacquirePoller_Expecter{mock: &_m.Mock}
46}
47
48// poll provides a mock function for the type mockacquirePoller
49func (_mock *mockacquirePoller) poll(pollFds []unix.PollFd, n int) (int, error) {
50	ret := _mock.Called(pollFds, n)
51
52	if len(ret) == 0 {
53		panic("no return value specified for poll")
54	}
55
56	var r0 int
57	var r1 error
58	if returnFunc, ok := ret.Get(0).(func([]unix.PollFd, int) (int, error)); ok {
59		return returnFunc(pollFds, n)
60	}
61	if returnFunc, ok := ret.Get(0).(func([]unix.PollFd, int) int); ok {
62		r0 = returnFunc(pollFds, n)
63	} else {
64		r0 = ret.Get(0).(int)
65	}
66	if returnFunc, ok := ret.Get(1).(func([]unix.PollFd, int) error); ok {
67		r1 = returnFunc(pollFds, n)
68	} else {
69		r1 = ret.Error(1)
70	}
71	return r0, r1
72}
73
74// mockacquirePoller_poll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'poll'
75type mockacquirePoller_poll_Call struct {
76	*mock.Call
77}
78
79// poll is a helper method to define mock.On call
80//   - pollFds []unix.PollFd
81//   - n int
82func (_e *mockacquirePoller_Expecter) poll(pollFds any, n any) *mockacquirePoller_poll_Call {
83	return &mockacquirePoller_poll_Call{Call: _e.mock.On("poll", pollFds, n)}
84}
85
86func (_c *mockacquirePoller_poll_Call) Run(run func(pollFds []unix.PollFd, n int)) *mockacquirePoller_poll_Call {
87	_c.Call.Run(func(args mock.Arguments) {
88		var arg0 []unix.PollFd
89		if args[0] != nil {
90			arg0 = args[0].([]unix.PollFd)
91		}
92		var arg1 int
93		if args[1] != nil {
94			arg1 = args[1].(int)
95		}
96		run(
97			arg0,
98			arg1,
99		)
100	})
101	return _c
102}
103
104func (_c *mockacquirePoller_poll_Call) Return(n1 int, err error) *mockacquirePoller_poll_Call {
105	_c.Call.Return(n1, err)
106	return _c
107}
108
109func (_c *mockacquirePoller_poll_Call) RunAndReturn(run func(pollFds []unix.PollFd, n int) (int, error)) *mockacquirePoller_poll_Call {
110	_c.Call.Return(run)
111	return _c
112}

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