main f2d166b

transport_mock_test.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package atspi
6
7import (
8	"time"
9
10	mock "github.com/stretchr/testify/mock"
11)
12
13// newMocktransport creates a new instance of mocktransport. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
14// The first argument is typically a *testing.T value.
15func newMocktransport(t interface {
16	mock.TestingT
17	Cleanup(func())
18}) *mocktransport {
19	if helper, ok := t.(interface{ Helper() }); ok {
20		helper.Helper()
21	}
22
23	mock := &mocktransport{}
24	mock.Mock.Test(t)
25
26	t.Cleanup(func() {
27		if helper, ok := t.(interface{ Helper() }); ok {
28			helper.Helper()
29		}
30		mock.AssertExpectations(t)
31	})
32
33	return mock
34}
35
36// mocktransport is an autogenerated mock type for the transport type
37type mocktransport struct {
38	mock.Mock
39}
40
41type mocktransport_Expecter struct {
42	mock *mock.Mock
43}
44
45func (_m *mocktransport) EXPECT() *mocktransport_Expecter {
46	return &mocktransport_Expecter{mock: &_m.Mock}
47}
48
49// Close provides a mock function for the type mocktransport
50func (_mock *mocktransport) Close() error {
51	ret := _mock.Called()
52
53	if len(ret) == 0 {
54		panic("no return value specified for Close")
55	}
56
57	var r0 error
58	if returnFunc, ok := ret.Get(0).(func() error); ok {
59		r0 = returnFunc()
60	} else {
61		r0 = ret.Error(0)
62	}
63	return r0
64}
65
66// mocktransport_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
67type mocktransport_Close_Call struct {
68	*mock.Call
69}
70
71// Close is a helper method to define mock.On call
72func (_e *mocktransport_Expecter) Close() *mocktransport_Close_Call {
73	return &mocktransport_Close_Call{Call: _e.mock.On("Close")}
74}
75
76func (_c *mocktransport_Close_Call) Run(run func()) *mocktransport_Close_Call {
77	_c.Call.Run(func(args mock.Arguments) {
78		run()
79	})
80	return _c
81}
82
83func (_c *mocktransport_Close_Call) Return(err error) *mocktransport_Close_Call {
84	_c.Call.Return(err)
85	return _c
86}
87
88func (_c *mocktransport_Close_Call) RunAndReturn(run func() error) *mocktransport_Close_Call {
89	_c.Call.Return(run)
90	return _c
91}
92
93// Do provides a mock function for the type mocktransport
94func (_mock *mocktransport) Do(deadline time.Time, idle time.Duration, calls []call) []reply {
95	ret := _mock.Called(deadline, idle, calls)
96
97	if len(ret) == 0 {
98		panic("no return value specified for Do")
99	}
100
101	var r0 []reply
102	if returnFunc, ok := ret.Get(0).(func(time.Time, time.Duration, []call) []reply); ok {
103		r0 = returnFunc(deadline, idle, calls)
104	} else {
105		if ret.Get(0) != nil {
106			r0 = ret.Get(0).([]reply)
107		}
108	}
109	return r0
110}
111
112// mocktransport_Do_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Do'
113type mocktransport_Do_Call struct {
114	*mock.Call
115}
116
117// Do is a helper method to define mock.On call
118//   - deadline time.Time
119//   - idle time.Duration
120//   - calls []call
121func (_e *mocktransport_Expecter) Do(deadline any, idle any, calls any) *mocktransport_Do_Call {
122	return &mocktransport_Do_Call{Call: _e.mock.On("Do", deadline, idle, calls)}
123}
124
125func (_c *mocktransport_Do_Call) Run(run func(deadline time.Time, idle time.Duration, calls []call)) *mocktransport_Do_Call {
126	_c.Call.Run(func(args mock.Arguments) {
127		var arg0 time.Time
128		if args[0] != nil {
129			arg0 = args[0].(time.Time)
130		}
131		var arg1 time.Duration
132		if args[1] != nil {
133			arg1 = args[1].(time.Duration)
134		}
135		var arg2 []call
136		if args[2] != nil {
137			arg2 = args[2].([]call)
138		}
139		run(
140			arg0,
141			arg1,
142			arg2,
143		)
144	})
145	return _c
146}
147
148func (_c *mocktransport_Do_Call) Return(replyMoqParams []reply) *mocktransport_Do_Call {
149	_c.Call.Return(replyMoqParams)
150	return _c
151}
152
153func (_c *mocktransport_Do_Call) RunAndReturn(run func(deadline time.Time, idle time.Duration, calls []call) []reply) *mocktransport_Do_Call {
154	_c.Call.Return(run)
155	return _c
156}

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 25

Tags 10

↑↓ moveenter openesc close