v0.31.0 d5e0505

IssueLinkTrigger.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	"bnema.dev/ermite/internal/domain"
11	mock "github.com/stretchr/testify/mock"
12)
13
14// NewIssueLinkTrigger creates a new instance of IssueLinkTrigger. 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 NewIssueLinkTrigger(t interface {
17	mock.TestingT
18	Cleanup(func())
19}) *IssueLinkTrigger {
20	if helper, ok := t.(interface{ Helper() }); ok {
21		helper.Helper()
22	}
23
24	mock := &IssueLinkTrigger{}
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// IssueLinkTrigger is an autogenerated mock type for the IssueLinkTrigger type
38type IssueLinkTrigger struct {
39	mock.Mock
40}
41
42type IssueLinkTrigger_Expecter struct {
43	mock *mock.Mock
44}
45
46func (_m *IssueLinkTrigger) EXPECT() *IssueLinkTrigger_Expecter {
47	return &IssueLinkTrigger_Expecter{mock: &_m.Mock}
48}
49
50// OnBranchesMoved provides a mock function for the type IssueLinkTrigger
51func (_mock *IssueLinkTrigger) OnBranchesMoved(context1 context.Context, repoName domain.RepoName, refUpdates []domain.RefUpdate) {
52	_mock.Called(context1, repoName, refUpdates)
53	return
54}
55
56// IssueLinkTrigger_OnBranchesMoved_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnBranchesMoved'
57type IssueLinkTrigger_OnBranchesMoved_Call struct {
58	*mock.Call
59}
60
61// OnBranchesMoved is a helper method to define mock.On call
62//   - context1 context.Context
63//   - repoName domain.RepoName
64//   - refUpdates []domain.RefUpdate
65func (_e *IssueLinkTrigger_Expecter) OnBranchesMoved(context1 any, repoName any, refUpdates any) *IssueLinkTrigger_OnBranchesMoved_Call {
66	return &IssueLinkTrigger_OnBranchesMoved_Call{Call: _e.mock.On("OnBranchesMoved", context1, repoName, refUpdates)}
67}
68
69func (_c *IssueLinkTrigger_OnBranchesMoved_Call) Run(run func(context1 context.Context, repoName domain.RepoName, refUpdates []domain.RefUpdate)) *IssueLinkTrigger_OnBranchesMoved_Call {
70	_c.Call.Run(func(args mock.Arguments) {
71		var arg0 context.Context
72		if args[0] != nil {
73			arg0 = args[0].(context.Context)
74		}
75		var arg1 domain.RepoName
76		if args[1] != nil {
77			arg1 = args[1].(domain.RepoName)
78		}
79		var arg2 []domain.RefUpdate
80		if args[2] != nil {
81			arg2 = args[2].([]domain.RefUpdate)
82		}
83		run(
84			arg0,
85			arg1,
86			arg2,
87		)
88	})
89	return _c
90}
91
92func (_c *IssueLinkTrigger_OnBranchesMoved_Call) Return() *IssueLinkTrigger_OnBranchesMoved_Call {
93	_c.Call.Return()
94	return _c
95}
96
97func (_c *IssueLinkTrigger_OnBranchesMoved_Call) RunAndReturn(run func(context1 context.Context, repoName domain.RepoName, refUpdates []domain.RefUpdate)) *IssueLinkTrigger_OnBranchesMoved_Call {
98	_c.Run(run)
99	return _c
100}
101
102// OnMergeRequestChanged provides a mock function for the type IssueLinkTrigger
103func (_mock *IssueLinkTrigger) OnMergeRequestChanged(context1 context.Context, repo domain.Repo, n int64) {
104	_mock.Called(context1, repo, n)
105	return
106}
107
108// IssueLinkTrigger_OnMergeRequestChanged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnMergeRequestChanged'
109type IssueLinkTrigger_OnMergeRequestChanged_Call struct {
110	*mock.Call
111}
112
113// OnMergeRequestChanged is a helper method to define mock.On call
114//   - context1 context.Context
115//   - repo domain.Repo
116//   - n int64
117func (_e *IssueLinkTrigger_Expecter) OnMergeRequestChanged(context1 any, repo any, n any) *IssueLinkTrigger_OnMergeRequestChanged_Call {
118	return &IssueLinkTrigger_OnMergeRequestChanged_Call{Call: _e.mock.On("OnMergeRequestChanged", context1, repo, n)}
119}
120
121func (_c *IssueLinkTrigger_OnMergeRequestChanged_Call) Run(run func(context1 context.Context, repo domain.Repo, n int64)) *IssueLinkTrigger_OnMergeRequestChanged_Call {
122	_c.Call.Run(func(args mock.Arguments) {
123		var arg0 context.Context
124		if args[0] != nil {
125			arg0 = args[0].(context.Context)
126		}
127		var arg1 domain.Repo
128		if args[1] != nil {
129			arg1 = args[1].(domain.Repo)
130		}
131		var arg2 int64
132		if args[2] != nil {
133			arg2 = args[2].(int64)
134		}
135		run(
136			arg0,
137			arg1,
138			arg2,
139		)
140	})
141	return _c
142}
143
144func (_c *IssueLinkTrigger_OnMergeRequestChanged_Call) Return() *IssueLinkTrigger_OnMergeRequestChanged_Call {
145	_c.Call.Return()
146	return _c
147}
148
149func (_c *IssueLinkTrigger_OnMergeRequestChanged_Call) RunAndReturn(run func(context1 context.Context, repo domain.Repo, n int64)) *IssueLinkTrigger_OnMergeRequestChanged_Call {
150	_c.Run(run)
151	return _c
152}
153
154// OnMergeRequestSettled provides a mock function for the type IssueLinkTrigger
155func (_mock *IssueLinkTrigger) OnMergeRequestSettled(context1 context.Context, repo domain.Repo, mergeRequest domain.MergeRequest) {
156	_mock.Called(context1, repo, mergeRequest)
157	return
158}
159
160// IssueLinkTrigger_OnMergeRequestSettled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnMergeRequestSettled'
161type IssueLinkTrigger_OnMergeRequestSettled_Call struct {
162	*mock.Call
163}
164
165// OnMergeRequestSettled is a helper method to define mock.On call
166//   - context1 context.Context
167//   - repo domain.Repo
168//   - mergeRequest domain.MergeRequest
169func (_e *IssueLinkTrigger_Expecter) OnMergeRequestSettled(context1 any, repo any, mergeRequest any) *IssueLinkTrigger_OnMergeRequestSettled_Call {
170	return &IssueLinkTrigger_OnMergeRequestSettled_Call{Call: _e.mock.On("OnMergeRequestSettled", context1, repo, mergeRequest)}
171}
172
173func (_c *IssueLinkTrigger_OnMergeRequestSettled_Call) Run(run func(context1 context.Context, repo domain.Repo, mergeRequest domain.MergeRequest)) *IssueLinkTrigger_OnMergeRequestSettled_Call {
174	_c.Call.Run(func(args mock.Arguments) {
175		var arg0 context.Context
176		if args[0] != nil {
177			arg0 = args[0].(context.Context)
178		}
179		var arg1 domain.Repo
180		if args[1] != nil {
181			arg1 = args[1].(domain.Repo)
182		}
183		var arg2 domain.MergeRequest
184		if args[2] != nil {
185			arg2 = args[2].(domain.MergeRequest)
186		}
187		run(
188			arg0,
189			arg1,
190			arg2,
191		)
192	})
193	return _c
194}
195
196func (_c *IssueLinkTrigger_OnMergeRequestSettled_Call) Return() *IssueLinkTrigger_OnMergeRequestSettled_Call {
197	_c.Call.Return()
198	return _c
199}
200
201func (_c *IssueLinkTrigger_OnMergeRequestSettled_Call) RunAndReturn(run func(context1 context.Context, repo domain.Repo, mergeRequest domain.MergeRequest)) *IssueLinkTrigger_OnMergeRequestSettled_Call {
202	_c.Run(run)
203	return _c
204}
205
206// OnMerged provides a mock function for the type IssueLinkTrigger
207func (_mock *IssueLinkTrigger) OnMerged(context1 context.Context, principal domain.Principal, repo domain.Repo, mergeRequest domain.MergeRequest) {
208	_mock.Called(context1, principal, repo, mergeRequest)
209	return
210}
211
212// IssueLinkTrigger_OnMerged_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnMerged'
213type IssueLinkTrigger_OnMerged_Call struct {
214	*mock.Call
215}
216
217// OnMerged is a helper method to define mock.On call
218//   - context1 context.Context
219//   - principal domain.Principal
220//   - repo domain.Repo
221//   - mergeRequest domain.MergeRequest
222func (_e *IssueLinkTrigger_Expecter) OnMerged(context1 any, principal any, repo any, mergeRequest any) *IssueLinkTrigger_OnMerged_Call {
223	return &IssueLinkTrigger_OnMerged_Call{Call: _e.mock.On("OnMerged", context1, principal, repo, mergeRequest)}
224}
225
226func (_c *IssueLinkTrigger_OnMerged_Call) Run(run func(context1 context.Context, principal domain.Principal, repo domain.Repo, mergeRequest domain.MergeRequest)) *IssueLinkTrigger_OnMerged_Call {
227	_c.Call.Run(func(args mock.Arguments) {
228		var arg0 context.Context
229		if args[0] != nil {
230			arg0 = args[0].(context.Context)
231		}
232		var arg1 domain.Principal
233		if args[1] != nil {
234			arg1 = args[1].(domain.Principal)
235		}
236		var arg2 domain.Repo
237		if args[2] != nil {
238			arg2 = args[2].(domain.Repo)
239		}
240		var arg3 domain.MergeRequest
241		if args[3] != nil {
242			arg3 = args[3].(domain.MergeRequest)
243		}
244		run(
245			arg0,
246			arg1,
247			arg2,
248			arg3,
249		)
250	})
251	return _c
252}
253
254func (_c *IssueLinkTrigger_OnMerged_Call) Return() *IssueLinkTrigger_OnMerged_Call {
255	_c.Call.Return()
256	return _c
257}
258
259func (_c *IssueLinkTrigger_OnMerged_Call) RunAndReturn(run func(context1 context.Context, principal domain.Principal, repo domain.Repo, mergeRequest domain.MergeRequest)) *IssueLinkTrigger_OnMerged_Call {
260	_c.Run(run)
261	return _c
262}

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 44

↑↓ moveenter openesc close