main 4c97002

mock_MainLoop.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package mocks
6
7import (
8	mock "github.com/stretchr/testify/mock"
9)
10
11// NewMockMainLoop creates a new instance of MockMainLoop. 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 NewMockMainLoop(t interface {
14	mock.TestingT
15	Cleanup(func())
16}) *MockMainLoop {
17	if helper, ok := t.(interface{ Helper() }); ok {
18		helper.Helper()
19	}
20
21	mock := &MockMainLoop{}
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// MockMainLoop is an autogenerated mock type for the MainLoop type
35type MockMainLoop struct {
36	mock.Mock
37}
38
39type MockMainLoop_Expecter struct {
40	mock *mock.Mock
41}
42
43func (_m *MockMainLoop) EXPECT() *MockMainLoop_Expecter {
44	return &MockMainLoop_Expecter{mock: &_m.Mock}
45}
46
47// Destroy provides a mock function for the type MockMainLoop
48func (_mock *MockMainLoop) Destroy() {
49	_mock.Called()
50	return
51}
52
53// MockMainLoop_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'
54type MockMainLoop_Destroy_Call struct {
55	*mock.Call
56}
57
58// Destroy is a helper method to define mock.On call
59func (_e *MockMainLoop_Expecter) Destroy() *MockMainLoop_Destroy_Call {
60	return &MockMainLoop_Destroy_Call{Call: _e.mock.On("Destroy")}
61}
62
63func (_c *MockMainLoop_Destroy_Call) Run(run func()) *MockMainLoop_Destroy_Call {
64	_c.Call.Run(func(args mock.Arguments) {
65		run()
66	})
67	return _c
68}
69
70func (_c *MockMainLoop_Destroy_Call) Return() *MockMainLoop_Destroy_Call {
71	_c.Call.Return()
72	return _c
73}
74
75func (_c *MockMainLoop_Destroy_Call) RunAndReturn(run func()) *MockMainLoop_Destroy_Call {
76	_c.Run(run)
77	return _c
78}
79
80// Run provides a mock function for the type MockMainLoop
81func (_mock *MockMainLoop) Run() int32 {
82	ret := _mock.Called()
83
84	if len(ret) == 0 {
85		panic("no return value specified for Run")
86	}
87
88	var r0 int32
89	if returnFunc, ok := ret.Get(0).(func() int32); ok {
90		r0 = returnFunc()
91	} else {
92		r0 = ret.Get(0).(int32)
93	}
94	return r0
95}
96
97// MockMainLoop_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
98type MockMainLoop_Run_Call struct {
99	*mock.Call
100}
101
102// Run is a helper method to define mock.On call
103func (_e *MockMainLoop_Expecter) Run() *MockMainLoop_Run_Call {
104	return &MockMainLoop_Run_Call{Call: _e.mock.On("Run")}
105}
106
107func (_c *MockMainLoop_Run_Call) Run(run func()) *MockMainLoop_Run_Call {
108	_c.Call.Run(func(args mock.Arguments) {
109		run()
110	})
111	return _c
112}
113
114func (_c *MockMainLoop_Run_Call) Return(n int32) *MockMainLoop_Run_Call {
115	_c.Call.Return(n)
116	return _c
117}
118
119func (_c *MockMainLoop_Run_Call) RunAndReturn(run func() int32) *MockMainLoop_Run_Call {
120	_c.Call.Return(run)
121	return _c
122}

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