main f2d166b

video_core_mock_test.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package screencast
6
7import (
8	"github.com/bnema/purego-pipewire/pipewire"
9	mock "github.com/stretchr/testify/mock"
10)
11
12// newMockvideoCore creates a new instance of mockvideoCore. 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 newMockvideoCore(t interface {
15	mock.TestingT
16	Cleanup(func())
17}) *mockvideoCore {
18	if helper, ok := t.(interface{ Helper() }); ok {
19		helper.Helper()
20	}
21
22	mock := &mockvideoCore{}
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// mockvideoCore is an autogenerated mock type for the videoCore type
36type mockvideoCore struct {
37	mock.Mock
38}
39
40type mockvideoCore_Expecter struct {
41	mock *mock.Mock
42}
43
44func (_m *mockvideoCore) EXPECT() *mockvideoCore_Expecter {
45	return &mockvideoCore_Expecter{mock: &_m.Mock}
46}
47
48// Close provides a mock function for the type mockvideoCore
49func (_mock *mockvideoCore) Close() {
50	_mock.Called()
51	return
52}
53
54// mockvideoCore_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
55type mockvideoCore_Close_Call struct {
56	*mock.Call
57}
58
59// Close is a helper method to define mock.On call
60func (_e *mockvideoCore_Expecter) Close() *mockvideoCore_Close_Call {
61	return &mockvideoCore_Close_Call{Call: _e.mock.On("Close")}
62}
63
64func (_c *mockvideoCore_Close_Call) Run(run func()) *mockvideoCore_Close_Call {
65	_c.Call.Run(func(args mock.Arguments) {
66		run()
67	})
68	return _c
69}
70
71func (_c *mockvideoCore_Close_Call) Return() *mockvideoCore_Close_Call {
72	_c.Call.Return()
73	return _c
74}
75
76func (_c *mockvideoCore_Close_Call) RunAndReturn(run func()) *mockvideoCore_Close_Call {
77	_c.Run(run)
78	return _c
79}
80
81// Fd provides a mock function for the type mockvideoCore
82func (_mock *mockvideoCore) Fd() int {
83	ret := _mock.Called()
84
85	if len(ret) == 0 {
86		panic("no return value specified for Fd")
87	}
88
89	var r0 int
90	if returnFunc, ok := ret.Get(0).(func() int); ok {
91		r0 = returnFunc()
92	} else {
93		r0 = ret.Get(0).(int)
94	}
95	return r0
96}
97
98// mockvideoCore_Fd_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fd'
99type mockvideoCore_Fd_Call struct {
100	*mock.Call
101}
102
103// Fd is a helper method to define mock.On call
104func (_e *mockvideoCore_Expecter) Fd() *mockvideoCore_Fd_Call {
105	return &mockvideoCore_Fd_Call{Call: _e.mock.On("Fd")}
106}
107
108func (_c *mockvideoCore_Fd_Call) Run(run func()) *mockvideoCore_Fd_Call {
109	_c.Call.Run(func(args mock.Arguments) {
110		run()
111	})
112	return _c
113}
114
115func (_c *mockvideoCore_Fd_Call) Return(n int) *mockvideoCore_Fd_Call {
116	_c.Call.Return(n)
117	return _c
118}
119
120func (_c *mockvideoCore_Fd_Call) RunAndReturn(run func() int) *mockvideoCore_Fd_Call {
121	_c.Call.Return(run)
122	return _c
123}
124
125// Iterate provides a mock function for the type mockvideoCore
126func (_mock *mockvideoCore) Iterate() {
127	_mock.Called()
128	return
129}
130
131// mockvideoCore_Iterate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Iterate'
132type mockvideoCore_Iterate_Call struct {
133	*mock.Call
134}
135
136// Iterate is a helper method to define mock.On call
137func (_e *mockvideoCore_Expecter) Iterate() *mockvideoCore_Iterate_Call {
138	return &mockvideoCore_Iterate_Call{Call: _e.mock.On("Iterate")}
139}
140
141func (_c *mockvideoCore_Iterate_Call) Run(run func()) *mockvideoCore_Iterate_Call {
142	_c.Call.Run(func(args mock.Arguments) {
143		run()
144	})
145	return _c
146}
147
148func (_c *mockvideoCore_Iterate_Call) Return() *mockvideoCore_Iterate_Call {
149	_c.Call.Return()
150	return _c
151}
152
153func (_c *mockvideoCore_Iterate_Call) RunAndReturn(run func()) *mockvideoCore_Iterate_Call {
154	_c.Run(run)
155	return _c
156}
157
158// NewVideoSource provides a mock function for the type mockvideoCore
159func (_mock *mockvideoCore) NewVideoSource(cfg pipewire.VideoConfig, h pipewire.VideoHandler) (videoSource, error) {
160	ret := _mock.Called(cfg, h)
161
162	if len(ret) == 0 {
163		panic("no return value specified for NewVideoSource")
164	}
165
166	var r0 videoSource
167	var r1 error
168	if returnFunc, ok := ret.Get(0).(func(pipewire.VideoConfig, pipewire.VideoHandler) (videoSource, error)); ok {
169		return returnFunc(cfg, h)
170	}
171	if returnFunc, ok := ret.Get(0).(func(pipewire.VideoConfig, pipewire.VideoHandler) videoSource); ok {
172		r0 = returnFunc(cfg, h)
173	} else {
174		if ret.Get(0) != nil {
175			r0 = ret.Get(0).(videoSource)
176		}
177	}
178	if returnFunc, ok := ret.Get(1).(func(pipewire.VideoConfig, pipewire.VideoHandler) error); ok {
179		r1 = returnFunc(cfg, h)
180	} else {
181		r1 = ret.Error(1)
182	}
183	return r0, r1
184}
185
186// mockvideoCore_NewVideoSource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewVideoSource'
187type mockvideoCore_NewVideoSource_Call struct {
188	*mock.Call
189}
190
191// NewVideoSource is a helper method to define mock.On call
192//   - cfg pipewire.VideoConfig
193//   - h pipewire.VideoHandler
194func (_e *mockvideoCore_Expecter) NewVideoSource(cfg any, h any) *mockvideoCore_NewVideoSource_Call {
195	return &mockvideoCore_NewVideoSource_Call{Call: _e.mock.On("NewVideoSource", cfg, h)}
196}
197
198func (_c *mockvideoCore_NewVideoSource_Call) Run(run func(cfg pipewire.VideoConfig, h pipewire.VideoHandler)) *mockvideoCore_NewVideoSource_Call {
199	_c.Call.Run(func(args mock.Arguments) {
200		var arg0 pipewire.VideoConfig
201		if args[0] != nil {
202			arg0 = args[0].(pipewire.VideoConfig)
203		}
204		var arg1 pipewire.VideoHandler
205		if args[1] != nil {
206			arg1 = args[1].(pipewire.VideoHandler)
207		}
208		run(
209			arg0,
210			arg1,
211		)
212	})
213	return _c
214}
215
216func (_c *mockvideoCore_NewVideoSource_Call) Return(videoSourceMoqParam videoSource, err error) *mockvideoCore_NewVideoSource_Call {
217	_c.Call.Return(videoSourceMoqParam, err)
218	return _c
219}
220
221func (_c *mockvideoCore_NewVideoSource_Call) RunAndReturn(run func(cfg pipewire.VideoConfig, h pipewire.VideoHandler) (videoSource, error)) *mockvideoCore_NewVideoSource_Call {
222	_c.Call.Return(run)
223	return _c
224}

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