main 5041353

permission.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/port"
11	"github.com/bnema/dumber/internal/domain/entity"
12	mock "github.com/stretchr/testify/mock"
13)
14
15// NewMockPermissionDialogPresenter creates a new instance of MockPermissionDialogPresenter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
16// The first argument is typically a *testing.T value.
17func NewMockPermissionDialogPresenter(t interface {
18	mock.TestingT
19	Cleanup(func())
20}) *MockPermissionDialogPresenter {
21	mock := &MockPermissionDialogPresenter{}
22	mock.Mock.Test(t)
23
24	t.Cleanup(func() { mock.AssertExpectations(t) })
25
26	return mock
27}
28
29// MockPermissionDialogPresenter is an autogenerated mock type for the PermissionDialogPresenter type
30type MockPermissionDialogPresenter struct {
31	mock.Mock
32}
33
34type MockPermissionDialogPresenter_Expecter struct {
35	mock *mock.Mock
36}
37
38func (_m *MockPermissionDialogPresenter) EXPECT() *MockPermissionDialogPresenter_Expecter {
39	return &MockPermissionDialogPresenter_Expecter{mock: &_m.Mock}
40}
41
42// ShowPermissionDialog provides a mock function for the type MockPermissionDialogPresenter
43func (_mock *MockPermissionDialogPresenter) ShowPermissionDialog(ctx context.Context, origin string, permTypes []entity.PermissionType, metadata entity.PermissionMetadata, callback func(result port.PermissionDialogResult)) {
44	_mock.Called(ctx, origin, permTypes, metadata, callback)
45	return
46}
47
48// MockPermissionDialogPresenter_ShowPermissionDialog_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShowPermissionDialog'
49type MockPermissionDialogPresenter_ShowPermissionDialog_Call struct {
50	*mock.Call
51}
52
53// ShowPermissionDialog is a helper method to define mock.On call
54//   - ctx context.Context
55//   - origin string
56//   - permTypes []entity.PermissionType
57//   - metadata entity.PermissionMetadata
58//   - callback func(result port.PermissionDialogResult)
59func (_e *MockPermissionDialogPresenter_Expecter) ShowPermissionDialog(ctx any, origin any, permTypes any, metadata any, callback any) *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
60	return &MockPermissionDialogPresenter_ShowPermissionDialog_Call{Call: _e.mock.On("ShowPermissionDialog", ctx, origin, permTypes, metadata, callback)}
61}
62
63func (_c *MockPermissionDialogPresenter_ShowPermissionDialog_Call) Run(run func(ctx context.Context, origin string, permTypes []entity.PermissionType, metadata entity.PermissionMetadata, callback func(result port.PermissionDialogResult))) *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
64	_c.Call.Run(func(args mock.Arguments) {
65		var arg0 context.Context
66		if args[0] != nil {
67			arg0 = args[0].(context.Context)
68		}
69		var arg1 string
70		if args[1] != nil {
71			arg1 = args[1].(string)
72		}
73		var arg2 []entity.PermissionType
74		if args[2] != nil {
75			arg2 = args[2].([]entity.PermissionType)
76		}
77		var arg3 entity.PermissionMetadata
78		if args[3] != nil {
79			arg3 = args[3].(entity.PermissionMetadata)
80		}
81		var arg4 func(result port.PermissionDialogResult)
82		if args[4] != nil {
83			arg4 = args[4].(func(result port.PermissionDialogResult))
84		}
85		run(
86			arg0,
87			arg1,
88			arg2,
89			arg3,
90			arg4,
91		)
92	})
93	return _c
94}
95
96func (_c *MockPermissionDialogPresenter_ShowPermissionDialog_Call) Return() *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
97	_c.Call.Return()
98	return _c
99}
100
101func (_c *MockPermissionDialogPresenter_ShowPermissionDialog_Call) RunAndReturn(run func(ctx context.Context, origin string, permTypes []entity.PermissionType, metadata entity.PermissionMetadata, callback func(result port.PermissionDialogResult))) *MockPermissionDialogPresenter_ShowPermissionDialog_Call {
102	_c.Run(run)
103	return _c
104}

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