main f2d166b

desktop_mock.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package portsmocks
6
7import (
8	mock "github.com/stretchr/testify/mock"
9)
10
11// NewMockNotifier creates a new instance of MockNotifier. 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 NewMockNotifier(t interface {
14	mock.TestingT
15	Cleanup(func())
16}) *MockNotifier {
17	if helper, ok := t.(interface{ Helper() }); ok {
18		helper.Helper()
19	}
20
21	mock := &MockNotifier{}
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// MockNotifier is an autogenerated mock type for the Notifier type
35type MockNotifier struct {
36	mock.Mock
37}
38
39type MockNotifier_Expecter struct {
40	mock *mock.Mock
41}
42
43func (_m *MockNotifier) EXPECT() *MockNotifier_Expecter {
44	return &MockNotifier_Expecter{mock: &_m.Mock}
45}
46
47// Notify provides a mock function for the type MockNotifier
48func (_mock *MockNotifier) Notify(summary string, body string) {
49	_mock.Called(summary, body)
50	return
51}
52
53// MockNotifier_Notify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Notify'
54type MockNotifier_Notify_Call struct {
55	*mock.Call
56}
57
58// Notify is a helper method to define mock.On call
59//   - summary string
60//   - body string
61func (_e *MockNotifier_Expecter) Notify(summary any, body any) *MockNotifier_Notify_Call {
62	return &MockNotifier_Notify_Call{Call: _e.mock.On("Notify", summary, body)}
63}
64
65func (_c *MockNotifier_Notify_Call) Run(run func(summary string, body string)) *MockNotifier_Notify_Call {
66	_c.Call.Run(func(args mock.Arguments) {
67		var arg0 string
68		if args[0] != nil {
69			arg0 = args[0].(string)
70		}
71		var arg1 string
72		if args[1] != nil {
73			arg1 = args[1].(string)
74		}
75		run(
76			arg0,
77			arg1,
78		)
79	})
80	return _c
81}
82
83func (_c *MockNotifier_Notify_Call) Return() *MockNotifier_Notify_Call {
84	_c.Call.Return()
85	return _c
86}
87
88func (_c *MockNotifier_Notify_Call) RunAndReturn(run func(summary string, body string)) *MockNotifier_Notify_Call {
89	_c.Run(run)
90	return _c
91}
92
93// NewMockOutputScaleStore creates a new instance of MockOutputScaleStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
94// The first argument is typically a *testing.T value.
95func NewMockOutputScaleStore(t interface {
96	mock.TestingT
97	Cleanup(func())
98}) *MockOutputScaleStore {
99	if helper, ok := t.(interface{ Helper() }); ok {
100		helper.Helper()
101	}
102
103	mock := &MockOutputScaleStore{}
104	mock.Mock.Test(t)
105
106	t.Cleanup(func() {
107		if helper, ok := t.(interface{ Helper() }); ok {
108			helper.Helper()
109		}
110		mock.AssertExpectations(t)
111	})
112
113	return mock
114}
115
116// MockOutputScaleStore is an autogenerated mock type for the OutputScaleStore type
117type MockOutputScaleStore struct {
118	mock.Mock
119}
120
121type MockOutputScaleStore_Expecter struct {
122	mock *mock.Mock
123}
124
125func (_m *MockOutputScaleStore) EXPECT() *MockOutputScaleStore_Expecter {
126	return &MockOutputScaleStore_Expecter{mock: &_m.Mock}
127}
128
129// SaveOutputScale provides a mock function for the type MockOutputScaleStore
130func (_mock *MockOutputScaleStore) SaveOutputScale(output string, scale float64) error {
131	ret := _mock.Called(output, scale)
132
133	if len(ret) == 0 {
134		panic("no return value specified for SaveOutputScale")
135	}
136
137	var r0 error
138	if returnFunc, ok := ret.Get(0).(func(string, float64) error); ok {
139		r0 = returnFunc(output, scale)
140	} else {
141		r0 = ret.Error(0)
142	}
143	return r0
144}
145
146// MockOutputScaleStore_SaveOutputScale_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveOutputScale'
147type MockOutputScaleStore_SaveOutputScale_Call struct {
148	*mock.Call
149}
150
151// SaveOutputScale is a helper method to define mock.On call
152//   - output string
153//   - scale float64
154func (_e *MockOutputScaleStore_Expecter) SaveOutputScale(output any, scale any) *MockOutputScaleStore_SaveOutputScale_Call {
155	return &MockOutputScaleStore_SaveOutputScale_Call{Call: _e.mock.On("SaveOutputScale", output, scale)}
156}
157
158func (_c *MockOutputScaleStore_SaveOutputScale_Call) Run(run func(output string, scale float64)) *MockOutputScaleStore_SaveOutputScale_Call {
159	_c.Call.Run(func(args mock.Arguments) {
160		var arg0 string
161		if args[0] != nil {
162			arg0 = args[0].(string)
163		}
164		var arg1 float64
165		if args[1] != nil {
166			arg1 = args[1].(float64)
167		}
168		run(
169			arg0,
170			arg1,
171		)
172	})
173	return _c
174}
175
176func (_c *MockOutputScaleStore_SaveOutputScale_Call) Return(err error) *MockOutputScaleStore_SaveOutputScale_Call {
177	_c.Call.Return(err)
178	return _c
179}
180
181func (_c *MockOutputScaleStore_SaveOutputScale_Call) RunAndReturn(run func(output string, scale float64) error) *MockOutputScaleStore_SaveOutputScale_Call {
182	_c.Call.Return(run)
183	return _c
184}

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 25

Tags 10

↑↓ moveenter openesc close