Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockDataSourceManager
- func (m *MockDataSourceManager) BranchCommit(ctx context.Context, resource rm.BranchResource) (branch.BranchStatus, error)
- func (m *MockDataSourceManager) BranchRegister(ctx context.Context, param rm.BranchRegisterParam) (int64, error)
- func (m *MockDataSourceManager) BranchReport(ctx context.Context, param rm.BranchReportParam) error
- func (m *MockDataSourceManager) BranchRollback(ctx context.Context, resource rm.BranchResource) (branch.BranchStatus, error)
- func (m *MockDataSourceManager) CreateTableMetaCache(ctx context.Context, resID string, dbType types.DBType, db *sql.DB) (datasource.TableMetaCache, error)
- func (m *MockDataSourceManager) EXPECT() *MockDataSourceManagerMockRecorder
- func (m *MockDataSourceManager) GetBranchType() branch.BranchType
- func (m *MockDataSourceManager) GetCachedResources() *sync.Map
- func (m *MockDataSourceManager) LockQuery(ctx context.Context, param rm.LockQueryParam) (bool, error)
- func (m *MockDataSourceManager) RegisterResource(resource rm.Resource) error
- func (m *MockDataSourceManager) SetBranchType(branchType branch.BranchType)
- func (m *MockDataSourceManager) UnregisterResource(resource rm.Resource) error
- type MockDataSourceManagerMockRecorder
- func (mr *MockDataSourceManagerMockRecorder) BranchCommit(ctx, resource interface{}) *gomock.Call
- func (mr *MockDataSourceManagerMockRecorder) BranchRegister(ctx, param interface{}) *gomock.Call
- func (mr *MockDataSourceManagerMockRecorder) BranchReport(ctx, param interface{}) *gomock.Call
- func (mr *MockDataSourceManagerMockRecorder) BranchRollback(ctx, resource interface{}) *gomock.Call
- func (mr *MockDataSourceManagerMockRecorder) CreateTableMetaCache(ctx, resID, dbType, db interface{}) *gomock.Call
- func (mr *MockDataSourceManagerMockRecorder) GetBranchType() *gomock.Call
- func (mr *MockDataSourceManagerMockRecorder) GetCachedResources() *gomock.Call
- func (mr *MockDataSourceManagerMockRecorder) LockQuery(ctx, param interface{}) *gomock.Call
- func (mr *MockDataSourceManagerMockRecorder) RegisterResource(resource interface{}) *gomock.Call
- func (mr *MockDataSourceManagerMockRecorder) UnregisterResource(resource interface{}) *gomock.Call
- type MockTableMetaCache
- func (m *MockTableMetaCache) Destroy() error
- func (m *MockTableMetaCache) EXPECT() *MockTableMetaCacheMockRecorder
- func (m *MockTableMetaCache) GetTableMeta(ctx context.Context, dbName, table string) (*types.TableMeta, error)
- func (m *MockTableMetaCache) Init(ctx context.Context, conn *sql.DB) error
- type MockTableMetaCacheMockRecorder
- type MockTestDriver
- type MockTestDriverConn
- func (m *MockTestDriverConn) Begin() (driver.Tx, error)
- func (m *MockTestDriverConn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)
- func (m *MockTestDriverConn) Close() error
- func (m *MockTestDriverConn) EXPECT() *MockTestDriverConnMockRecorder
- func (m *MockTestDriverConn) Exec(query string, args []driver.Value) (driver.Result, error)
- func (m *MockTestDriverConn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
- func (m *MockTestDriverConn) Ping(ctx context.Context) error
- func (m *MockTestDriverConn) Prepare(query string) (driver.Stmt, error)
- func (m *MockTestDriverConn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)
- func (m *MockTestDriverConn) Query(query string, args []driver.Value) (driver.Rows, error)
- func (m *MockTestDriverConn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
- func (m *MockTestDriverConn) ResetSession(ctx context.Context) error
- type MockTestDriverConnMockRecorder
- func (mr *MockTestDriverConnMockRecorder) Begin() *gomock.Call
- func (mr *MockTestDriverConnMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call
- func (mr *MockTestDriverConnMockRecorder) Close() *gomock.Call
- func (mr *MockTestDriverConnMockRecorder) Exec(query, args interface{}) *gomock.Call
- func (mr *MockTestDriverConnMockRecorder) ExecContext(ctx, query, args interface{}) *gomock.Call
- func (mr *MockTestDriverConnMockRecorder) Ping(ctx interface{}) *gomock.Call
- func (mr *MockTestDriverConnMockRecorder) Prepare(query interface{}) *gomock.Call
- func (mr *MockTestDriverConnMockRecorder) PrepareContext(ctx, query interface{}) *gomock.Call
- func (mr *MockTestDriverConnMockRecorder) Query(query, args interface{}) *gomock.Call
- func (mr *MockTestDriverConnMockRecorder) QueryContext(ctx, query, args interface{}) *gomock.Call
- func (mr *MockTestDriverConnMockRecorder) ResetSession(ctx interface{}) *gomock.Call
- type MockTestDriverConnector
- type MockTestDriverConnectorMockRecorder
- type MockTestDriverMockRecorder
- type MockTestDriverRows
- type MockTestDriverRowsMockRecorder
- type MockTestDriverStmt
- func (m *MockTestDriverStmt) Close() error
- func (m *MockTestDriverStmt) EXPECT() *MockTestDriverStmtMockRecorder
- func (m *MockTestDriverStmt) Exec(args []driver.Value) (driver.Result, error)
- func (m *MockTestDriverStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
- func (m *MockTestDriverStmt) NumInput() int
- func (m *MockTestDriverStmt) Query(args []driver.Value) (driver.Rows, error)
- func (m *MockTestDriverStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
- type MockTestDriverStmtMockRecorder
- func (mr *MockTestDriverStmtMockRecorder) Close() *gomock.Call
- func (mr *MockTestDriverStmtMockRecorder) Exec(args interface{}) *gomock.Call
- func (mr *MockTestDriverStmtMockRecorder) ExecContext(ctx, args interface{}) *gomock.Call
- func (mr *MockTestDriverStmtMockRecorder) NumInput() *gomock.Call
- func (mr *MockTestDriverStmtMockRecorder) Query(args interface{}) *gomock.Call
- func (mr *MockTestDriverStmtMockRecorder) QueryContext(ctx, args interface{}) *gomock.Call
- type MockTestDriverTx
- type MockTestDriverTxMockRecorder
- type TestDriver
- type TestDriverConn
- type TestDriverConnector
- type TestDriverRows
- type TestDriverStmt
- type TestDriverTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDataSourceManager ¶
type MockDataSourceManager struct {
// contains filtered or unexported fields
}
MockDataSourceManager is a mock of DataSourceManager interface.
func NewMockDataSourceManager ¶
func NewMockDataSourceManager(ctrl *gomock.Controller) *MockDataSourceManager
NewMockDataSourceManager creates a new mock instance.
func (*MockDataSourceManager) BranchCommit ¶
func (m *MockDataSourceManager) BranchCommit(ctx context.Context, resource rm.BranchResource) (branch.BranchStatus, error)
BranchCommit mocks base method.
func (*MockDataSourceManager) BranchRegister ¶
func (m *MockDataSourceManager) BranchRegister(ctx context.Context, param rm.BranchRegisterParam) (int64, error)
BranchRegister mocks base method.
func (*MockDataSourceManager) BranchReport ¶
func (m *MockDataSourceManager) BranchReport(ctx context.Context, param rm.BranchReportParam) error
BranchReport mocks base method.
func (*MockDataSourceManager) BranchRollback ¶
func (m *MockDataSourceManager) BranchRollback(ctx context.Context, resource rm.BranchResource) (branch.BranchStatus, error)
BranchRollback mocks base method.
func (*MockDataSourceManager) CreateTableMetaCache ¶
func (m *MockDataSourceManager) CreateTableMetaCache(ctx context.Context, resID string, dbType types.DBType, db *sql.DB) (datasource.TableMetaCache, error)
CreateTableMetaCache mocks base method.
func (*MockDataSourceManager) EXPECT ¶
func (m *MockDataSourceManager) EXPECT() *MockDataSourceManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDataSourceManager) GetBranchType ¶
func (m *MockDataSourceManager) GetBranchType() branch.BranchType
GetBranchType mocks base method.
func (*MockDataSourceManager) GetCachedResources ¶
func (m *MockDataSourceManager) GetCachedResources() *sync.Map
GetCachedResources mocks base method.
func (*MockDataSourceManager) LockQuery ¶
func (m *MockDataSourceManager) LockQuery(ctx context.Context, param rm.LockQueryParam) (bool, error)
LockQuery mocks base method.
func (*MockDataSourceManager) RegisterResource ¶
func (m *MockDataSourceManager) RegisterResource(resource rm.Resource) error
RegisterResource mocks base method.
func (*MockDataSourceManager) SetBranchType ¶
func (m *MockDataSourceManager) SetBranchType(branchType branch.BranchType)
func (*MockDataSourceManager) UnregisterResource ¶
func (m *MockDataSourceManager) UnregisterResource(resource rm.Resource) error
UnregisterResource mocks base method.
type MockDataSourceManagerMockRecorder ¶
type MockDataSourceManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockDataSourceManagerMockRecorder is the mock recorder for MockDataSourceManager.
func (*MockDataSourceManagerMockRecorder) BranchCommit ¶
func (mr *MockDataSourceManagerMockRecorder) BranchCommit(ctx, resource interface{}) *gomock.Call
BranchCommit indicates an expected call of BranchCommit.
func (*MockDataSourceManagerMockRecorder) BranchRegister ¶
func (mr *MockDataSourceManagerMockRecorder) BranchRegister(ctx, param interface{}) *gomock.Call
BranchRegister indicates an expected call of BranchRegister.
func (*MockDataSourceManagerMockRecorder) BranchReport ¶
func (mr *MockDataSourceManagerMockRecorder) BranchReport(ctx, param interface{}) *gomock.Call
BranchReport indicates an expected call of BranchReport.
func (*MockDataSourceManagerMockRecorder) BranchRollback ¶
func (mr *MockDataSourceManagerMockRecorder) BranchRollback(ctx, resource interface{}) *gomock.Call
BranchRollback indicates an expected call of BranchRollback.
func (*MockDataSourceManagerMockRecorder) CreateTableMetaCache ¶
func (mr *MockDataSourceManagerMockRecorder) CreateTableMetaCache(ctx, resID, dbType, db interface{}) *gomock.Call
CreateTableMetaCache indicates an expected call of CreateTableMetaCache.
func (*MockDataSourceManagerMockRecorder) GetBranchType ¶
func (mr *MockDataSourceManagerMockRecorder) GetBranchType() *gomock.Call
GetBranchType indicates an expected call of GetBranchType.
func (*MockDataSourceManagerMockRecorder) GetCachedResources ¶
func (mr *MockDataSourceManagerMockRecorder) GetCachedResources() *gomock.Call
GetCachedResources indicates an expected call of GetCachedResources.
func (*MockDataSourceManagerMockRecorder) LockQuery ¶
func (mr *MockDataSourceManagerMockRecorder) LockQuery(ctx, param interface{}) *gomock.Call
LockQuery indicates an expected call of LockQuery.
func (*MockDataSourceManagerMockRecorder) RegisterResource ¶
func (mr *MockDataSourceManagerMockRecorder) RegisterResource(resource interface{}) *gomock.Call
RegisterResource indicates an expected call of RegisterResource.
func (*MockDataSourceManagerMockRecorder) UnregisterResource ¶
func (mr *MockDataSourceManagerMockRecorder) UnregisterResource(resource interface{}) *gomock.Call
UnregisterResource indicates an expected call of UnregisterResource.
type MockTableMetaCache ¶
type MockTableMetaCache struct {
// contains filtered or unexported fields
}
MockTableMetaCache is a mock of TableMetaCache interface.
func NewMockTableMetaCache ¶
func NewMockTableMetaCache(ctrl *gomock.Controller) *MockTableMetaCache
NewMockTableMetaCache creates a new mock instance.
func (*MockTableMetaCache) Destroy ¶
func (m *MockTableMetaCache) Destroy() error
Destroy mocks base method.
func (*MockTableMetaCache) EXPECT ¶
func (m *MockTableMetaCache) EXPECT() *MockTableMetaCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTableMetaCache) GetTableMeta ¶
func (m *MockTableMetaCache) GetTableMeta(ctx context.Context, dbName, table string) (*types.TableMeta, error)
GetTableMeta mocks base method.
type MockTableMetaCacheMockRecorder ¶
type MockTableMetaCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockTableMetaCacheMockRecorder is the mock recorder for MockTableMetaCache.
func (*MockTableMetaCacheMockRecorder) Destroy ¶
func (mr *MockTableMetaCacheMockRecorder) Destroy() *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockTableMetaCacheMockRecorder) GetTableMeta ¶
func (mr *MockTableMetaCacheMockRecorder) GetTableMeta(ctx, dbName, table interface{}) *gomock.Call
GetTableMeta indicates an expected call of GetTableMeta.
func (*MockTableMetaCacheMockRecorder) Init ¶
func (mr *MockTableMetaCacheMockRecorder) Init(ctx, conn interface{}) *gomock.Call
Init indicates an expected call of Init.
type MockTestDriver ¶
type MockTestDriver struct {
// contains filtered or unexported fields
}
MockTestDriver is a mock of TestDriver interface.
func NewMockTestDriver ¶
func NewMockTestDriver(ctrl *gomock.Controller) *MockTestDriver
NewMockTestDriver creates a new mock instance.
func (*MockTestDriver) EXPECT ¶
func (m *MockTestDriver) EXPECT() *MockTestDriverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTestDriverConn ¶
type MockTestDriverConn struct {
// contains filtered or unexported fields
}
MockTestDriverConn is a mock of TestDriverConn interface.
func NewMockTestDriverConn ¶
func NewMockTestDriverConn(ctrl *gomock.Controller) *MockTestDriverConn
NewMockTestDriverConn creates a new mock instance.
func (*MockTestDriverConn) Begin ¶
func (m *MockTestDriverConn) Begin() (driver.Tx, error)
Begin mocks base method.
func (*MockTestDriverConn) Close ¶
func (m *MockTestDriverConn) Close() error
Close mocks base method.
func (*MockTestDriverConn) EXPECT ¶
func (m *MockTestDriverConn) EXPECT() *MockTestDriverConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTestDriverConn) ExecContext ¶
func (m *MockTestDriverConn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
ExecContext mocks base method.
func (*MockTestDriverConn) Ping ¶
func (m *MockTestDriverConn) Ping(ctx context.Context) error
Ping mocks base method.
func (*MockTestDriverConn) Prepare ¶
func (m *MockTestDriverConn) Prepare(query string) (driver.Stmt, error)
Prepare mocks base method.
func (*MockTestDriverConn) PrepareContext ¶
PrepareContext mocks base method.
func (*MockTestDriverConn) QueryContext ¶
func (m *MockTestDriverConn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
QueryContext mocks base method.
func (*MockTestDriverConn) ResetSession ¶
func (m *MockTestDriverConn) ResetSession(ctx context.Context) error
ResetSession mocks base method.
type MockTestDriverConnMockRecorder ¶
type MockTestDriverConnMockRecorder struct {
// contains filtered or unexported fields
}
MockTestDriverConnMockRecorder is the mock recorder for MockTestDriverConn.
func (*MockTestDriverConnMockRecorder) Begin ¶
func (mr *MockTestDriverConnMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin.
func (*MockTestDriverConnMockRecorder) BeginTx ¶
func (mr *MockTestDriverConnMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call
BeginTx indicates an expected call of BeginTx.
func (*MockTestDriverConnMockRecorder) Close ¶
func (mr *MockTestDriverConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockTestDriverConnMockRecorder) Exec ¶
func (mr *MockTestDriverConnMockRecorder) Exec(query, args interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockTestDriverConnMockRecorder) ExecContext ¶
func (mr *MockTestDriverConnMockRecorder) ExecContext(ctx, query, args interface{}) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MockTestDriverConnMockRecorder) Ping ¶
func (mr *MockTestDriverConnMockRecorder) Ping(ctx interface{}) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockTestDriverConnMockRecorder) Prepare ¶
func (mr *MockTestDriverConnMockRecorder) Prepare(query interface{}) *gomock.Call
Prepare indicates an expected call of Prepare.
func (*MockTestDriverConnMockRecorder) PrepareContext ¶
func (mr *MockTestDriverConnMockRecorder) PrepareContext(ctx, query interface{}) *gomock.Call
PrepareContext indicates an expected call of PrepareContext.
func (*MockTestDriverConnMockRecorder) Query ¶
func (mr *MockTestDriverConnMockRecorder) Query(query, args interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockTestDriverConnMockRecorder) QueryContext ¶
func (mr *MockTestDriverConnMockRecorder) QueryContext(ctx, query, args interface{}) *gomock.Call
QueryContext indicates an expected call of QueryContext.
func (*MockTestDriverConnMockRecorder) ResetSession ¶
func (mr *MockTestDriverConnMockRecorder) ResetSession(ctx interface{}) *gomock.Call
ResetSession indicates an expected call of ResetSession.
type MockTestDriverConnector ¶
type MockTestDriverConnector struct {
// contains filtered or unexported fields
}
MockTestDriverConnector is a mock of TestDriverConnector interface.
func NewMockTestDriverConnector ¶
func NewMockTestDriverConnector(ctrl *gomock.Controller) *MockTestDriverConnector
NewMockTestDriverConnector creates a new mock instance.
func (*MockTestDriverConnector) Driver ¶
func (m *MockTestDriverConnector) Driver() driver.Driver
Driver mocks base method.
func (*MockTestDriverConnector) EXPECT ¶
func (m *MockTestDriverConnector) EXPECT() *MockTestDriverConnectorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTestDriverConnectorMockRecorder ¶
type MockTestDriverConnectorMockRecorder struct {
// contains filtered or unexported fields
}
MockTestDriverConnectorMockRecorder is the mock recorder for MockTestDriverConnector.
func (*MockTestDriverConnectorMockRecorder) Connect ¶
func (mr *MockTestDriverConnectorMockRecorder) Connect(arg0 interface{}) *gomock.Call
Connect indicates an expected call of Connect.
func (*MockTestDriverConnectorMockRecorder) Driver ¶
func (mr *MockTestDriverConnectorMockRecorder) Driver() *gomock.Call
Driver indicates an expected call of Driver.
type MockTestDriverMockRecorder ¶
type MockTestDriverMockRecorder struct {
// contains filtered or unexported fields
}
MockTestDriverMockRecorder is the mock recorder for MockTestDriver.
func (*MockTestDriverMockRecorder) Open ¶
func (mr *MockTestDriverMockRecorder) Open(name interface{}) *gomock.Call
Open indicates an expected call of Open.
type MockTestDriverRows ¶
type MockTestDriverRows struct {
// contains filtered or unexported fields
}
MockTestDriverRows is a mock of TestDriverRows interface.
func NewMockTestDriverRows ¶
func NewMockTestDriverRows(ctrl *gomock.Controller) *MockTestDriverRows
NewMockTestDriverRows creates a new mock instance.
func (*MockTestDriverRows) Close ¶
func (m *MockTestDriverRows) Close() error
Close mocks base method.
func (*MockTestDriverRows) Columns ¶
func (m *MockTestDriverRows) Columns() []string
Columns mocks base method.
func (*MockTestDriverRows) EXPECT ¶
func (m *MockTestDriverRows) EXPECT() *MockTestDriverRowsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTestDriverRowsMockRecorder ¶
type MockTestDriverRowsMockRecorder struct {
// contains filtered or unexported fields
}
MockTestDriverRowsMockRecorder is the mock recorder for MockTestDriverRows.
func (*MockTestDriverRowsMockRecorder) Close ¶
func (mr *MockTestDriverRowsMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockTestDriverRowsMockRecorder) Columns ¶
func (mr *MockTestDriverRowsMockRecorder) Columns() *gomock.Call
Columns indicates an expected call of Columns.
func (*MockTestDriverRowsMockRecorder) Next ¶
func (mr *MockTestDriverRowsMockRecorder) Next(dest interface{}) *gomock.Call
Next indicates an expected call of Next.
type MockTestDriverStmt ¶
type MockTestDriverStmt struct {
// contains filtered or unexported fields
}
MockTestDriverStmt is a mock of TestDriverStmt interface.
func NewMockTestDriverStmt ¶
func NewMockTestDriverStmt(ctrl *gomock.Controller) *MockTestDriverStmt
NewMockTestDriverStmt creates a new mock instance.
func (*MockTestDriverStmt) Close ¶
func (m *MockTestDriverStmt) Close() error
Close mocks base method.
func (*MockTestDriverStmt) EXPECT ¶
func (m *MockTestDriverStmt) EXPECT() *MockTestDriverStmtMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTestDriverStmt) ExecContext ¶
func (m *MockTestDriverStmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
ExecContext mocks base method.
func (*MockTestDriverStmt) NumInput ¶
func (m *MockTestDriverStmt) NumInput() int
NumInput mocks base method.
func (*MockTestDriverStmt) QueryContext ¶
func (m *MockTestDriverStmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
QueryContext mocks base method.
type MockTestDriverStmtMockRecorder ¶
type MockTestDriverStmtMockRecorder struct {
// contains filtered or unexported fields
}
MockTestDriverStmtMockRecorder is the mock recorder for MockTestDriverStmt.
func (*MockTestDriverStmtMockRecorder) Close ¶
func (mr *MockTestDriverStmtMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockTestDriverStmtMockRecorder) Exec ¶
func (mr *MockTestDriverStmtMockRecorder) Exec(args interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockTestDriverStmtMockRecorder) ExecContext ¶
func (mr *MockTestDriverStmtMockRecorder) ExecContext(ctx, args interface{}) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MockTestDriverStmtMockRecorder) NumInput ¶
func (mr *MockTestDriverStmtMockRecorder) NumInput() *gomock.Call
NumInput indicates an expected call of NumInput.
func (*MockTestDriverStmtMockRecorder) Query ¶
func (mr *MockTestDriverStmtMockRecorder) Query(args interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockTestDriverStmtMockRecorder) QueryContext ¶
func (mr *MockTestDriverStmtMockRecorder) QueryContext(ctx, args interface{}) *gomock.Call
QueryContext indicates an expected call of QueryContext.
type MockTestDriverTx ¶
type MockTestDriverTx struct {
// contains filtered or unexported fields
}
MockTestDriverTx is a mock of TestDriverTx interface.
func NewMockTestDriverTx ¶
func NewMockTestDriverTx(ctrl *gomock.Controller) *MockTestDriverTx
NewMockTestDriverTx creates a new mock instance.
func (*MockTestDriverTx) Commit ¶
func (m *MockTestDriverTx) Commit() error
Commit mocks base method.
func (*MockTestDriverTx) EXPECT ¶
func (m *MockTestDriverTx) EXPECT() *MockTestDriverTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTestDriverTx) Rollback ¶
func (m *MockTestDriverTx) Rollback() error
Rollback mocks base method.
type MockTestDriverTxMockRecorder ¶
type MockTestDriverTxMockRecorder struct {
// contains filtered or unexported fields
}
MockTestDriverTxMockRecorder is the mock recorder for MockTestDriverTx.
func (*MockTestDriverTxMockRecorder) Commit ¶
func (mr *MockTestDriverTxMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockTestDriverTxMockRecorder) Rollback ¶
func (mr *MockTestDriverTxMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback.
type TestDriver ¶
type TestDriverConn ¶
type TestDriverConn interface { driver.Conn driver.ConnBeginTx driver.Pinger driver.ConnPrepareContext driver.Queryer driver.QueryerContext driver.Execer driver.ExecerContext driver.SessionResetter }
type TestDriverConnector ¶
type TestDriverRows ¶
type TestDriverStmt ¶
type TestDriverStmt interface { driver.Stmt driver.StmtQueryContext driver.StmtExecContext }