v0.1.0 7deb448

terminal_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	"io"
9
10	"github.com/bnema/vev/internal/domain"
11	mock "github.com/stretchr/testify/mock"
12)
13
14// NewMockTerminal creates a new instance of MockTerminal. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
15// The first argument is typically a *testing.T value.
16func NewMockTerminal(t interface {
17	mock.TestingT
18	Cleanup(func())
19}) *MockTerminal {
20	mock := &MockTerminal{}
21	mock.Mock.Test(t)
22
23	t.Cleanup(func() { mock.AssertExpectations(t) })
24
25	return mock
26}
27
28// MockTerminal is an autogenerated mock type for the Terminal type
29type MockTerminal struct {
30	mock.Mock
31}
32
33type MockTerminal_Expecter struct {
34	mock *mock.Mock
35}
36
37func (_m *MockTerminal) EXPECT() *MockTerminal_Expecter {
38	return &MockTerminal_Expecter{mock: &_m.Mock}
39}
40
41// EnterRaw provides a mock function for the type MockTerminal
42func (_mock *MockTerminal) EnterRaw() (func() error, error) {
43	ret := _mock.Called()
44
45	if len(ret) == 0 {
46		panic("no return value specified for EnterRaw")
47	}
48
49	var r0 func() error
50	var r1 error
51	if returnFunc, ok := ret.Get(0).(func() (func() error, error)); ok {
52		return returnFunc()
53	}
54	if returnFunc, ok := ret.Get(0).(func() func() error); ok {
55		r0 = returnFunc()
56	} else {
57		if ret.Get(0) != nil {
58			r0 = ret.Get(0).(func() error)
59		}
60	}
61	if returnFunc, ok := ret.Get(1).(func() error); ok {
62		r1 = returnFunc()
63	} else {
64		r1 = ret.Error(1)
65	}
66	return r0, r1
67}
68
69// MockTerminal_EnterRaw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EnterRaw'
70type MockTerminal_EnterRaw_Call struct {
71	*mock.Call
72}
73
74// EnterRaw is a helper method to define mock.On call
75func (_e *MockTerminal_Expecter) EnterRaw() *MockTerminal_EnterRaw_Call {
76	return &MockTerminal_EnterRaw_Call{Call: _e.mock.On("EnterRaw")}
77}
78
79func (_c *MockTerminal_EnterRaw_Call) Run(run func()) *MockTerminal_EnterRaw_Call {
80	_c.Call.Run(func(args mock.Arguments) {
81		run()
82	})
83	return _c
84}
85
86func (_c *MockTerminal_EnterRaw_Call) Return(restore func() error, err error) *MockTerminal_EnterRaw_Call {
87	_c.Call.Return(restore, err)
88	return _c
89}
90
91func (_c *MockTerminal_EnterRaw_Call) RunAndReturn(run func() (func() error, error)) *MockTerminal_EnterRaw_Call {
92	_c.Call.Return(run)
93	return _c
94}
95
96// Flush provides a mock function for the type MockTerminal
97func (_mock *MockTerminal) Flush() error {
98	ret := _mock.Called()
99
100	if len(ret) == 0 {
101		panic("no return value specified for Flush")
102	}
103
104	var r0 error
105	if returnFunc, ok := ret.Get(0).(func() error); ok {
106		r0 = returnFunc()
107	} else {
108		r0 = ret.Error(0)
109	}
110	return r0
111}
112
113// MockTerminal_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'
114type MockTerminal_Flush_Call struct {
115	*mock.Call
116}
117
118// Flush is a helper method to define mock.On call
119func (_e *MockTerminal_Expecter) Flush() *MockTerminal_Flush_Call {
120	return &MockTerminal_Flush_Call{Call: _e.mock.On("Flush")}
121}
122
123func (_c *MockTerminal_Flush_Call) Run(run func()) *MockTerminal_Flush_Call {
124	_c.Call.Run(func(args mock.Arguments) {
125		run()
126	})
127	return _c
128}
129
130func (_c *MockTerminal_Flush_Call) Return(err error) *MockTerminal_Flush_Call {
131	_c.Call.Return(err)
132	return _c
133}
134
135func (_c *MockTerminal_Flush_Call) RunAndReturn(run func() error) *MockTerminal_Flush_Call {
136	_c.Call.Return(run)
137	return _c
138}
139
140// In provides a mock function for the type MockTerminal
141func (_mock *MockTerminal) In() io.Reader {
142	ret := _mock.Called()
143
144	if len(ret) == 0 {
145		panic("no return value specified for In")
146	}
147
148	var r0 io.Reader
149	if returnFunc, ok := ret.Get(0).(func() io.Reader); ok {
150		r0 = returnFunc()
151	} else {
152		if ret.Get(0) != nil {
153			r0 = ret.Get(0).(io.Reader)
154		}
155	}
156	return r0
157}
158
159// MockTerminal_In_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'In'
160type MockTerminal_In_Call struct {
161	*mock.Call
162}
163
164// In is a helper method to define mock.On call
165func (_e *MockTerminal_Expecter) In() *MockTerminal_In_Call {
166	return &MockTerminal_In_Call{Call: _e.mock.On("In")}
167}
168
169func (_c *MockTerminal_In_Call) Run(run func()) *MockTerminal_In_Call {
170	_c.Call.Run(func(args mock.Arguments) {
171		run()
172	})
173	return _c
174}
175
176func (_c *MockTerminal_In_Call) Return(reader io.Reader) *MockTerminal_In_Call {
177	_c.Call.Return(reader)
178	return _c
179}
180
181func (_c *MockTerminal_In_Call) RunAndReturn(run func() io.Reader) *MockTerminal_In_Call {
182	_c.Call.Return(run)
183	return _c
184}
185
186// Out provides a mock function for the type MockTerminal
187func (_mock *MockTerminal) Out() io.Writer {
188	ret := _mock.Called()
189
190	if len(ret) == 0 {
191		panic("no return value specified for Out")
192	}
193
194	var r0 io.Writer
195	if returnFunc, ok := ret.Get(0).(func() io.Writer); ok {
196		r0 = returnFunc()
197	} else {
198		if ret.Get(0) != nil {
199			r0 = ret.Get(0).(io.Writer)
200		}
201	}
202	return r0
203}
204
205// MockTerminal_Out_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Out'
206type MockTerminal_Out_Call struct {
207	*mock.Call
208}
209
210// Out is a helper method to define mock.On call
211func (_e *MockTerminal_Expecter) Out() *MockTerminal_Out_Call {
212	return &MockTerminal_Out_Call{Call: _e.mock.On("Out")}
213}
214
215func (_c *MockTerminal_Out_Call) Run(run func()) *MockTerminal_Out_Call {
216	_c.Call.Run(func(args mock.Arguments) {
217		run()
218	})
219	return _c
220}
221
222func (_c *MockTerminal_Out_Call) Return(writer io.Writer) *MockTerminal_Out_Call {
223	_c.Call.Return(writer)
224	return _c
225}
226
227func (_c *MockTerminal_Out_Call) RunAndReturn(run func() io.Writer) *MockTerminal_Out_Call {
228	_c.Call.Return(run)
229	return _c
230}
231
232// ResizeEvents provides a mock function for the type MockTerminal
233func (_mock *MockTerminal) ResizeEvents() <-chan domain.Size {
234	ret := _mock.Called()
235
236	if len(ret) == 0 {
237		panic("no return value specified for ResizeEvents")
238	}
239
240	var r0 <-chan domain.Size
241	if returnFunc, ok := ret.Get(0).(func() <-chan domain.Size); ok {
242		r0 = returnFunc()
243	} else {
244		if ret.Get(0) != nil {
245			r0 = ret.Get(0).(<-chan domain.Size)
246		}
247	}
248	return r0
249}
250
251// MockTerminal_ResizeEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ResizeEvents'
252type MockTerminal_ResizeEvents_Call struct {
253	*mock.Call
254}
255
256// ResizeEvents is a helper method to define mock.On call
257func (_e *MockTerminal_Expecter) ResizeEvents() *MockTerminal_ResizeEvents_Call {
258	return &MockTerminal_ResizeEvents_Call{Call: _e.mock.On("ResizeEvents")}
259}
260
261func (_c *MockTerminal_ResizeEvents_Call) Run(run func()) *MockTerminal_ResizeEvents_Call {
262	_c.Call.Run(func(args mock.Arguments) {
263		run()
264	})
265	return _c
266}
267
268func (_c *MockTerminal_ResizeEvents_Call) Return(sizeCh <-chan domain.Size) *MockTerminal_ResizeEvents_Call {
269	_c.Call.Return(sizeCh)
270	return _c
271}
272
273func (_c *MockTerminal_ResizeEvents_Call) RunAndReturn(run func() <-chan domain.Size) *MockTerminal_ResizeEvents_Call {
274	_c.Call.Return(run)
275	return _c
276}
277
278// Size provides a mock function for the type MockTerminal
279func (_mock *MockTerminal) Size() (domain.Size, error) {
280	ret := _mock.Called()
281
282	if len(ret) == 0 {
283		panic("no return value specified for Size")
284	}
285
286	var r0 domain.Size
287	var r1 error
288	if returnFunc, ok := ret.Get(0).(func() (domain.Size, error)); ok {
289		return returnFunc()
290	}
291	if returnFunc, ok := ret.Get(0).(func() domain.Size); ok {
292		r0 = returnFunc()
293	} else {
294		r0 = ret.Get(0).(domain.Size)
295	}
296	if returnFunc, ok := ret.Get(1).(func() error); ok {
297		r1 = returnFunc()
298	} else {
299		r1 = ret.Error(1)
300	}
301	return r0, r1
302}
303
304// MockTerminal_Size_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Size'
305type MockTerminal_Size_Call struct {
306	*mock.Call
307}
308
309// Size is a helper method to define mock.On call
310func (_e *MockTerminal_Expecter) Size() *MockTerminal_Size_Call {
311	return &MockTerminal_Size_Call{Call: _e.mock.On("Size")}
312}
313
314func (_c *MockTerminal_Size_Call) Run(run func()) *MockTerminal_Size_Call {
315	_c.Call.Run(func(args mock.Arguments) {
316		run()
317	})
318	return _c
319}
320
321func (_c *MockTerminal_Size_Call) Return(size domain.Size, err error) *MockTerminal_Size_Call {
322	_c.Call.Return(size, err)
323	return _c
324}
325
326func (_c *MockTerminal_Size_Call) RunAndReturn(run func() (domain.Size, error)) *MockTerminal_Size_Call {
327	_c.Call.Return(run)
328	return _c
329}

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 12

Tags 11

↑↓ moveenter openesc close