db-migrator.go

Форк
0
127 строк · 2.9 Кб
1
// Code generated by mockery. DO NOT EDIT.
2

3
package mockaction
4

5
import mock "github.com/stretchr/testify/mock"
6

7
// File is an autogenerated mock type for the File type
8
type File struct {
9
	mock.Mock
10
}
11

12
type File_Expecter struct {
13
	mock *mock.Mock
14
}
15

16
func (_m *File) EXPECT() *File_Expecter {
17
	return &File_Expecter{mock: &_m.Mock}
18
}
19

20
// Create provides a mock function with given fields: filename
21
func (_m *File) Create(filename string) error {
22
	ret := _m.Called(filename)
23

24
	var r0 error
25
	if rf, ok := ret.Get(0).(func(string) error); ok {
26
		r0 = rf(filename)
27
	} else {
28
		r0 = ret.Error(0)
29
	}
30

31
	return r0
32
}
33

34
// File_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
35
type File_Create_Call struct {
36
	*mock.Call
37
}
38

39
// Create is a helper method to define mock.On call
40
//   - filename string
41
func (_e *File_Expecter) Create(filename interface{}) *File_Create_Call {
42
	return &File_Create_Call{Call: _e.mock.On("Create", filename)}
43
}
44

45
func (_c *File_Create_Call) Run(run func(filename string)) *File_Create_Call {
46
	_c.Call.Run(func(args mock.Arguments) {
47
		run(args[0].(string))
48
	})
49
	return _c
50
}
51

52
func (_c *File_Create_Call) Return(_a0 error) *File_Create_Call {
53
	_c.Call.Return(_a0)
54
	return _c
55
}
56

57
func (_c *File_Create_Call) RunAndReturn(run func(string) error) *File_Create_Call {
58
	_c.Call.Return(run)
59
	return _c
60
}
61

62
// Exists provides a mock function with given fields: path
63
func (_m *File) Exists(path string) (bool, error) {
64
	ret := _m.Called(path)
65

66
	var r0 bool
67
	var r1 error
68
	if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
69
		return rf(path)
70
	}
71
	if rf, ok := ret.Get(0).(func(string) bool); ok {
72
		r0 = rf(path)
73
	} else {
74
		r0 = ret.Get(0).(bool)
75
	}
76

77
	if rf, ok := ret.Get(1).(func(string) error); ok {
78
		r1 = rf(path)
79
	} else {
80
		r1 = ret.Error(1)
81
	}
82

83
	return r0, r1
84
}
85

86
// File_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
87
type File_Exists_Call struct {
88
	*mock.Call
89
}
90

91
// Exists is a helper method to define mock.On call
92
//   - path string
93
func (_e *File_Expecter) Exists(path interface{}) *File_Exists_Call {
94
	return &File_Exists_Call{Call: _e.mock.On("Exists", path)}
95
}
96

97
func (_c *File_Exists_Call) Run(run func(path string)) *File_Exists_Call {
98
	_c.Call.Run(func(args mock.Arguments) {
99
		run(args[0].(string))
100
	})
101
	return _c
102
}
103

104
func (_c *File_Exists_Call) Return(_a0 bool, _a1 error) *File_Exists_Call {
105
	_c.Call.Return(_a0, _a1)
106
	return _c
107
}
108

109
func (_c *File_Exists_Call) RunAndReturn(run func(string) (bool, error)) *File_Exists_Call {
110
	_c.Call.Return(run)
111
	return _c
112
}
113

114
type mockConstructorTestingTNewFile interface {
115
	mock.TestingT
116
	Cleanup(func())
117
}
118

119
// 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.
120
func NewFile(t mockConstructorTestingTNewFile) *File {
121
	mock := &File{}
122
	mock.Mock.Test(t)
123

124
	t.Cleanup(func() { mock.AssertExpectations(t) })
125

126
	return mock
127
}
128

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.