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 ¶
- type MockDB
- type MockDBMockRecorder
- type MockDatabaseIO
- type MockDatabaseIOMockRecorder
- type MockDatabaseOpener
- type MockDatabaseOpenerMockRecorder
- type MockDatabaseRegistrar
- type MockDatabaseRegistrarMockRecorder
- type MockDriver
- type MockDriverMockRecorder
- type MockFileSystem
- func (m *MockFileSystem) Chtimes(arg0 string, arg1, arg2 time.Time) error
- func (m *MockFileSystem) CopyDir(arg0, arg1 string) error
- func (m *MockFileSystem) CopyFile(arg0, arg1 string) error
- func (m *MockFileSystem) Create(arg0 string) (fsys.File, error)
- func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
- func (m *MockFileSystem) Exists(arg0 string) bool
- func (m *MockFileSystem) Lock(arg0 string) (fsys.Releaser, bool, error)
- func (m *MockFileSystem) Mkdir(arg0 string, arg1 os.FileMode) error
- func (m *MockFileSystem) MkdirAll(arg0 string, arg1 os.FileMode) error
- func (m *MockFileSystem) Open(arg0 string) (fsys.File, error)
- func (m *MockFileSystem) OpenFile(arg0 string, arg1 int, arg2 os.FileMode) (fsys.File, error)
- func (m *MockFileSystem) Remove(arg0 string) error
- func (m *MockFileSystem) RemoveAll(arg0 string) error
- func (m *MockFileSystem) Rename(arg0, arg1 string) error
- func (m *MockFileSystem) Symlink(arg0, arg1 string) error
- func (m *MockFileSystem) Walk(arg0 string, arg1 filepath.WalkFunc) error
- type MockFileSystemMockRecorder
- func (mr *MockFileSystemMockRecorder) Chtimes(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) CopyDir(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) CopyFile(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Exists(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Lock(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Mkdir(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) MkdirAll(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) OpenFile(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Symlink(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Walk(arg0, arg1 interface{}) *gomock.Call
- type MockResult
- type MockResultMockRecorder
- type MockRows
- func (m *MockRows) Close() error
- func (m *MockRows) ColumnTypes() ([]database.ColumnType, error)
- func (m *MockRows) Columns() ([]string, error)
- func (m *MockRows) EXPECT() *MockRowsMockRecorder
- func (m *MockRows) Err() error
- func (m *MockRows) Next() bool
- func (m *MockRows) Scan(arg0 ...interface{}) error
- type MockRowsMockRecorder
- func (mr *MockRowsMockRecorder) Close() *gomock.Call
- func (mr *MockRowsMockRecorder) ColumnTypes() *gomock.Call
- func (mr *MockRowsMockRecorder) Columns() *gomock.Call
- func (mr *MockRowsMockRecorder) Err() *gomock.Call
- func (mr *MockRowsMockRecorder) Next() *gomock.Call
- func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
- type MockSchema
- type MockSchemaMockRecorder
- type MockSchemaProvider
- type MockSchemaProviderMockRecorder
- type MockTx
- type MockTxMockRecorder
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) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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 ¶
func (m *MockDatabaseIO) EXPECT() *MockDatabaseIOMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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 ¶
func (m *MockDatabaseOpener) EXPECT() *MockDatabaseOpenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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 ¶
func (m *MockDatabaseRegistrar) EXPECT() *MockDatabaseRegistrarMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockDatabaseRegistrarMockRecorder ¶
type MockDatabaseRegistrarMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseRegistrarMockRecorder is the mock recorder for MockDatabaseRegistrar
func (*MockDatabaseRegistrarMockRecorder) Drivers ¶
func (mr *MockDatabaseRegistrarMockRecorder) Drivers() *gomock.Call
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
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 ¶
func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
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) 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) 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 (*MockFileSystem) Symlink ¶
func (m *MockFileSystem) Symlink(arg0, arg1 string) error
Symlink 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 (*MockFileSystemMockRecorder) Symlink ¶
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) ColumnTypes ¶
func (m *MockRows) ColumnTypes() ([]database.ColumnType, error)
ColumnTypes mocks base method
func (*MockRows) EXPECT ¶
func (m *MockRows) EXPECT() *MockRowsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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
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 ¶
func (m *MockSchemaProvider) EXPECT() *MockSchemaProviderMockRecorder
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 ¶
func (mr *MockSchemaProviderMockRecorder) Schema() *gomock.Call
Schema indicates an expected call of Schema
func (*MockSchemaProviderMockRecorder) Updates ¶
func (mr *MockSchemaProviderMockRecorder) Updates() *gomock.Call
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) EXPECT ¶
func (m *MockTx) EXPECT() *MockTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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