Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockIdentityHashCalculator
- type MockIdentityHashCalculatorMockRecorder
- type MockMigration
- type MockMigrationMockRecorder
- type MockORM
- func (m *MockORM) Create(entity interface{}) orm.Result
- func (m *MockORM) CreateTable(models ...interface{}) orm.Result
- func (m *MockORM) DoInTransaction(fc func(orm.ORM) error) error
- func (m *MockORM) DropTable(entities ...interface{}) orm.Result
- func (m *MockORM) EXPECT() *MockORMMockRecorder
- func (m *MockORM) GetLatestSchemaIdentityHashAndVersion() (string, int, error)
- func (m *MockORM) GetModelDefinition(entity interface{}) orm.ModelDefinition
- func (m *MockORM) GetUnderlyingORM() interface{}
- func (m *MockORM) HasTable(entity interface{}) bool
- func (m *MockORM) TruncateTable(entity interface{}) orm.Result
- type MockORMMockRecorder
- func (mr *MockORMMockRecorder) Create(entity interface{}) *gomock.Call
- func (mr *MockORMMockRecorder) CreateTable(models ...interface{}) *gomock.Call
- func (mr *MockORMMockRecorder) DoInTransaction(fc interface{}) *gomock.Call
- func (mr *MockORMMockRecorder) DropTable(entities ...interface{}) *gomock.Call
- func (mr *MockORMMockRecorder) GetLatestSchemaIdentityHashAndVersion() *gomock.Call
- func (mr *MockORMMockRecorder) GetModelDefinition(entity interface{}) *gomock.Call
- func (mr *MockORMMockRecorder) GetUnderlyingORM() *gomock.Call
- func (mr *MockORMMockRecorder) HasTable(entity interface{}) *gomock.Call
- func (mr *MockORMMockRecorder) TruncateTable(entity interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIdentityHashCalculator ¶
type MockIdentityHashCalculator struct {
// contains filtered or unexported fields
}
MockIdentityHashCalculator is a mock of IdentityHashCalculator interface
func NewMockIdentityHashCalculator ¶
func NewMockIdentityHashCalculator(ctrl *gomock.Controller) *MockIdentityHashCalculator
NewMockIdentityHashCalculator creates a new mock instance
func (*MockIdentityHashCalculator) ConstructHash ¶
func (m *MockIdentityHashCalculator) ConstructHash(entityModel interface{}) (string, error)
ConstructHash mocks base method
func (*MockIdentityHashCalculator) EXPECT ¶
func (m *MockIdentityHashCalculator) EXPECT() *MockIdentityHashCalculatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockIdentityHashCalculatorMockRecorder ¶
type MockIdentityHashCalculatorMockRecorder struct {
// contains filtered or unexported fields
}
MockIdentityHashCalculatorMockRecorder is the mock recorder for MockIdentityHashCalculator
func (*MockIdentityHashCalculatorMockRecorder) ConstructHash ¶
func (mr *MockIdentityHashCalculatorMockRecorder) ConstructHash(entityModel interface{}) *gomock.Call
ConstructHash indicates an expected call of ConstructHash
type MockMigration ¶
type MockMigration struct {
// contains filtered or unexported fields
}
MockMigration is a mock of Migration interface
func NewMockMigration ¶
func NewMockMigration(ctrl *gomock.Controller) *MockMigration
NewMockMigration creates a new mock instance
func (*MockMigration) Apply ¶
func (m *MockMigration) Apply(db interface{}) error
Apply mocks base method
func (*MockMigration) EXPECT ¶
func (m *MockMigration) EXPECT() *MockMigrationMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockMigration) GetBaseVersion ¶
func (m *MockMigration) GetBaseVersion() orm.VersionNumber
GetBaseVersion mocks base method
func (*MockMigration) GetTargetVersion ¶
func (m *MockMigration) GetTargetVersion() orm.VersionNumber
GetTargetVersion mocks base method
type MockMigrationMockRecorder ¶
type MockMigrationMockRecorder struct {
// contains filtered or unexported fields
}
MockMigrationMockRecorder is the mock recorder for MockMigration
func (*MockMigrationMockRecorder) Apply ¶
func (mr *MockMigrationMockRecorder) Apply(db interface{}) *gomock.Call
Apply indicates an expected call of Apply
func (*MockMigrationMockRecorder) GetBaseVersion ¶
func (mr *MockMigrationMockRecorder) GetBaseVersion() *gomock.Call
GetBaseVersion indicates an expected call of GetBaseVersion
func (*MockMigrationMockRecorder) GetTargetVersion ¶
func (mr *MockMigrationMockRecorder) GetTargetVersion() *gomock.Call
GetTargetVersion indicates an expected call of GetTargetVersion
type MockORM ¶
type MockORM struct {
// contains filtered or unexported fields
}
MockORM is a mock of ORM interface
func NewMockORM ¶
func NewMockORM(ctrl *gomock.Controller) *MockORM
NewMockORM creates a new mock instance
func (*MockORM) CreateTable ¶
CreateTable mocks base method
func (*MockORM) DoInTransaction ¶
DoInTransaction mocks base method
func (*MockORM) EXPECT ¶
func (m *MockORM) EXPECT() *MockORMMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockORM) GetLatestSchemaIdentityHashAndVersion ¶
GetLatestSchemaIdentityHashAndVersion mocks base method
func (*MockORM) GetModelDefinition ¶
func (m *MockORM) GetModelDefinition(entity interface{}) orm.ModelDefinition
GetModelDefinition mocks base method
func (*MockORM) GetUnderlyingORM ¶
func (m *MockORM) GetUnderlyingORM() interface{}
GetUnderlyingORM mocks base method
func (*MockORM) TruncateTable ¶
TruncateTable mocks base method
type MockORMMockRecorder ¶
type MockORMMockRecorder struct {
// contains filtered or unexported fields
}
MockORMMockRecorder is the mock recorder for MockORM
func (*MockORMMockRecorder) Create ¶
func (mr *MockORMMockRecorder) Create(entity interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockORMMockRecorder) CreateTable ¶
func (mr *MockORMMockRecorder) CreateTable(models ...interface{}) *gomock.Call
CreateTable indicates an expected call of CreateTable
func (*MockORMMockRecorder) DoInTransaction ¶
func (mr *MockORMMockRecorder) DoInTransaction(fc interface{}) *gomock.Call
DoInTransaction indicates an expected call of DoInTransaction
func (*MockORMMockRecorder) DropTable ¶
func (mr *MockORMMockRecorder) DropTable(entities ...interface{}) *gomock.Call
DropTable indicates an expected call of DropTable
func (*MockORMMockRecorder) GetLatestSchemaIdentityHashAndVersion ¶
func (mr *MockORMMockRecorder) GetLatestSchemaIdentityHashAndVersion() *gomock.Call
GetLatestSchemaIdentityHashAndVersion indicates an expected call of GetLatestSchemaIdentityHashAndVersion
func (*MockORMMockRecorder) GetModelDefinition ¶
func (mr *MockORMMockRecorder) GetModelDefinition(entity interface{}) *gomock.Call
GetModelDefinition indicates an expected call of GetModelDefinition
func (*MockORMMockRecorder) GetUnderlyingORM ¶
func (mr *MockORMMockRecorder) GetUnderlyingORM() *gomock.Call
GetUnderlyingORM indicates an expected call of GetUnderlyingORM
func (*MockORMMockRecorder) HasTable ¶
func (mr *MockORMMockRecorder) HasTable(entity interface{}) *gomock.Call
HasTable indicates an expected call of HasTable
func (*MockORMMockRecorder) TruncateTable ¶
func (mr *MockORMMockRecorder) TruncateTable(entity interface{}) *gomock.Call
TruncateTable indicates an expected call of TruncateTable