blob: 0359f60310072e56f711c846d7a49ec771602dd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify
package mocks
import (
mock "github.com/stretchr/testify/mock"
)
// NewRow creates a new instance of Row. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewRow(t interface {
mock.TestingT
Cleanup(func())
}) *Row {
mock := &Row{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}
// Row is an autogenerated mock type for the Row type
type Row struct {
mock.Mock
}
type Row_Expecter struct {
mock *mock.Mock
}
func (_m *Row) EXPECT() *Row_Expecter {
return &Row_Expecter{mock: &_m.Mock}
}
// ToStruct provides a mock function for the type Row
func (_mock *Row) ToStruct(p any) error {
ret := _mock.Called(p)
if len(ret) == 0 {
panic("no return value specified for ToStruct")
}
var r0 error
if returnFunc, ok := ret.Get(0).(func(any) error); ok {
r0 = returnFunc(p)
} else {
r0 = ret.Error(0)
}
return r0
}
// Row_ToStruct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToStruct'
type Row_ToStruct_Call struct {
*mock.Call
}
// ToStruct is a helper method to define mock.On call
// - p any
func (_e *Row_Expecter) ToStruct(p interface{}) *Row_ToStruct_Call {
return &Row_ToStruct_Call{Call: _e.mock.On("ToStruct", p)}
}
func (_c *Row_ToStruct_Call) Run(run func(p any)) *Row_ToStruct_Call {
_c.Call.Run(func(args mock.Arguments) {
var arg0 any
if args[0] != nil {
arg0 = args[0].(any)
}
run(
arg0,
)
})
return _c
}
func (_c *Row_ToStruct_Call) Return(err error) *Row_ToStruct_Call {
_c.Call.Return(err)
return _c
}
func (_c *Row_ToStruct_Call) RunAndReturn(run func(p any) error) *Row_ToStruct_Call {
_c.Call.Return(run)
return _c
}
|