Documentation ¶
Overview ¶
Package mocksql is a generated GoMock package.
Package mocksql is a generated GoMock package.
Index ¶
- type MockConfig
- type MockConfigMockRecorder
- type MockDB
- func (m *MockDB) Begin(arg0 context.Context, arg1 *sql0.TxOptions) (sql.Tx, error)
- func (m *MockDB) Close() error
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (sql0.Result, error)
- func (m *MockDB) Ping(arg0 context.Context) error
- func (m *MockDB) Prepare(arg0 context.Context, arg1 string) (sql.Stmt, error)
- func (m *MockDB) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (*sql0.Rows, error)
- func (m *MockDB) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) *sql0.Row
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) Begin(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Close() *gomock.Call
- func (mr *MockDBMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Ping(arg0 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Prepare(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- type MockStmt
- func (m *MockStmt) Close() error
- func (m *MockStmt) EXPECT() *MockStmtMockRecorder
- func (m *MockStmt) Exec(arg0 context.Context, arg1 ...interface{}) (sql0.Result, error)
- func (m *MockStmt) Query(arg0 context.Context, arg1 ...interface{}) (*sql0.Rows, error)
- func (m *MockStmt) QueryRow(arg0 context.Context, arg1 ...interface{}) *sql0.Row
- type MockStmtMockRecorder
- func (mr *MockStmtMockRecorder) Close() *gomock.Call
- func (mr *MockStmtMockRecorder) Exec(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockStmtMockRecorder) Query(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockStmtMockRecorder) QueryRow(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- type MockTx
- func (m *MockTx) Commit() error
- func (m *MockTx) EXPECT() *MockTxMockRecorder
- func (m *MockTx) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (sql0.Result, error)
- func (m *MockTx) Prepare(arg0 context.Context, arg1 string) (sql.Stmt, error)
- func (m *MockTx) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (*sql0.Rows, error)
- func (m *MockTx) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) *sql0.Row
- func (m *MockTx) Rollback() error
- func (m *MockTx) Stmt(arg0 context.Context, arg1 sql.Stmt) sql.Stmt
- type MockTxMockRecorder
- func (mr *MockTxMockRecorder) Commit() *gomock.Call
- func (mr *MockTxMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Prepare(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Rollback() *gomock.Call
- func (mr *MockTxMockRecorder) Stmt(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfig ¶
type MockConfig struct {
// contains filtered or unexported fields
}
MockConfig is a mock of Config interface.
func NewMockConfig ¶
func NewMockConfig(ctrl *gomock.Controller) *MockConfig
NewMockConfig creates a new mock instance.
func (*MockConfig) DriverName ¶
func (m *MockConfig) DriverName() string
DriverName mocks base method.
func (*MockConfig) EXPECT ¶
func (m *MockConfig) EXPECT() *MockConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockConfigMockRecorder ¶
type MockConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigMockRecorder is the mock recorder for MockConfig.
func (*MockConfigMockRecorder) DSN ¶
func (mr *MockConfigMockRecorder) DSN() *gomock.Call
DSN indicates an expected call of DSN.
func (*MockConfigMockRecorder) DriverName ¶
func (mr *MockConfigMockRecorder) DriverName() *gomock.Call
DriverName indicates an expected call of DriverName.
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(arg0, arg1 interface{}) *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) Exec ¶
func (mr *MockDBMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockDBMockRecorder) Ping ¶
func (mr *MockDBMockRecorder) Ping(arg0 interface{}) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockDBMockRecorder) Prepare ¶
func (mr *MockDBMockRecorder) Prepare(arg0, arg1 interface{}) *gomock.Call
Prepare indicates an expected call of Prepare.
func (*MockDBMockRecorder) Query ¶
func (mr *MockDBMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockDBMockRecorder) QueryRow ¶
func (mr *MockDBMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
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{}, arg1 ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockStmtMockRecorder) Query ¶
func (mr *MockStmtMockRecorder) Query(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockStmtMockRecorder) QueryRow ¶
func (mr *MockStmtMockRecorder) QueryRow(arg0 interface{}, arg1 ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
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, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockTxMockRecorder) Prepare ¶
func (mr *MockTxMockRecorder) Prepare(arg0, arg1 interface{}) *gomock.Call
Prepare indicates an expected call of Prepare.
func (*MockTxMockRecorder) Query ¶
func (mr *MockTxMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockTxMockRecorder) QueryRow ¶
func (mr *MockTxMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*MockTxMockRecorder) Rollback ¶
func (mr *MockTxMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback.
func (*MockTxMockRecorder) Stmt ¶
func (mr *MockTxMockRecorder) Stmt(arg0, arg1 interface{}) *gomock.Call
Stmt indicates an expected call of Stmt.