leaseinventory_mock_test.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package app
6
7import (
8	"os"
9
10	"github.com/bnema/neferwl/internal/ports"
11	mock "github.com/stretchr/testify/mock"
12)
13
14// newMockleaseInventoryCard creates a new instance of mockleaseInventoryCard. 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 newMockleaseInventoryCard(t interface {
17	mock.TestingT
18	Cleanup(func())
19}) *mockleaseInventoryCard {
20	if helper, ok := t.(interface{ Helper() }); ok {
21		helper.Helper()
22	}
23
24	mock := &mockleaseInventoryCard{}
25	mock.Mock.Test(t)
26
27	t.Cleanup(func() {
28		if helper, ok := t.(interface{ Helper() }); ok {
29			helper.Helper()
30		}
31		mock.AssertExpectations(t)
32	})
33
34	return mock
35}
36
37// mockleaseInventoryCard is an autogenerated mock type for the leaseInventoryCard type
38type mockleaseInventoryCard struct {
39	mock.Mock
40}
41
42type mockleaseInventoryCard_Expecter struct {
43	mock *mock.Mock
44}
45
46func (_m *mockleaseInventoryCard) EXPECT() *mockleaseInventoryCard_Expecter {
47	return &mockleaseInventoryCard_Expecter{mock: &_m.Mock}
48}
49
50// ClientFD provides a mock function for the type mockleaseInventoryCard
51func (_mock *mockleaseInventoryCard) ClientFD() (*os.File, error) {
52	ret := _mock.Called()
53
54	if len(ret) == 0 {
55		panic("no return value specified for ClientFD")
56	}
57
58	var r0 *os.File
59	var r1 error
60	if returnFunc, ok := ret.Get(0).(func() (*os.File, error)); ok {
61		return returnFunc()
62	}
63	if returnFunc, ok := ret.Get(0).(func() *os.File); ok {
64		r0 = returnFunc()
65	} else {
66		if ret.Get(0) != nil {
67			r0 = ret.Get(0).(*os.File)
68		}
69	}
70	if returnFunc, ok := ret.Get(1).(func() error); ok {
71		r1 = returnFunc()
72	} else {
73		r1 = ret.Error(1)
74	}
75	return r0, r1
76}
77
78// mockleaseInventoryCard_ClientFD_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClientFD'
79type mockleaseInventoryCard_ClientFD_Call struct {
80	*mock.Call
81}
82
83// ClientFD is a helper method to define mock.On call
84func (_e *mockleaseInventoryCard_Expecter) ClientFD() *mockleaseInventoryCard_ClientFD_Call {
85	return &mockleaseInventoryCard_ClientFD_Call{Call: _e.mock.On("ClientFD")}
86}
87
88func (_c *mockleaseInventoryCard_ClientFD_Call) Run(run func()) *mockleaseInventoryCard_ClientFD_Call {
89	_c.Call.Run(func(args mock.Arguments) {
90		run()
91	})
92	return _c
93}
94
95func (_c *mockleaseInventoryCard_ClientFD_Call) Return(file *os.File, err error) *mockleaseInventoryCard_ClientFD_Call {
96	_c.Call.Return(file, err)
97	return _c
98}
99
100func (_c *mockleaseInventoryCard_ClientFD_Call) RunAndReturn(run func() (*os.File, error)) *mockleaseInventoryCard_ClientFD_Call {
101	_c.Call.Return(run)
102	return _c
103}
104
105// FinishedLeases provides a mock function for the type mockleaseInventoryCard
106func (_mock *mockleaseInventoryCard) FinishedLeases() []uint32 {
107	ret := _mock.Called()
108
109	if len(ret) == 0 {
110		panic("no return value specified for FinishedLeases")
111	}
112
113	var r0 []uint32
114	if returnFunc, ok := ret.Get(0).(func() []uint32); ok {
115		r0 = returnFunc()
116	} else {
117		if ret.Get(0) != nil {
118			r0 = ret.Get(0).([]uint32)
119		}
120	}
121	return r0
122}
123
124// mockleaseInventoryCard_FinishedLeases_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FinishedLeases'
125type mockleaseInventoryCard_FinishedLeases_Call struct {
126	*mock.Call
127}
128
129// FinishedLeases is a helper method to define mock.On call
130func (_e *mockleaseInventoryCard_Expecter) FinishedLeases() *mockleaseInventoryCard_FinishedLeases_Call {
131	return &mockleaseInventoryCard_FinishedLeases_Call{Call: _e.mock.On("FinishedLeases")}
132}
133
134func (_c *mockleaseInventoryCard_FinishedLeases_Call) Run(run func()) *mockleaseInventoryCard_FinishedLeases_Call {
135	_c.Call.Run(func(args mock.Arguments) {
136		run()
137	})
138	return _c
139}
140
141func (_c *mockleaseInventoryCard_FinishedLeases_Call) Return(uint32s []uint32) *mockleaseInventoryCard_FinishedLeases_Call {
142	_c.Call.Return(uint32s)
143	return _c
144}
145
146func (_c *mockleaseInventoryCard_FinishedLeases_Call) RunAndReturn(run func() []uint32) *mockleaseInventoryCard_FinishedLeases_Call {
147	_c.Call.Return(run)
148	return _c
149}
150
151// Leasable provides a mock function for the type mockleaseInventoryCard
152func (_mock *mockleaseInventoryCard) Leasable() []ports.LeaseConnector {
153	ret := _mock.Called()
154
155	if len(ret) == 0 {
156		panic("no return value specified for Leasable")
157	}
158
159	var r0 []ports.LeaseConnector
160	if returnFunc, ok := ret.Get(0).(func() []ports.LeaseConnector); ok {
161		r0 = returnFunc()
162	} else {
163		if ret.Get(0) != nil {
164			r0 = ret.Get(0).([]ports.LeaseConnector)
165		}
166	}
167	return r0
168}
169
170// mockleaseInventoryCard_Leasable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Leasable'
171type mockleaseInventoryCard_Leasable_Call struct {
172	*mock.Call
173}
174
175// Leasable is a helper method to define mock.On call
176func (_e *mockleaseInventoryCard_Expecter) Leasable() *mockleaseInventoryCard_Leasable_Call {
177	return &mockleaseInventoryCard_Leasable_Call{Call: _e.mock.On("Leasable")}
178}
179
180func (_c *mockleaseInventoryCard_Leasable_Call) Run(run func()) *mockleaseInventoryCard_Leasable_Call {
181	_c.Call.Run(func(args mock.Arguments) {
182		run()
183	})
184	return _c
185}
186
187func (_c *mockleaseInventoryCard_Leasable_Call) Return(leaseConnectors []ports.LeaseConnector) *mockleaseInventoryCard_Leasable_Call {
188	_c.Call.Return(leaseConnectors)
189	return _c
190}
191
192func (_c *mockleaseInventoryCard_Leasable_Call) RunAndReturn(run func() []ports.LeaseConnector) *mockleaseInventoryCard_Leasable_Call {
193	_c.Call.Return(run)
194	return _c
195}
196
197// Path provides a mock function for the type mockleaseInventoryCard
198func (_mock *mockleaseInventoryCard) Path() string {
199	ret := _mock.Called()
200
201	if len(ret) == 0 {
202		panic("no return value specified for Path")
203	}
204
205	var r0 string
206	if returnFunc, ok := ret.Get(0).(func() string); ok {
207		r0 = returnFunc()
208	} else {
209		r0 = ret.Get(0).(string)
210	}
211	return r0
212}
213
214// mockleaseInventoryCard_Path_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Path'
215type mockleaseInventoryCard_Path_Call struct {
216	*mock.Call
217}
218
219// Path is a helper method to define mock.On call
220func (_e *mockleaseInventoryCard_Expecter) Path() *mockleaseInventoryCard_Path_Call {
221	return &mockleaseInventoryCard_Path_Call{Call: _e.mock.On("Path")}
222}
223
224func (_c *mockleaseInventoryCard_Path_Call) Run(run func()) *mockleaseInventoryCard_Path_Call {
225	_c.Call.Run(func(args mock.Arguments) {
226		run()
227	})
228	return _c
229}
230
231func (_c *mockleaseInventoryCard_Path_Call) Return(s string) *mockleaseInventoryCard_Path_Call {
232	_c.Call.Return(s)
233	return _c
234}
235
236func (_c *mockleaseInventoryCard_Path_Call) RunAndReturn(run func() string) *mockleaseInventoryCard_Path_Call {
237	_c.Call.Return(run)
238	return _c
239}

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 26

Tags 10

↑↓ moveenter openesc close