-
Notifications
You must be signed in to change notification settings - Fork 0
/
migtator_mocks_test.go
78 lines (64 loc) · 2.07 KB
/
migtator_mocks_test.go
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
package slate
import (
"reflect"
"github.com/golang/mock/gomock"
)
// ----------------------------------------------------------------------------
// Migration
// ----------------------------------------------------------------------------
// MockMigration is a mocked instance of IMigration interface.
type MockMigration struct {
ctrl *gomock.Controller
recorder *MockMigrationRecorder
}
var _ Migration = &MockMigration{}
// MockMigrationRecorder is the mock recorder for MockMigration.
type MockMigrationRecorder struct {
mock *MockMigration
}
// NewMockMigration creates a new mock instance.
func NewMockMigration(ctrl *gomock.Controller) *MockMigration {
mock := &MockMigration{ctrl: ctrl}
mock.recorder = &MockMigrationRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockMigration) EXPECT() *MockMigrationRecorder {
return m.recorder
}
// Version mocks base method.
func (m *MockMigration) Version() uint64 {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Version")
ret0, _ := ret[0].(uint64)
return ret0
}
// Version indicates an expected call of Version.
func (mr *MockMigrationRecorder) Version() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Version", reflect.TypeOf((*MockMigration)(nil).Version))
}
// Up mocks base method.
func (m *MockMigration) Up() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Up")
ret0, _ := ret[0].(error)
return ret0
}
// Up indicates an expected call of Up.
func (mr *MockMigrationRecorder) Up() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Up", reflect.TypeOf((*MockMigration)(nil).Up))
}
// Down mocks base method.
func (m *MockMigration) Down() error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Down")
ret0, _ := ret[0].(error)
return ret0
}
// Down indicates an expected call of Down.
func (mr *MockMigrationRecorder) Down() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Down", reflect.TypeOf((*MockMigration)(nil).Down))
}