cursor_mock_test.go RawHistoryFolder
1// Code generated by mockery; DO NOT EDIT.
2// github.com/vektra/mockery
3// template: testify
4
5package app
6
7import (
8 mock "github.com/stretchr/testify/mock"
9)
10
11// newMockcursor creates a new instance of mockcursor. 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 newMockcursor(t interface {
14 mock.TestingT
15 Cleanup(func())
16}) *mockcursor {
17 if helper, ok := t.(interface{ Helper() }); ok {
18 helper.Helper()
19 }
20
21 mock := &mockcursor{}
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// mockcursor is an autogenerated mock type for the cursor type
35type mockcursor struct {
36 mock.Mock
37}
38
39type mockcursor_Expecter struct {
40 mock *mock.Mock
41}
42
43func (_m *mockcursor) EXPECT() *mockcursor_Expecter {
44 return &mockcursor_Expecter{mock: &_m.Mock}
45}
46
47// Hide provides a mock function for the type mockcursor
48func (_mock *mockcursor) Hide() {
49 _mock.Called()
50 return
51}
52
53// mockcursor_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide'
54type mockcursor_Hide_Call struct {
55 *mock.Call
56}
57
58// Hide is a helper method to define mock.On call
59func (_e *mockcursor_Expecter) Hide() *mockcursor_Hide_Call {
60 return &mockcursor_Hide_Call{Call: _e.mock.On("Hide")}
61}
62
63func (_c *mockcursor_Hide_Call) Run(run func()) *mockcursor_Hide_Call {
64 _c.Call.Run(func(args mock.Arguments) {
65 run()
66 })
67 return _c
68}
69
70func (_c *mockcursor_Hide_Call) Return() *mockcursor_Hide_Call {
71 _c.Call.Return()
72 return _c
73}
74
75func (_c *mockcursor_Hide_Call) RunAndReturn(run func()) *mockcursor_Hide_Call {
76 _c.Run(run)
77 return _c
78}
79
80// Move provides a mock function for the type mockcursor
81func (_mock *mockcursor) Move(x float64, y float64) {
82 _mock.Called(x, y)
83 return
84}
85
86// mockcursor_Move_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Move'
87type mockcursor_Move_Call struct {
88 *mock.Call
89}
90
91// Move is a helper method to define mock.On call
92// - x float64
93// - y float64
94func (_e *mockcursor_Expecter) Move(x any, y any) *mockcursor_Move_Call {
95 return &mockcursor_Move_Call{Call: _e.mock.On("Move", x, y)}
96}
97
98func (_c *mockcursor_Move_Call) Run(run func(x float64, y float64)) *mockcursor_Move_Call {
99 _c.Call.Run(func(args mock.Arguments) {
100 var arg0 float64
101 if args[0] != nil {
102 arg0 = args[0].(float64)
103 }
104 var arg1 float64
105 if args[1] != nil {
106 arg1 = args[1].(float64)
107 }
108 run(
109 arg0,
110 arg1,
111 )
112 })
113 return _c
114}
115
116func (_c *mockcursor_Move_Call) Return() *mockcursor_Move_Call {
117 _c.Call.Return()
118 return _c
119}
120
121func (_c *mockcursor_Move_Call) RunAndReturn(run func(x float64, y float64)) *mockcursor_Move_Call {
122 _c.Run(run)
123 return _c
124}