main 5041353

config_transformer.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package mocks
6
7import (
8	mock "github.com/stretchr/testify/mock"
9)
10
11// NewMockConfigTransformer creates a new instance of MockConfigTransformer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
12// The first argument is typically a *testing.T value.
13func NewMockConfigTransformer(t interface {
14	mock.TestingT
15	Cleanup(func())
16}) *MockConfigTransformer {
17	mock := &MockConfigTransformer{}
18	mock.Mock.Test(t)
19
20	t.Cleanup(func() { mock.AssertExpectations(t) })
21
22	return mock
23}
24
25// MockConfigTransformer is an autogenerated mock type for the ConfigTransformer type
26type MockConfigTransformer struct {
27	mock.Mock
28}
29
30type MockConfigTransformer_Expecter struct {
31	mock *mock.Mock
32}
33
34func (_m *MockConfigTransformer) EXPECT() *MockConfigTransformer_Expecter {
35	return &MockConfigTransformer_Expecter{mock: &_m.Mock}
36}
37
38// TransformLegacyActions provides a mock function for the type MockConfigTransformer
39func (_mock *MockConfigTransformer) TransformLegacyActions(rawConfig map[string]any) {
40	_mock.Called(rawConfig)
41	return
42}
43
44// MockConfigTransformer_TransformLegacyActions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformLegacyActions'
45type MockConfigTransformer_TransformLegacyActions_Call struct {
46	*mock.Call
47}
48
49// TransformLegacyActions is a helper method to define mock.On call
50//   - rawConfig map[string]any
51func (_e *MockConfigTransformer_Expecter) TransformLegacyActions(rawConfig any) *MockConfigTransformer_TransformLegacyActions_Call {
52	return &MockConfigTransformer_TransformLegacyActions_Call{Call: _e.mock.On("TransformLegacyActions", rawConfig)}
53}
54
55func (_c *MockConfigTransformer_TransformLegacyActions_Call) Run(run func(rawConfig map[string]any)) *MockConfigTransformer_TransformLegacyActions_Call {
56	_c.Call.Run(func(args mock.Arguments) {
57		var arg0 map[string]any
58		if args[0] != nil {
59			arg0 = args[0].(map[string]any)
60		}
61		run(
62			arg0,
63		)
64	})
65	return _c
66}
67
68func (_c *MockConfigTransformer_TransformLegacyActions_Call) Return() *MockConfigTransformer_TransformLegacyActions_Call {
69	_c.Call.Return()
70	return _c
71}
72
73func (_c *MockConfigTransformer_TransformLegacyActions_Call) RunAndReturn(run func(rawConfig map[string]any)) *MockConfigTransformer_TransformLegacyActions_Call {
74	_c.Run(run)
75	return _c
76}
77
78// TransformLegacyEngineConfig provides a mock function for the type MockConfigTransformer
79func (_mock *MockConfigTransformer) TransformLegacyEngineConfig(rawConfig map[string]any) {
80	_mock.Called(rawConfig)
81	return
82}
83
84// MockConfigTransformer_TransformLegacyEngineConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransformLegacyEngineConfig'
85type MockConfigTransformer_TransformLegacyEngineConfig_Call struct {
86	*mock.Call
87}
88
89// TransformLegacyEngineConfig is a helper method to define mock.On call
90//   - rawConfig map[string]any
91func (_e *MockConfigTransformer_Expecter) TransformLegacyEngineConfig(rawConfig any) *MockConfigTransformer_TransformLegacyEngineConfig_Call {
92	return &MockConfigTransformer_TransformLegacyEngineConfig_Call{Call: _e.mock.On("TransformLegacyEngineConfig", rawConfig)}
93}
94
95func (_c *MockConfigTransformer_TransformLegacyEngineConfig_Call) Run(run func(rawConfig map[string]any)) *MockConfigTransformer_TransformLegacyEngineConfig_Call {
96	_c.Call.Run(func(args mock.Arguments) {
97		var arg0 map[string]any
98		if args[0] != nil {
99			arg0 = args[0].(map[string]any)
100		}
101		run(
102			arg0,
103		)
104	})
105	return _c
106}
107
108func (_c *MockConfigTransformer_TransformLegacyEngineConfig_Call) Return() *MockConfigTransformer_TransformLegacyEngineConfig_Call {
109	_c.Call.Return()
110	return _c
111}
112
113func (_c *MockConfigTransformer_TransformLegacyEngineConfig_Call) RunAndReturn(run func(rawConfig map[string]any)) *MockConfigTransformer_TransformLegacyEngineConfig_Call {
114	_c.Run(run)
115	return _c
116}

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