v2.31.0-dev19 35467d7

mock_http_challenge_sink.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// NewMockHTTPChallengeSink creates a new instance of MockHTTPChallengeSink. 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 NewMockHTTPChallengeSink(t interface {
14	mock.TestingT
15	Cleanup(func())
16}) *MockHTTPChallengeSink {
17	mock := &MockHTTPChallengeSink{}
18	mock.Mock.Test(t)
19
20	t.Cleanup(func() { mock.AssertExpectations(t) })
21
22	return mock
23}
24
25// MockHTTPChallengeSink is an autogenerated mock type for the HTTPChallengeSink type
26type MockHTTPChallengeSink struct {
27	mock.Mock
28}
29
30type MockHTTPChallengeSink_Expecter struct {
31	mock *mock.Mock
32}
33
34func (_m *MockHTTPChallengeSink) EXPECT() *MockHTTPChallengeSink_Expecter {
35	return &MockHTTPChallengeSink_Expecter{mock: &_m.Mock}
36}
37
38// CleanUp provides a mock function for the type MockHTTPChallengeSink
39func (_mock *MockHTTPChallengeSink) CleanUp(token string) error {
40	ret := _mock.Called(token)
41
42	if len(ret) == 0 {
43		panic("no return value specified for CleanUp")
44	}
45
46	var r0 error
47	if returnFunc, ok := ret.Get(0).(func(string) error); ok {
48		r0 = returnFunc(token)
49	} else {
50		r0 = ret.Error(0)
51	}
52	return r0
53}
54
55// MockHTTPChallengeSink_CleanUp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CleanUp'
56type MockHTTPChallengeSink_CleanUp_Call struct {
57	*mock.Call
58}
59
60// CleanUp is a helper method to define mock.On call
61//   - token string
62func (_e *MockHTTPChallengeSink_Expecter) CleanUp(token any) *MockHTTPChallengeSink_CleanUp_Call {
63	return &MockHTTPChallengeSink_CleanUp_Call{Call: _e.mock.On("CleanUp", token)}
64}
65
66func (_c *MockHTTPChallengeSink_CleanUp_Call) Run(run func(token string)) *MockHTTPChallengeSink_CleanUp_Call {
67	_c.Call.Run(func(args mock.Arguments) {
68		var arg0 string
69		if args[0] != nil {
70			arg0 = args[0].(string)
71		}
72		run(
73			arg0,
74		)
75	})
76	return _c
77}
78
79func (_c *MockHTTPChallengeSink_CleanUp_Call) Return(err error) *MockHTTPChallengeSink_CleanUp_Call {
80	_c.Call.Return(err)
81	return _c
82}
83
84func (_c *MockHTTPChallengeSink_CleanUp_Call) RunAndReturn(run func(token string) error) *MockHTTPChallengeSink_CleanUp_Call {
85	_c.Call.Return(run)
86	return _c
87}
88
89// Present provides a mock function for the type MockHTTPChallengeSink
90func (_mock *MockHTTPChallengeSink) Present(token string, keyAuth string) error {
91	ret := _mock.Called(token, keyAuth)
92
93	if len(ret) == 0 {
94		panic("no return value specified for Present")
95	}
96
97	var r0 error
98	if returnFunc, ok := ret.Get(0).(func(string, string) error); ok {
99		r0 = returnFunc(token, keyAuth)
100	} else {
101		r0 = ret.Error(0)
102	}
103	return r0
104}
105
106// MockHTTPChallengeSink_Present_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Present'
107type MockHTTPChallengeSink_Present_Call struct {
108	*mock.Call
109}
110
111// Present is a helper method to define mock.On call
112//   - token string
113//   - keyAuth string
114func (_e *MockHTTPChallengeSink_Expecter) Present(token any, keyAuth any) *MockHTTPChallengeSink_Present_Call {
115	return &MockHTTPChallengeSink_Present_Call{Call: _e.mock.On("Present", token, keyAuth)}
116}
117
118func (_c *MockHTTPChallengeSink_Present_Call) Run(run func(token string, keyAuth string)) *MockHTTPChallengeSink_Present_Call {
119	_c.Call.Run(func(args mock.Arguments) {
120		var arg0 string
121		if args[0] != nil {
122			arg0 = args[0].(string)
123		}
124		var arg1 string
125		if args[1] != nil {
126			arg1 = args[1].(string)
127		}
128		run(
129			arg0,
130			arg1,
131		)
132	})
133	return _c
134}
135
136func (_c *MockHTTPChallengeSink_Present_Call) Return(err error) *MockHTTPChallengeSink_Present_Call {
137	_c.Call.Return(err)
138	return _c
139}
140
141func (_c *MockHTTPChallengeSink_Present_Call) RunAndReturn(run func(token string, keyAuth string) error) *MockHTTPChallengeSink_Present_Call {
142	_c.Call.Return(run)
143	return _c
144}

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 7

Tags 106

↑↓ moveenter openesc close