v0.1.5 7f87577

mock_Runtime.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package mocks
6
7import (
8	"github.com/bnema/purego-pipewire/pipewire"
9	mock "github.com/stretchr/testify/mock"
10)
11
12// NewMockRuntime creates a new instance of MockRuntime. 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 NewMockRuntime(t interface {
15	mock.TestingT
16	Cleanup(func())
17}) *MockRuntime {
18	mock := &MockRuntime{}
19	mock.Mock.Test(t)
20
21	t.Cleanup(func() { mock.AssertExpectations(t) })
22
23	return mock
24}
25
26// MockRuntime is an autogenerated mock type for the Runtime type
27type MockRuntime struct {
28	mock.Mock
29}
30
31type MockRuntime_Expecter struct {
32	mock *mock.Mock
33}
34
35func (_m *MockRuntime) EXPECT() *MockRuntime_Expecter {
36	return &MockRuntime_Expecter{mock: &_m.Mock}
37}
38
39// Deinit provides a mock function for the type MockRuntime
40func (_mock *MockRuntime) Deinit() {
41	_mock.Called()
42	return
43}
44
45// MockRuntime_Deinit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deinit'
46type MockRuntime_Deinit_Call struct {
47	*mock.Call
48}
49
50// Deinit is a helper method to define mock.On call
51func (_e *MockRuntime_Expecter) Deinit() *MockRuntime_Deinit_Call {
52	return &MockRuntime_Deinit_Call{Call: _e.mock.On("Deinit")}
53}
54
55func (_c *MockRuntime_Deinit_Call) Run(run func()) *MockRuntime_Deinit_Call {
56	_c.Call.Run(func(args mock.Arguments) {
57		run()
58	})
59	return _c
60}
61
62func (_c *MockRuntime_Deinit_Call) Return() *MockRuntime_Deinit_Call {
63	_c.Call.Return()
64	return _c
65}
66
67func (_c *MockRuntime_Deinit_Call) RunAndReturn(run func()) *MockRuntime_Deinit_Call {
68	_c.Run(run)
69	return _c
70}
71
72// Init provides a mock function for the type MockRuntime
73func (_mock *MockRuntime) Init() error {
74	ret := _mock.Called()
75
76	if len(ret) == 0 {
77		panic("no return value specified for Init")
78	}
79
80	var r0 error
81	if returnFunc, ok := ret.Get(0).(func() error); ok {
82		r0 = returnFunc()
83	} else {
84		r0 = ret.Error(0)
85	}
86	return r0
87}
88
89// MockRuntime_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
90type MockRuntime_Init_Call struct {
91	*mock.Call
92}
93
94// Init is a helper method to define mock.On call
95func (_e *MockRuntime_Expecter) Init() *MockRuntime_Init_Call {
96	return &MockRuntime_Init_Call{Call: _e.mock.On("Init")}
97}
98
99func (_c *MockRuntime_Init_Call) Run(run func()) *MockRuntime_Init_Call {
100	_c.Call.Run(func(args mock.Arguments) {
101		run()
102	})
103	return _c
104}
105
106func (_c *MockRuntime_Init_Call) Return(err error) *MockRuntime_Init_Call {
107	_c.Call.Return(err)
108	return _c
109}
110
111func (_c *MockRuntime_Init_Call) RunAndReturn(run func() error) *MockRuntime_Init_Call {
112	_c.Call.Return(run)
113	return _c
114}
115
116// NewMainLoop provides a mock function for the type MockRuntime
117func (_mock *MockRuntime) NewMainLoop() (pipewire.MainLoop, error) {
118	ret := _mock.Called()
119
120	if len(ret) == 0 {
121		panic("no return value specified for NewMainLoop")
122	}
123
124	var r0 pipewire.MainLoop
125	var r1 error
126	if returnFunc, ok := ret.Get(0).(func() (pipewire.MainLoop, error)); ok {
127		return returnFunc()
128	}
129	if returnFunc, ok := ret.Get(0).(func() pipewire.MainLoop); ok {
130		r0 = returnFunc()
131	} else {
132		if ret.Get(0) != nil {
133			r0 = ret.Get(0).(pipewire.MainLoop)
134		}
135	}
136	if returnFunc, ok := ret.Get(1).(func() error); ok {
137		r1 = returnFunc()
138	} else {
139		r1 = ret.Error(1)
140	}
141	return r0, r1
142}
143
144// MockRuntime_NewMainLoop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewMainLoop'
145type MockRuntime_NewMainLoop_Call struct {
146	*mock.Call
147}
148
149// NewMainLoop is a helper method to define mock.On call
150func (_e *MockRuntime_Expecter) NewMainLoop() *MockRuntime_NewMainLoop_Call {
151	return &MockRuntime_NewMainLoop_Call{Call: _e.mock.On("NewMainLoop")}
152}
153
154func (_c *MockRuntime_NewMainLoop_Call) Run(run func()) *MockRuntime_NewMainLoop_Call {
155	_c.Call.Run(func(args mock.Arguments) {
156		run()
157	})
158	return _c
159}
160
161func (_c *MockRuntime_NewMainLoop_Call) Return(mainLoop pipewire.MainLoop, err error) *MockRuntime_NewMainLoop_Call {
162	_c.Call.Return(mainLoop, err)
163	return _c
164}
165
166func (_c *MockRuntime_NewMainLoop_Call) RunAndReturn(run func() (pipewire.MainLoop, error)) *MockRuntime_NewMainLoop_Call {
167	_c.Call.Return(run)
168	return _c
169}

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 8

↑↓ moveenter openesc close