v0.33.0 62a09f5

accent_picker.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// NewMockAccentPickerUI creates a new instance of MockAccentPickerUI. 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 NewMockAccentPickerUI(t interface {
14	mock.TestingT
15	Cleanup(func())
16}) *MockAccentPickerUI {
17	mock := &MockAccentPickerUI{}
18	mock.Mock.Test(t)
19
20	t.Cleanup(func() { mock.AssertExpectations(t) })
21
22	return mock
23}
24
25// MockAccentPickerUI is an autogenerated mock type for the AccentPickerUI type
26type MockAccentPickerUI struct {
27	mock.Mock
28}
29
30type MockAccentPickerUI_Expecter struct {
31	mock *mock.Mock
32}
33
34func (_m *MockAccentPickerUI) EXPECT() *MockAccentPickerUI_Expecter {
35	return &MockAccentPickerUI_Expecter{mock: &_m.Mock}
36}
37
38// Hide provides a mock function for the type MockAccentPickerUI
39func (_mock *MockAccentPickerUI) Hide() {
40	_mock.Called()
41	return
42}
43
44// MockAccentPickerUI_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
45type MockAccentPickerUI_Hide_Call struct {
46	*mock.Call
47}
48
49// Hide is a helper method to define mock.On call
50func (_e *MockAccentPickerUI_Expecter) Hide() *MockAccentPickerUI_Hide_Call {
51	return &MockAccentPickerUI_Hide_Call{Call: _e.mock.On("Hide")}
52}
53
54func (_c *MockAccentPickerUI_Hide_Call) Run(run func()) *MockAccentPickerUI_Hide_Call {
55	_c.Call.Run(func(args mock.Arguments) {
56		run()
57	})
58	return _c
59}
60
61func (_c *MockAccentPickerUI_Hide_Call) Return() *MockAccentPickerUI_Hide_Call {
62	_c.Call.Return()
63	return _c
64}
65
66func (_c *MockAccentPickerUI_Hide_Call) RunAndReturn(run func()) *MockAccentPickerUI_Hide_Call {
67	_c.Run(run)
68	return _c
69}
70
71// IsVisible provides a mock function for the type MockAccentPickerUI
72func (_mock *MockAccentPickerUI) IsVisible() bool {
73	ret := _mock.Called()
74
75	if len(ret) == 0 {
76		panic("no return value specified for IsVisible")
77	}
78
79	var r0 bool
80	if returnFunc, ok := ret.Get(0).(func() bool); ok {
81		r0 = returnFunc()
82	} else {
83		r0 = ret.Get(0).(bool)
84	}
85	return r0
86}
87
88// MockAccentPickerUI_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible'
89type MockAccentPickerUI_IsVisible_Call struct {
90	*mock.Call
91}
92
93// IsVisible is a helper method to define mock.On call
94func (_e *MockAccentPickerUI_Expecter) IsVisible() *MockAccentPickerUI_IsVisible_Call {
95	return &MockAccentPickerUI_IsVisible_Call{Call: _e.mock.On("IsVisible")}
96}
97
98func (_c *MockAccentPickerUI_IsVisible_Call) Run(run func()) *MockAccentPickerUI_IsVisible_Call {
99	_c.Call.Run(func(args mock.Arguments) {
100		run()
101	})
102	return _c
103}
104
105func (_c *MockAccentPickerUI_IsVisible_Call) Return(b bool) *MockAccentPickerUI_IsVisible_Call {
106	_c.Call.Return(b)
107	return _c
108}
109
110func (_c *MockAccentPickerUI_IsVisible_Call) RunAndReturn(run func() bool) *MockAccentPickerUI_IsVisible_Call {
111	_c.Call.Return(run)
112	return _c
113}
114
115// Show provides a mock function for the type MockAccentPickerUI
116func (_mock *MockAccentPickerUI) Show(accents []rune, selectedCallback func(accent rune), cancelCallback func()) {
117	_mock.Called(accents, selectedCallback, cancelCallback)
118	return
119}
120
121// MockAccentPickerUI_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show'
122type MockAccentPickerUI_Show_Call struct {
123	*mock.Call
124}
125
126// Show is a helper method to define mock.On call
127//   - accents []rune
128//   - selectedCallback func(accent rune)
129//   - cancelCallback func()
130func (_e *MockAccentPickerUI_Expecter) Show(accents any, selectedCallback any, cancelCallback any) *MockAccentPickerUI_Show_Call {
131	return &MockAccentPickerUI_Show_Call{Call: _e.mock.On("Show", accents, selectedCallback, cancelCallback)}
132}
133
134func (_c *MockAccentPickerUI_Show_Call) Run(run func(accents []rune, selectedCallback func(accent rune), cancelCallback func())) *MockAccentPickerUI_Show_Call {
135	_c.Call.Run(func(args mock.Arguments) {
136		var arg0 []rune
137		if args[0] != nil {
138			arg0 = args[0].([]rune)
139		}
140		var arg1 func(accent rune)
141		if args[1] != nil {
142			arg1 = args[1].(func(accent rune))
143		}
144		var arg2 func()
145		if args[2] != nil {
146			arg2 = args[2].(func())
147		}
148		run(
149			arg0,
150			arg1,
151			arg2,
152		)
153	})
154	return _c
155}
156
157func (_c *MockAccentPickerUI_Show_Call) Return() *MockAccentPickerUI_Show_Call {
158	_c.Call.Return()
159	return _c
160}
161
162func (_c *MockAccentPickerUI_Show_Call) RunAndReturn(run func(accents []rune, selectedCallback func(accent rune), cancelCallback func())) *MockAccentPickerUI_Show_Call {
163	_c.Run(run)
164	return _c
165}

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