This repository has been archived by the owner on Sep 11, 2020. It is now read-only.
/
mock_migration_implementation.go
80 lines (65 loc) · 2.42 KB
/
mock_migration_implementation.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
79
80
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/fossapps/starter/migration (interfaces: Migration)
// Package mock is a generated GoMock package.
package mock
import (
reflect "reflect"
db "github.com/fossapps/starter/db"
mgo "github.com/globalsign/mgo"
gomock "github.com/golang/mock/gomock"
)
// MockMigration is a mock of Migration interface
type MockMigration struct {
ctrl *gomock.Controller
recorder *MockMigrationMockRecorder
}
// MockMigrationMockRecorder is the mock recorder for MockMigration
type MockMigrationMockRecorder struct {
mock *MockMigration
}
// NewMockMigration creates a new mock instance
func NewMockMigration(ctrl *gomock.Controller) *MockMigration {
mock := &MockMigration{ctrl: ctrl}
mock.recorder = &MockMigrationMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockMigration) EXPECT() *MockMigrationMockRecorder {
return m.recorder
}
// Apply mocks base method
func (m *MockMigration) Apply(arg0 db.DB) {
m.ctrl.Call(m, "Apply", arg0)
}
// Apply indicates an expected call of Apply
func (mr *MockMigrationMockRecorder) Apply(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Apply", reflect.TypeOf((*MockMigration)(nil).Apply), arg0)
}
// GetDescription mocks base method
func (m *MockMigration) GetDescription() string {
ret := m.ctrl.Call(m, "GetDescription")
ret0, _ := ret[0].(string)
return ret0
}
// GetDescription indicates an expected call of GetDescription
func (mr *MockMigrationMockRecorder) GetDescription() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetDescription", reflect.TypeOf((*MockMigration)(nil).GetDescription))
}
// GetKey mocks base method
func (m *MockMigration) GetKey() string {
ret := m.ctrl.Call(m, "GetKey")
ret0, _ := ret[0].(string)
return ret0
}
// GetKey indicates an expected call of GetKey
func (mr *MockMigrationMockRecorder) GetKey() *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetKey", reflect.TypeOf((*MockMigration)(nil).GetKey))
}
// Remove mocks base method
func (m *MockMigration) Remove(arg0 *mgo.Database) {
m.ctrl.Call(m, "Remove", arg0)
}
// Remove indicates an expected call of Remove
func (mr *MockMigrationMockRecorder) Remove(arg0 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockMigration)(nil).Remove), arg0)
}