main 5041353

navigation.go RawHistoryFolder

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

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 8

Tags 42

↑↓ moveenter openesc close