v0.5.0 f906adb

mock_querier.go RawHistoryFolder

1// Code generated by MockGen. DO NOT EDIT.
2// Source: interfaces.go
3
4// Package mock_cache is a generated GoMock package.
5package mock_cache
6
7import (
8	context "context"
9	reflect "reflect"
10
11	db "github.com/bnema/dumber/internal/db"
12	gomock "github.com/golang/mock/gomock"
13)
14
15// MockHistoryQuerier is a mock of HistoryQuerier interface.
16type MockHistoryQuerier struct {
17	ctrl     *gomock.Controller
18	recorder *MockHistoryQuerierMockRecorder
19}
20
21// MockHistoryQuerierMockRecorder is the mock recorder for MockHistoryQuerier.
22type MockHistoryQuerierMockRecorder struct {
23	mock *MockHistoryQuerier
24}
25
26// NewMockHistoryQuerier creates a new mock instance.
27func NewMockHistoryQuerier(ctrl *gomock.Controller) *MockHistoryQuerier {
28	mock := &MockHistoryQuerier{ctrl: ctrl}
29	mock.recorder = &MockHistoryQuerierMockRecorder{mock}
30	return mock
31}
32
33// EXPECT returns an object that allows the caller to indicate expected use.
34func (m *MockHistoryQuerier) EXPECT() *MockHistoryQuerierMockRecorder {
35	return m.recorder
36}
37
38// GetHistory mocks base method.
39func (m *MockHistoryQuerier) GetHistory(ctx context.Context, limit int64) ([]db.History, error) {
40	m.ctrl.T.Helper()
41	ret := m.ctrl.Call(m, "GetHistory", ctx, limit)
42	ret0, _ := ret[0].([]db.History)
43	ret1, _ := ret[1].(error)
44	return ret0, ret1
45}
46
47// GetHistory indicates an expected call of GetHistory.
48func (mr *MockHistoryQuerierMockRecorder) GetHistory(ctx, limit interface{}) *gomock.Call {
49	mr.mock.ctrl.T.Helper()
50	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHistory", reflect.TypeOf((*MockHistoryQuerier)(nil).GetHistory), ctx, limit)
51}
52
53// GetShortcuts mocks base method.
54func (m *MockHistoryQuerier) GetShortcuts(ctx context.Context) ([]db.Shortcut, error) {
55	m.ctrl.T.Helper()
56	ret := m.ctrl.Call(m, "GetShortcuts", ctx)
57	ret0, _ := ret[0].([]db.Shortcut)
58	ret1, _ := ret[1].(error)
59	return ret0, ret1
60}
61
62// GetShortcuts indicates an expected call of GetShortcuts.
63func (mr *MockHistoryQuerierMockRecorder) GetShortcuts(ctx interface{}) *gomock.Call {
64	mr.mock.ctrl.T.Helper()
65	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetShortcuts", reflect.TypeOf((*MockHistoryQuerier)(nil).GetShortcuts), ctx)
66}

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