v3.4.0 593c1c3

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

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