mocks

package
v0.0.0-...-ffdcb7f Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

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 MockDB

type MockDB struct {
	// contains filtered or unexported fields
}

MockDB is a mock of DB interface

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance

func (*MockDB) Begin

func (m *MockDB) Begin() (database.Tx, error)

Begin mocks base method

func (*MockDB) Close

func (m *MockDB) Close() error

Close mocks base method

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDB) Ping

func (m *MockDB) Ping() error

Ping mocks base method

type MockDBMockRecorder

type MockDBMockRecorder struct {
	// contains filtered or unexported fields
}

MockDBMockRecorder is the mock recorder for MockDB

func (*MockDBMockRecorder) Begin

func (mr *MockDBMockRecorder) Begin() *gomock.Call

Begin indicates an expected call of Begin

func (*MockDBMockRecorder) Close

func (mr *MockDBMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockDBMockRecorder) Ping

func (mr *MockDBMockRecorder) Ping() *gomock.Call

Ping indicates an expected call of Ping

type MockDatabaseIO

type MockDatabaseIO struct {
	// contains filtered or unexported fields
}

MockDatabaseIO is a mock of DatabaseIO interface

func NewMockDatabaseIO

func NewMockDatabaseIO(ctrl *gomock.Controller) *MockDatabaseIO

NewMockDatabaseIO creates a new mock instance

func (*MockDatabaseIO) Drivers

func (m *MockDatabaseIO) Drivers() []string

Drivers mocks base method

func (*MockDatabaseIO) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDatabaseIO) Open

func (m *MockDatabaseIO) Open(arg0, arg1 string) (database.DB, error)

Open mocks base method

func (*MockDatabaseIO) Register

func (m *MockDatabaseIO) Register(arg0 string, arg1 driver.Driver)

Register mocks base method

type MockDatabaseIOMockRecorder

type MockDatabaseIOMockRecorder struct {
	// contains filtered or unexported fields
}

MockDatabaseIOMockRecorder is the mock recorder for MockDatabaseIO

func (*MockDatabaseIOMockRecorder) Drivers

func (mr *MockDatabaseIOMockRecorder) Drivers() *gomock.Call

Drivers indicates an expected call of Drivers

func (*MockDatabaseIOMockRecorder) Open

func (mr *MockDatabaseIOMockRecorder) Open(arg0, arg1 interface{}) *gomock.Call

Open indicates an expected call of Open

func (*MockDatabaseIOMockRecorder) Register

func (mr *MockDatabaseIOMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call

Register indicates an expected call of Register

type MockDatabaseOpener

type MockDatabaseOpener struct {
	// contains filtered or unexported fields
}

MockDatabaseOpener is a mock of DatabaseOpener interface

func NewMockDatabaseOpener

func NewMockDatabaseOpener(ctrl *gomock.Controller) *MockDatabaseOpener

NewMockDatabaseOpener creates a new mock instance

func (*MockDatabaseOpener) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDatabaseOpener) Open

func (m *MockDatabaseOpener) Open(arg0, arg1 string) (database.DB, error)

Open mocks base method

type MockDatabaseOpenerMockRecorder

type MockDatabaseOpenerMockRecorder struct {
	// contains filtered or unexported fields
}

MockDatabaseOpenerMockRecorder is the mock recorder for MockDatabaseOpener

func (*MockDatabaseOpenerMockRecorder) Open

func (mr *MockDatabaseOpenerMockRecorder) Open(arg0, arg1 interface{}) *gomock.Call

Open indicates an expected call of Open

type MockDatabaseRegistrar

type MockDatabaseRegistrar struct {
	// contains filtered or unexported fields
}

MockDatabaseRegistrar is a mock of DatabaseRegistrar interface

func NewMockDatabaseRegistrar

func NewMockDatabaseRegistrar(ctrl *gomock.Controller) *MockDatabaseRegistrar

NewMockDatabaseRegistrar creates a new mock instance

func (*MockDatabaseRegistrar) Drivers

func (m *MockDatabaseRegistrar) Drivers() []string

Drivers mocks base method

func (*MockDatabaseRegistrar) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDatabaseRegistrar) Register

func (m *MockDatabaseRegistrar) Register(arg0 string, arg1 driver.Driver)

Register mocks base method

type MockDatabaseRegistrarMockRecorder

type MockDatabaseRegistrarMockRecorder struct {
	// contains filtered or unexported fields
}

MockDatabaseRegistrarMockRecorder is the mock recorder for MockDatabaseRegistrar

func (*MockDatabaseRegistrarMockRecorder) Drivers

Drivers indicates an expected call of Drivers

func (*MockDatabaseRegistrarMockRecorder) Register

func (mr *MockDatabaseRegistrarMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call

Register indicates an expected call of Register

type MockDriver

type MockDriver struct {
	// contains filtered or unexported fields
}

MockDriver is a mock of Driver interface

func NewMockDriver

func NewMockDriver(ctrl *gomock.Controller) *MockDriver

NewMockDriver creates a new mock instance

func (*MockDriver) EXPECT

func (m *MockDriver) EXPECT() *MockDriverMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockDriver) Open

func (m *MockDriver) Open(arg0 string) (driver.Conn, error)

Open mocks base method

type MockDriverMockRecorder

type MockDriverMockRecorder struct {
	// contains filtered or unexported fields
}

MockDriverMockRecorder is the mock recorder for MockDriver

func (*MockDriverMockRecorder) Open

func (mr *MockDriverMockRecorder) Open(arg0 interface{}) *gomock.Call

Open indicates an expected call of Open

type MockFileSystem

type MockFileSystem struct {
	// contains filtered or unexported fields
}

MockFileSystem is a mock of FileSystem interface

func NewMockFileSystem

func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem

NewMockFileSystem creates a new mock instance

func (*MockFileSystem) Chtimes

func (m *MockFileSystem) Chtimes(arg0 string, arg1, arg2 time.Time) error

Chtimes mocks base method

func (*MockFileSystem) CopyDir

func (m *MockFileSystem) CopyDir(arg0, arg1 string) error

CopyDir mocks base method

func (*MockFileSystem) CopyFile

func (m *MockFileSystem) CopyFile(arg0, arg1 string) error

CopyFile mocks base method

func (*MockFileSystem) Create

func (m *MockFileSystem) Create(arg0 string) (fsys.File, error)

Create mocks base method

func (*MockFileSystem) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockFileSystem) Exists

func (m *MockFileSystem) Exists(arg0 string) bool

Exists mocks base method

func (*MockFileSystem) Lock

func (m *MockFileSystem) Lock(arg0 string) (fsys.Releaser, bool, error)

Lock mocks base method

func (*MockFileSystem) Mkdir

func (m *MockFileSystem) Mkdir(arg0 string, arg1 os.FileMode) error

Mkdir mocks base method

func (*MockFileSystem) MkdirAll

func (m *MockFileSystem) MkdirAll(arg0 string, arg1 os.FileMode) error

MkdirAll mocks base method

func (*MockFileSystem) Open

func (m *MockFileSystem) Open(arg0 string) (fsys.File, error)

Open mocks base method

func (*MockFileSystem) OpenFile

func (m *MockFileSystem) OpenFile(arg0 string, arg1 int, arg2 os.FileMode) (fsys.File, error)

OpenFile mocks base method

func (*MockFileSystem) Remove

func (m *MockFileSystem) Remove(arg0 string) error

Remove mocks base method

func (*MockFileSystem) RemoveAll

func (m *MockFileSystem) RemoveAll(arg0 string) error

RemoveAll mocks base method

func (*MockFileSystem) Rename

func (m *MockFileSystem) Rename(arg0, arg1 string) error

Rename mocks base method

func (m *MockFileSystem) Symlink(arg0, arg1 string) error

Symlink mocks base method

func (*MockFileSystem) Walk

func (m *MockFileSystem) Walk(arg0 string, arg1 filepath.WalkFunc) error

Walk mocks base method

type MockFileSystemMockRecorder

type MockFileSystemMockRecorder struct {
	// contains filtered or unexported fields
}

MockFileSystemMockRecorder is the mock recorder for MockFileSystem

func (*MockFileSystemMockRecorder) Chtimes

func (mr *MockFileSystemMockRecorder) Chtimes(arg0, arg1, arg2 interface{}) *gomock.Call

Chtimes indicates an expected call of Chtimes

func (*MockFileSystemMockRecorder) CopyDir

func (mr *MockFileSystemMockRecorder) CopyDir(arg0, arg1 interface{}) *gomock.Call

CopyDir indicates an expected call of CopyDir

func (*MockFileSystemMockRecorder) CopyFile

func (mr *MockFileSystemMockRecorder) CopyFile(arg0, arg1 interface{}) *gomock.Call

CopyFile indicates an expected call of CopyFile

func (*MockFileSystemMockRecorder) Create

func (mr *MockFileSystemMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockFileSystemMockRecorder) Exists

func (mr *MockFileSystemMockRecorder) Exists(arg0 interface{}) *gomock.Call

Exists indicates an expected call of Exists

func (*MockFileSystemMockRecorder) Lock

func (mr *MockFileSystemMockRecorder) Lock(arg0 interface{}) *gomock.Call

Lock indicates an expected call of Lock

func (*MockFileSystemMockRecorder) Mkdir

func (mr *MockFileSystemMockRecorder) Mkdir(arg0, arg1 interface{}) *gomock.Call

Mkdir indicates an expected call of Mkdir

func (*MockFileSystemMockRecorder) MkdirAll

func (mr *MockFileSystemMockRecorder) MkdirAll(arg0, arg1 interface{}) *gomock.Call

MkdirAll indicates an expected call of MkdirAll

func (*MockFileSystemMockRecorder) Open

func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call

Open indicates an expected call of Open

func (*MockFileSystemMockRecorder) OpenFile

func (mr *MockFileSystemMockRecorder) OpenFile(arg0, arg1, arg2 interface{}) *gomock.Call

OpenFile indicates an expected call of OpenFile

func (*MockFileSystemMockRecorder) Remove

func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove

func (*MockFileSystemMockRecorder) RemoveAll

func (mr *MockFileSystemMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call

RemoveAll indicates an expected call of RemoveAll

func (*MockFileSystemMockRecorder) Rename

func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call

Rename indicates an expected call of Rename

func (mr *MockFileSystemMockRecorder) Symlink(arg0, arg1 interface{}) *gomock.Call

Symlink indicates an expected call of Symlink

func (*MockFileSystemMockRecorder) Walk

func (mr *MockFileSystemMockRecorder) Walk(arg0, arg1 interface{}) *gomock.Call

Walk indicates an expected call of Walk

type MockResult

type MockResult struct {
	// contains filtered or unexported fields
}

MockResult is a mock of Result interface

func NewMockResult

func NewMockResult(ctrl *gomock.Controller) *MockResult

NewMockResult creates a new mock instance

func (*MockResult) EXPECT

func (m *MockResult) EXPECT() *MockResultMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockResult) LastInsertId

func (m *MockResult) LastInsertId() (int64, error)

LastInsertId mocks base method

func (*MockResult) RowsAffected

func (m *MockResult) RowsAffected() (int64, error)

RowsAffected mocks base method

type MockResultMockRecorder

type MockResultMockRecorder struct {
	// contains filtered or unexported fields
}

MockResultMockRecorder is the mock recorder for MockResult

func (*MockResultMockRecorder) LastInsertId

func (mr *MockResultMockRecorder) LastInsertId() *gomock.Call

LastInsertId indicates an expected call of LastInsertId

func (*MockResultMockRecorder) RowsAffected

func (mr *MockResultMockRecorder) RowsAffected() *gomock.Call

RowsAffected indicates an expected call of RowsAffected

type MockRows

type MockRows struct {
	// contains filtered or unexported fields
}

MockRows is a mock of Rows interface

func NewMockRows

func NewMockRows(ctrl *gomock.Controller) *MockRows

NewMockRows creates a new mock instance

func (*MockRows) Close

func (m *MockRows) Close() error

Close mocks base method

func (*MockRows) ColumnTypes

func (m *MockRows) ColumnTypes() ([]database.ColumnType, error)

ColumnTypes mocks base method

func (*MockRows) Columns

func (m *MockRows) Columns() ([]string, error)

Columns mocks base method

func (*MockRows) EXPECT

func (m *MockRows) EXPECT() *MockRowsMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRows) Err

func (m *MockRows) Err() error

Err mocks base method

func (*MockRows) Next

func (m *MockRows) Next() bool

Next mocks base method

func (*MockRows) Scan

func (m *MockRows) Scan(arg0 ...interface{}) error

Scan mocks base method

type MockRowsMockRecorder

type MockRowsMockRecorder struct {
	// contains filtered or unexported fields
}

MockRowsMockRecorder is the mock recorder for MockRows

func (*MockRowsMockRecorder) Close

func (mr *MockRowsMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close

func (*MockRowsMockRecorder) ColumnTypes

func (mr *MockRowsMockRecorder) ColumnTypes() *gomock.Call

ColumnTypes indicates an expected call of ColumnTypes

func (*MockRowsMockRecorder) Columns

func (mr *MockRowsMockRecorder) Columns() *gomock.Call

Columns indicates an expected call of Columns

func (*MockRowsMockRecorder) Err

func (mr *MockRowsMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err

func (*MockRowsMockRecorder) Next

func (mr *MockRowsMockRecorder) Next() *gomock.Call

Next indicates an expected call of Next

func (*MockRowsMockRecorder) Scan

func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call

Scan indicates an expected call of Scan

type MockSchema

type MockSchema struct {
	// contains filtered or unexported fields
}

MockSchema is a mock of Schema interface

func NewMockSchema

func NewMockSchema(ctrl *gomock.Controller) *MockSchema

NewMockSchema creates a new mock instance

func (*MockSchema) EXPECT

func (m *MockSchema) EXPECT() *MockSchemaMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSchema) Ensure

func (m *MockSchema) Ensure(arg0 database.DB) (int, error)

Ensure mocks base method

func (*MockSchema) File

func (m *MockSchema) File(arg0 string)

File mocks base method

func (*MockSchema) Hook

func (m *MockSchema) Hook(arg0 schema.Hook)

Hook mocks base method

type MockSchemaMockRecorder

type MockSchemaMockRecorder struct {
	// contains filtered or unexported fields
}

MockSchemaMockRecorder is the mock recorder for MockSchema

func (*MockSchemaMockRecorder) Ensure

func (mr *MockSchemaMockRecorder) Ensure(arg0 interface{}) *gomock.Call

Ensure indicates an expected call of Ensure

func (*MockSchemaMockRecorder) File

func (mr *MockSchemaMockRecorder) File(arg0 interface{}) *gomock.Call

File indicates an expected call of File

func (*MockSchemaMockRecorder) Hook

func (mr *MockSchemaMockRecorder) Hook(arg0 interface{}) *gomock.Call

Hook indicates an expected call of Hook

type MockSchemaProvider

type MockSchemaProvider struct {
	// contains filtered or unexported fields
}

MockSchemaProvider is a mock of SchemaProvider interface

func NewMockSchemaProvider

func NewMockSchemaProvider(ctrl *gomock.Controller) *MockSchemaProvider

NewMockSchemaProvider creates a new mock instance

func (*MockSchemaProvider) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockSchemaProvider) Schema

func (m *MockSchemaProvider) Schema() node.Schema

Schema mocks base method

func (*MockSchemaProvider) Updates

func (m *MockSchemaProvider) Updates() []schema.Update

Updates mocks base method

type MockSchemaProviderMockRecorder

type MockSchemaProviderMockRecorder struct {
	// contains filtered or unexported fields
}

MockSchemaProviderMockRecorder is the mock recorder for MockSchemaProvider

func (*MockSchemaProviderMockRecorder) Schema

Schema indicates an expected call of Schema

func (*MockSchemaProviderMockRecorder) Updates

Updates indicates an expected call of Updates

type MockTx

type MockTx struct {
	// contains filtered or unexported fields
}

MockTx is a mock of Tx interface

func NewMockTx

func NewMockTx(ctrl *gomock.Controller) *MockTx

NewMockTx creates a new mock instance

func (*MockTx) Commit

func (m *MockTx) Commit() error

Commit mocks base method

func (*MockTx) EXPECT

func (m *MockTx) EXPECT() *MockTxMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockTx) Exec

func (m *MockTx) Exec(arg0 string, arg1 ...interface{}) (sql.Result, error)

Exec mocks base method

func (*MockTx) Query

func (m *MockTx) Query(arg0 string, arg1 ...interface{}) (database.Rows, error)

Query mocks base method

func (*MockTx) Rollback

func (m *MockTx) Rollback() error

Rollback mocks base method

type MockTxMockRecorder

type MockTxMockRecorder struct {
	// contains filtered or unexported fields
}

MockTxMockRecorder is the mock recorder for MockTx

func (*MockTxMockRecorder) Commit

func (mr *MockTxMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit

func (*MockTxMockRecorder) Exec

func (mr *MockTxMockRecorder) Exec(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Exec indicates an expected call of Exec

func (*MockTxMockRecorder) Query

func (mr *MockTxMockRecorder) Query(arg0 interface{}, arg1 ...interface{}) *gomock.Call

Query indicates an expected call of Query

func (*MockTxMockRecorder) Rollback

func (mr *MockTxMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback

Jump to

Keyboard shortcuts

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