v0.36.0 1fb2421

SessionStore.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	mock "github.com/stretchr/testify/mock"
11)
12
13// NewSessionStore creates a new instance of SessionStore. 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 NewSessionStore(t interface {
16	mock.TestingT
17	Cleanup(func())
18}) *SessionStore {
19	if helper, ok := t.(interface{ Helper() }); ok {
20		helper.Helper()
21	}
22
23	mock := &SessionStore{}
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// SessionStore is an autogenerated mock type for the SessionStore type
37type SessionStore struct {
38	mock.Mock
39}
40
41type SessionStore_Expecter struct {
42	mock *mock.Mock
43}
44
45func (_m *SessionStore) EXPECT() *SessionStore_Expecter {
46	return &SessionStore_Expecter{mock: &_m.Mock}
47}
48
49// BumpEpoch provides a mock function for the type SessionStore
50func (_mock *SessionStore) BumpEpoch(ctx context.Context) (uint64, error) {
51	ret := _mock.Called(ctx)
52
53	if len(ret) == 0 {
54		panic("no return value specified for BumpEpoch")
55	}
56
57	var r0 uint64
58	var r1 error
59	if returnFunc, ok := ret.Get(0).(func(context.Context) (uint64, error)); ok {
60		return returnFunc(ctx)
61	}
62	if returnFunc, ok := ret.Get(0).(func(context.Context) uint64); ok {
63		r0 = returnFunc(ctx)
64	} else {
65		r0 = ret.Get(0).(uint64)
66	}
67	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
68		r1 = returnFunc(ctx)
69	} else {
70		r1 = ret.Error(1)
71	}
72	return r0, r1
73}
74
75// SessionStore_BumpEpoch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BumpEpoch'
76type SessionStore_BumpEpoch_Call struct {
77	*mock.Call
78}
79
80// BumpEpoch is a helper method to define mock.On call
81//   - ctx context.Context
82func (_e *SessionStore_Expecter) BumpEpoch(ctx any) *SessionStore_BumpEpoch_Call {
83	return &SessionStore_BumpEpoch_Call{Call: _e.mock.On("BumpEpoch", ctx)}
84}
85
86func (_c *SessionStore_BumpEpoch_Call) Run(run func(ctx context.Context)) *SessionStore_BumpEpoch_Call {
87	_c.Call.Run(func(args mock.Arguments) {
88		var arg0 context.Context
89		if args[0] != nil {
90			arg0 = args[0].(context.Context)
91		}
92		run(
93			arg0,
94		)
95	})
96	return _c
97}
98
99func (_c *SessionStore_BumpEpoch_Call) Return(v uint64, err error) *SessionStore_BumpEpoch_Call {
100	_c.Call.Return(v, err)
101	return _c
102}
103
104func (_c *SessionStore_BumpEpoch_Call) RunAndReturn(run func(ctx context.Context) (uint64, error)) *SessionStore_BumpEpoch_Call {
105	_c.Call.Return(run)
106	return _c
107}
108
109// Epoch provides a mock function for the type SessionStore
110func (_mock *SessionStore) Epoch(ctx context.Context) (uint64, error) {
111	ret := _mock.Called(ctx)
112
113	if len(ret) == 0 {
114		panic("no return value specified for Epoch")
115	}
116
117	var r0 uint64
118	var r1 error
119	if returnFunc, ok := ret.Get(0).(func(context.Context) (uint64, error)); ok {
120		return returnFunc(ctx)
121	}
122	if returnFunc, ok := ret.Get(0).(func(context.Context) uint64); ok {
123		r0 = returnFunc(ctx)
124	} else {
125		r0 = ret.Get(0).(uint64)
126	}
127	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
128		r1 = returnFunc(ctx)
129	} else {
130		r1 = ret.Error(1)
131	}
132	return r0, r1
133}
134
135// SessionStore_Epoch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Epoch'
136type SessionStore_Epoch_Call struct {
137	*mock.Call
138}
139
140// Epoch is a helper method to define mock.On call
141//   - ctx context.Context
142func (_e *SessionStore_Expecter) Epoch(ctx any) *SessionStore_Epoch_Call {
143	return &SessionStore_Epoch_Call{Call: _e.mock.On("Epoch", ctx)}
144}
145
146func (_c *SessionStore_Epoch_Call) Run(run func(ctx context.Context)) *SessionStore_Epoch_Call {
147	_c.Call.Run(func(args mock.Arguments) {
148		var arg0 context.Context
149		if args[0] != nil {
150			arg0 = args[0].(context.Context)
151		}
152		run(
153			arg0,
154		)
155	})
156	return _c
157}
158
159func (_c *SessionStore_Epoch_Call) Return(v uint64, err error) *SessionStore_Epoch_Call {
160	_c.Call.Return(v, err)
161	return _c
162}
163
164func (_c *SessionStore_Epoch_Call) RunAndReturn(run func(ctx context.Context) (uint64, error)) *SessionStore_Epoch_Call {
165	_c.Call.Return(run)
166	return _c
167}
168
169// Key provides a mock function for the type SessionStore
170func (_mock *SessionStore) Key(ctx context.Context) ([]byte, error) {
171	ret := _mock.Called(ctx)
172
173	if len(ret) == 0 {
174		panic("no return value specified for Key")
175	}
176
177	var r0 []byte
178	var r1 error
179	if returnFunc, ok := ret.Get(0).(func(context.Context) ([]byte, error)); ok {
180		return returnFunc(ctx)
181	}
182	if returnFunc, ok := ret.Get(0).(func(context.Context) []byte); ok {
183		r0 = returnFunc(ctx)
184	} else {
185		if ret.Get(0) != nil {
186			r0 = ret.Get(0).([]byte)
187		}
188	}
189	if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
190		r1 = returnFunc(ctx)
191	} else {
192		r1 = ret.Error(1)
193	}
194	return r0, r1
195}
196
197// SessionStore_Key_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Key'
198type SessionStore_Key_Call struct {
199	*mock.Call
200}
201
202// Key is a helper method to define mock.On call
203//   - ctx context.Context
204func (_e *SessionStore_Expecter) Key(ctx any) *SessionStore_Key_Call {
205	return &SessionStore_Key_Call{Call: _e.mock.On("Key", ctx)}
206}
207
208func (_c *SessionStore_Key_Call) Run(run func(ctx context.Context)) *SessionStore_Key_Call {
209	_c.Call.Run(func(args mock.Arguments) {
210		var arg0 context.Context
211		if args[0] != nil {
212			arg0 = args[0].(context.Context)
213		}
214		run(
215			arg0,
216		)
217	})
218	return _c
219}
220
221func (_c *SessionStore_Key_Call) Return(bytes []byte, err error) *SessionStore_Key_Call {
222	_c.Call.Return(bytes, err)
223	return _c
224}
225
226func (_c *SessionStore_Key_Call) RunAndReturn(run func(ctx context.Context) ([]byte, error)) *SessionStore_Key_Call {
227	_c.Call.Return(run)
228	return _c
229}

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 4

Tags 45

↑↓ moveenter openesc close