db-migrator.go

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

3
package mockbuilder
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
// Exists provides a mock function with given fields: fileName
21
func (_m *File) Exists(fileName string) (bool, error) {
22
	ret := _m.Called(fileName)
23

24
	var r0 bool
25
	var r1 error
26
	if rf, ok := ret.Get(0).(func(string) (bool, error)); ok {
27
		return rf(fileName)
28
	}
29
	if rf, ok := ret.Get(0).(func(string) bool); ok {
30
		r0 = rf(fileName)
31
	} else {
32
		r0 = ret.Get(0).(bool)
33
	}
34

35
	if rf, ok := ret.Get(1).(func(string) error); ok {
36
		r1 = rf(fileName)
37
	} else {
38
		r1 = ret.Error(1)
39
	}
40

41
	return r0, r1
42
}
43

44
// File_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'
45
type File_Exists_Call struct {
46
	*mock.Call
47
}
48

49
// Exists is a helper method to define mock.On call
50
//   - fileName string
51
func (_e *File_Expecter) Exists(fileName interface{}) *File_Exists_Call {
52
	return &File_Exists_Call{Call: _e.mock.On("Exists", fileName)}
53
}
54

55
func (_c *File_Exists_Call) Run(run func(fileName string)) *File_Exists_Call {
56
	_c.Call.Run(func(args mock.Arguments) {
57
		run(args[0].(string))
58
	})
59
	return _c
60
}
61

62
func (_c *File_Exists_Call) Return(_a0 bool, _a1 error) *File_Exists_Call {
63
	_c.Call.Return(_a0, _a1)
64
	return _c
65
}
66

67
func (_c *File_Exists_Call) RunAndReturn(run func(string) (bool, error)) *File_Exists_Call {
68
	_c.Call.Return(run)
69
	return _c
70
}
71

72
type mockConstructorTestingTNewFile interface {
73
	mock.TestingT
74
	Cleanup(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.
78
func NewFile(t mockConstructorTestingTNewFile) *File {
79
	mock := &File{}
80
	mock.Mock.Test(t)
81

82
	t.Cleanup(func() { mock.AssertExpectations(t) })
83

84
	return mock
85
}
86

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

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

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

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