main 5041353

webui_config.go RawHistoryFolder

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

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