mocks

package
v0.0.0-...-40809a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

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

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) Create

func (m *MockORM) Create(entity interface{}) orm.Result

Create mocks base method

func (*MockORM) CreateTable

func (m *MockORM) CreateTable(models ...interface{}) orm.Result

CreateTable mocks base method

func (*MockORM) DoInTransaction

func (m *MockORM) DoInTransaction(fc func(orm.ORM) error) error

DoInTransaction mocks base method

func (*MockORM) DropTable

func (m *MockORM) DropTable(entities ...interface{}) orm.Result

DropTable 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

func (m *MockORM) GetLatestSchemaIdentityHashAndVersion() (string, int, error)

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) HasTable

func (m *MockORM) HasTable(entity interface{}) bool

HasTable mocks base method

func (*MockORM) TruncateTable

func (m *MockORM) TruncateTable(entity interface{}) orm.Result

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL