v0.1.4 f33bfb5

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	mock := &MockMainLoop{}
18	mock.Mock.Test(t)
19
20	t.Cleanup(func() { mock.AssertExpectations(t) })
21
22	return mock
23}
24
25// MockMainLoop is an autogenerated mock type for the MainLoop type
26type MockMainLoop struct {
27	mock.Mock
28}
29
30type MockMainLoop_Expecter struct {
31	mock *mock.Mock
32}
33
34func (_m *MockMainLoop) EXPECT() *MockMainLoop_Expecter {
35	return &MockMainLoop_Expecter{mock: &_m.Mock}
36}
37
38// Destroy provides a mock function for the type MockMainLoop
39func (_mock *MockMainLoop) Destroy() {
40	_mock.Called()
41	return
42}
43
44// MockMainLoop_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'
45type MockMainLoop_Destroy_Call struct {
46	*mock.Call
47}
48
49// Destroy is a helper method to define mock.On call
50func (_e *MockMainLoop_Expecter) Destroy() *MockMainLoop_Destroy_Call {
51	return &MockMainLoop_Destroy_Call{Call: _e.mock.On("Destroy")}
52}
53
54func (_c *MockMainLoop_Destroy_Call) Run(run func()) *MockMainLoop_Destroy_Call {
55	_c.Call.Run(func(args mock.Arguments) {
56		run()
57	})
58	return _c
59}
60
61func (_c *MockMainLoop_Destroy_Call) Return() *MockMainLoop_Destroy_Call {
62	_c.Call.Return()
63	return _c
64}
65
66func (_c *MockMainLoop_Destroy_Call) RunAndReturn(run func()) *MockMainLoop_Destroy_Call {
67	_c.Run(run)
68	return _c
69}
70
71// Run provides a mock function for the type MockMainLoop
72func (_mock *MockMainLoop) Run() int32 {
73	ret := _mock.Called()
74
75	if len(ret) == 0 {
76		panic("no return value specified for Run")
77	}
78
79	var r0 int32
80	if returnFunc, ok := ret.Get(0).(func() int32); ok {
81		r0 = returnFunc()
82	} else {
83		r0 = ret.Get(0).(int32)
84	}
85	return r0
86}
87
88// MockMainLoop_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
89type MockMainLoop_Run_Call struct {
90	*mock.Call
91}
92
93// Run is a helper method to define mock.On call
94func (_e *MockMainLoop_Expecter) Run() *MockMainLoop_Run_Call {
95	return &MockMainLoop_Run_Call{Call: _e.mock.On("Run")}
96}
97
98func (_c *MockMainLoop_Run_Call) Run(run func()) *MockMainLoop_Run_Call {
99	_c.Call.Run(func(args mock.Arguments) {
100		run()
101	})
102	return _c
103}
104
105func (_c *MockMainLoop_Run_Call) Return(n int32) *MockMainLoop_Run_Call {
106	_c.Call.Return(n)
107	return _c
108}
109
110func (_c *MockMainLoop_Run_Call) RunAndReturn(run func() int32) *MockMainLoop_Run_Call {
111	_c.Call.Return(run)
112	return _c
113}

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