Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockConn
- type MockConnBeginTx
- type MockConnBeginTxMockRecorder
- type MockConnMockRecorder
- type MockDriver
- type MockDriverMockRecorder
- type MockExecerContext
- type MockExecerContextMockRecorder
- type MockQueryerContext
- type MockQueryerContextMockRecorder
- type MockResult
- type MockResultMockRecorder
- type MockRows
- type MockRowsMockRecorder
- type MockStmt
- type MockStmtMockRecorder
- type MockTx
- type MockTxMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConn ¶
type MockConn struct {
// contains filtered or unexported fields
}
MockConn is a mock of Conn interface
func NewMockConn ¶
func NewMockConn(ctrl *gomock.Controller) *MockConn
NewMockConn creates a new mock instance
func (*MockConn) EXPECT ¶
func (m *MockConn) EXPECT() *MockConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockConnBeginTx ¶
type MockConnBeginTx struct {
// contains filtered or unexported fields
}
MockConnBeginTx is a mock of ConnBeginTx interface
func NewMockConnBeginTx ¶
func NewMockConnBeginTx(ctrl *gomock.Controller) *MockConnBeginTx
NewMockConnBeginTx creates a new mock instance
func (*MockConnBeginTx) EXPECT ¶
func (m *MockConnBeginTx) EXPECT() *MockConnBeginTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockConnBeginTxMockRecorder ¶
type MockConnBeginTxMockRecorder struct {
// contains filtered or unexported fields
}
MockConnBeginTxMockRecorder is the mock recorder for MockConnBeginTx
func (*MockConnBeginTxMockRecorder) BeginTx ¶
func (mr *MockConnBeginTxMockRecorder) BeginTx(arg0, arg1 interface{}) *gomock.Call
BeginTx indicates an expected call of BeginTx
type MockConnMockRecorder ¶
type MockConnMockRecorder struct {
// contains filtered or unexported fields
}
MockConnMockRecorder is the mock recorder for MockConn
func (*MockConnMockRecorder) Begin ¶
func (mr *MockConnMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin
func (*MockConnMockRecorder) Close ¶
func (mr *MockConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockConnMockRecorder) Prepare ¶
func (mr *MockConnMockRecorder) Prepare(arg0 interface{}) *gomock.Call
Prepare indicates an expected call of Prepare
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 MockExecerContext ¶
type MockExecerContext struct {
// contains filtered or unexported fields
}
MockExecerContext is a mock of ExecerContext interface
func NewMockExecerContext ¶
func NewMockExecerContext(ctrl *gomock.Controller) *MockExecerContext
NewMockExecerContext creates a new mock instance
func (*MockExecerContext) EXPECT ¶
func (m *MockExecerContext) EXPECT() *MockExecerContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockExecerContext) ExecContext ¶
func (m *MockExecerContext) ExecContext(arg0 context.Context, arg1 string, arg2 []driver.NamedValue) (driver.Result, error)
ExecContext mocks base method
type MockExecerContextMockRecorder ¶
type MockExecerContextMockRecorder struct {
// contains filtered or unexported fields
}
MockExecerContextMockRecorder is the mock recorder for MockExecerContext
func (*MockExecerContextMockRecorder) ExecContext ¶
func (mr *MockExecerContextMockRecorder) ExecContext(arg0, arg1, arg2 interface{}) *gomock.Call
ExecContext indicates an expected call of ExecContext
type MockQueryerContext ¶
type MockQueryerContext struct {
// contains filtered or unexported fields
}
MockQueryerContext is a mock of QueryerContext interface
func NewMockQueryerContext ¶
func NewMockQueryerContext(ctrl *gomock.Controller) *MockQueryerContext
NewMockQueryerContext creates a new mock instance
func (*MockQueryerContext) EXPECT ¶
func (m *MockQueryerContext) EXPECT() *MockQueryerContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockQueryerContext) QueryContext ¶
func (m *MockQueryerContext) QueryContext(arg0 context.Context, arg1 string, arg2 []driver.NamedValue) (driver.Rows, error)
QueryContext mocks base method
type MockQueryerContextMockRecorder ¶
type MockQueryerContextMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryerContextMockRecorder is the mock recorder for MockQueryerContext
func (*MockQueryerContextMockRecorder) QueryContext ¶
func (mr *MockQueryerContextMockRecorder) QueryContext(arg0, arg1, arg2 interface{}) *gomock.Call
QueryContext indicates an expected call of QueryContext
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) 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) Columns ¶
func (mr *MockRowsMockRecorder) Columns() *gomock.Call
Columns indicates an expected call of Columns
func (*MockRowsMockRecorder) Next ¶
func (mr *MockRowsMockRecorder) Next(arg0 interface{}) *gomock.Call
Next indicates an expected call of Next
type MockStmt ¶
type MockStmt struct {
// contains filtered or unexported fields
}
MockStmt is a mock of Stmt interface
func NewMockStmt ¶
func NewMockStmt(ctrl *gomock.Controller) *MockStmt
NewMockStmt creates a new mock instance
func (*MockStmt) EXPECT ¶
func (m *MockStmt) EXPECT() *MockStmtMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockStmtMockRecorder ¶
type MockStmtMockRecorder struct {
// contains filtered or unexported fields
}
MockStmtMockRecorder is the mock recorder for MockStmt
func (*MockStmtMockRecorder) Close ¶
func (mr *MockStmtMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockStmtMockRecorder) Exec ¶
func (mr *MockStmtMockRecorder) Exec(arg0 interface{}) *gomock.Call
Exec indicates an expected call of Exec
func (*MockStmtMockRecorder) NumInput ¶
func (mr *MockStmtMockRecorder) NumInput() *gomock.Call
NumInput indicates an expected call of NumInput
func (*MockStmtMockRecorder) Query ¶
func (mr *MockStmtMockRecorder) Query(arg0 interface{}) *gomock.Call
Query indicates an expected call of Query
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) Rollback ¶
func (mr *MockTxMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback