main f2d166b

image_buffer_mock_test.go RawHistoryFolder

1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package drm
6
7import (
8	"github.com/bnema/neferwl/internal/ports"
9	mock "github.com/stretchr/testify/mock"
10)
11
12// newMockimageBuffer creates a new instance of mockimageBuffer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
13// The first argument is typically a *testing.T value.
14func newMockimageBuffer(t interface {
15	mock.TestingT
16	Cleanup(func())
17}) *mockimageBuffer {
18	if helper, ok := t.(interface{ Helper() }); ok {
19		helper.Helper()
20	}
21
22	mock := &mockimageBuffer{}
23	mock.Mock.Test(t)
24
25	t.Cleanup(func() {
26		if helper, ok := t.(interface{ Helper() }); ok {
27			helper.Helper()
28		}
29		mock.AssertExpectations(t)
30	})
31
32	return mock
33}
34
35// mockimageBuffer is an autogenerated mock type for the imageBuffer type
36type mockimageBuffer struct {
37	mock.Mock
38}
39
40type mockimageBuffer_Expecter struct {
41	mock *mock.Mock
42}
43
44func (_m *mockimageBuffer) EXPECT() *mockimageBuffer_Expecter {
45	return &mockimageBuffer_Expecter{mock: &_m.Mock}
46}
47
48// close provides a mock function for the type mockimageBuffer
49func (_mock *mockimageBuffer) close() {
50	_mock.Called()
51	return
52}
53
54// mockimageBuffer_close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'close'
55type mockimageBuffer_close_Call struct {
56	*mock.Call
57}
58
59// close is a helper method to define mock.On call
60func (_e *mockimageBuffer_Expecter) close() *mockimageBuffer_close_Call {
61	return &mockimageBuffer_close_Call{Call: _e.mock.On("close")}
62}
63
64func (_c *mockimageBuffer_close_Call) Run(run func()) *mockimageBuffer_close_Call {
65	_c.Call.Run(func(args mock.Arguments) {
66		run()
67	})
68	return _c
69}
70
71func (_c *mockimageBuffer_close_Call) Return() *mockimageBuffer_close_Call {
72	_c.Call.Return()
73	return _c
74}
75
76func (_c *mockimageBuffer_close_Call) RunAndReturn(run func()) *mockimageBuffer_close_Call {
77	_c.Run(run)
78	return _c
79}
80
81// dmabuf provides a mock function for the type mockimageBuffer
82func (_mock *mockimageBuffer) dmabuf() (ports.DMABuf, error) {
83	ret := _mock.Called()
84
85	if len(ret) == 0 {
86		panic("no return value specified for dmabuf")
87	}
88
89	var r0 ports.DMABuf
90	var r1 error
91	if returnFunc, ok := ret.Get(0).(func() (ports.DMABuf, error)); ok {
92		return returnFunc()
93	}
94	if returnFunc, ok := ret.Get(0).(func() ports.DMABuf); ok {
95		r0 = returnFunc()
96	} else {
97		r0 = ret.Get(0).(ports.DMABuf)
98	}
99	if returnFunc, ok := ret.Get(1).(func() error); ok {
100		r1 = returnFunc()
101	} else {
102		r1 = ret.Error(1)
103	}
104	return r0, r1
105}
106
107// mockimageBuffer_dmabuf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'dmabuf'
108type mockimageBuffer_dmabuf_Call struct {
109	*mock.Call
110}
111
112// dmabuf is a helper method to define mock.On call
113func (_e *mockimageBuffer_Expecter) dmabuf() *mockimageBuffer_dmabuf_Call {
114	return &mockimageBuffer_dmabuf_Call{Call: _e.mock.On("dmabuf")}
115}
116
117func (_c *mockimageBuffer_dmabuf_Call) Run(run func()) *mockimageBuffer_dmabuf_Call {
118	_c.Call.Run(func(args mock.Arguments) {
119		run()
120	})
121	return _c
122}
123
124func (_c *mockimageBuffer_dmabuf_Call) Return(dMABuf ports.DMABuf, err error) *mockimageBuffer_dmabuf_Call {
125	_c.Call.Return(dMABuf, err)
126	return _c
127}
128
129func (_c *mockimageBuffer_dmabuf_Call) RunAndReturn(run func() (ports.DMABuf, error)) *mockimageBuffer_dmabuf_Call {
130	_c.Call.Return(run)
131	return _c
132}

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