main 1fb2421

KeyInspector.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package mocks
6
7import (
8	"bnema.dev/ermite/internal/domain"
9	mock "github.com/stretchr/testify/mock"
10)
11
12// NewKeyInspector creates a new instance of KeyInspector. 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 NewKeyInspector(t interface {
15	mock.TestingT
16	Cleanup(func())
17}) *KeyInspector {
18	if helper, ok := t.(interface{ Helper() }); ok {
19		helper.Helper()
20	}
21
22	mock := &KeyInspector{}
23	mock.Mock.Test(t)
24
25	t.Cleanup(func() {
26		if helper, ok := t.(interface{ Helper() }); ok {
27			helper.Helper()
28		}
29		mock.AssertExpectations(t)
30	})
31
32	return mock
33}
34
35// KeyInspector is an autogenerated mock type for the KeyInspector type
36type KeyInspector struct {
37	mock.Mock
38}
39
40type KeyInspector_Expecter struct {
41	mock *mock.Mock
42}
43
44func (_m *KeyInspector) EXPECT() *KeyInspector_Expecter {
45	return &KeyInspector_Expecter{mock: &_m.Mock}
46}
47
48// Inspect provides a mock function for the type KeyInspector
49func (_mock *KeyInspector) Inspect(format domain.SignatureFormat, publicKey string) (string, string, error) {
50	ret := _mock.Called(format, publicKey)
51
52	if len(ret) == 0 {
53		panic("no return value specified for Inspect")
54	}
55
56	var r0 string
57	var r1 string
58	var r2 error
59	if returnFunc, ok := ret.Get(0).(func(domain.SignatureFormat, string) (string, string, error)); ok {
60		return returnFunc(format, publicKey)
61	}
62	if returnFunc, ok := ret.Get(0).(func(domain.SignatureFormat, string) string); ok {
63		r0 = returnFunc(format, publicKey)
64	} else {
65		r0 = ret.Get(0).(string)
66	}
67	if returnFunc, ok := ret.Get(1).(func(domain.SignatureFormat, string) string); ok {
68		r1 = returnFunc(format, publicKey)
69	} else {
70		r1 = ret.Get(1).(string)
71	}
72	if returnFunc, ok := ret.Get(2).(func(domain.SignatureFormat, string) error); ok {
73		r2 = returnFunc(format, publicKey)
74	} else {
75		r2 = ret.Error(2)
76	}
77	return r0, r1, r2
78}
79
80// KeyInspector_Inspect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Inspect'
81type KeyInspector_Inspect_Call struct {
82	*mock.Call
83}
84
85// Inspect is a helper method to define mock.On call
86//   - format domain.SignatureFormat
87//   - publicKey string
88func (_e *KeyInspector_Expecter) Inspect(format any, publicKey any) *KeyInspector_Inspect_Call {
89	return &KeyInspector_Inspect_Call{Call: _e.mock.On("Inspect", format, publicKey)}
90}
91
92func (_c *KeyInspector_Inspect_Call) Run(run func(format domain.SignatureFormat, publicKey string)) *KeyInspector_Inspect_Call {
93	_c.Call.Run(func(args mock.Arguments) {
94		var arg0 domain.SignatureFormat
95		if args[0] != nil {
96			arg0 = args[0].(domain.SignatureFormat)
97		}
98		var arg1 string
99		if args[1] != nil {
100			arg1 = args[1].(string)
101		}
102		run(
103			arg0,
104			arg1,
105		)
106	})
107	return _c
108}
109
110func (_c *KeyInspector_Inspect_Call) Return(id string, canonical string, err error) *KeyInspector_Inspect_Call {
111	_c.Call.Return(id, canonical, err)
112	return _c
113}
114
115func (_c *KeyInspector_Inspect_Call) RunAndReturn(run func(format domain.SignatureFormat, publicKey string) (string, string, error)) *KeyInspector_Inspect_Call {
116	_c.Call.Return(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 3

Tags 45

↑↓ moveenter openesc close