db-migrator.go
85 строк · 2.0 Кб
1// Code generated by mockery. DO NOT EDIT.
2
3package mockbuilder
4
5import mock "github.com/stretchr/testify/mock"
6
7// File is an autogenerated mock type for the File type
8type File struct {
9mock.Mock
10}
11
12type File_Expecter struct {
13mock *mock.Mock
14}
15
16func (_m *File) EXPECT() *File_Expecter {
17return &File_Expecter{mock: &_m.Mock}
18}
19
20// Exists provides a mock function with given fields: fileName
21func (_m *File) Exists(fileName string) (bool, error) {
22ret := _m.Called(fileName)
23
24var r0 bool
25var r1 error
26if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
27return rf(fileName)
28}
29if rf, ok := ret.Get(0).(func(string) bool); ok {
30r0 = rf(fileName)
31} else {
32r0 = ret.Get(0).(bool)
33}
34
35if rf, ok := ret.Get(1).(func(string) error); ok {
36r1 = rf(fileName)
37} else {
38r1 = ret.Error(1)
39}
40
41return r0, r1
42}
43
44// File_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
45type File_Exists_Call struct {
46*mock.Call
47}
48
49// Exists is a helper method to define mock.On call
50// - fileName string
51func (_e *File_Expecter) Exists(fileName interface{}) *File_Exists_Call {
52return &File_Exists_Call{Call: _e.mock.On("Exists", fileName)}
53}
54
55func (_c *File_Exists_Call) Run(run func(fileName string)) *File_Exists_Call {
56_c.Call.Run(func(args mock.Arguments) {
57run(args[0].(string))
58})
59return _c
60}
61
62func (_c *File_Exists_Call) Return(_a0 bool, _a1 error) *File_Exists_Call {
63_c.Call.Return(_a0, _a1)
64return _c
65}
66
67func (_c *File_Exists_Call) RunAndReturn(run func(string) (bool, error)) *File_Exists_Call {
68_c.Call.Return(run)
69return _c
70}
71
72type mockConstructorTestingTNewFile interface {
73mock.TestingT
74Cleanup(func())
75}
76
77// NewFile creates a new instance of File. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
78func NewFile(t mockConstructorTestingTNewFile) *File {
79mock := &File{}
80mock.Mock.Test(t)
81
82t.Cleanup(func() { mock.AssertExpectations(t) })
83
84return mock
85}
86