Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockDB
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) Eject() *sql.DB
- func (m *MockDB) ExecContext(ctx kontext.Context, queryKey, query string, args ...interface{}) (db.Result, exception.Exception)
- func (m *MockDB) Ping(ktx kontext.Context) exception.Exception
- func (m *MockDB) QueryContext(ctx kontext.Context, queryKey, query string, args ...interface{}) (db.Rows, exception.Exception)
- func (m *MockDB) QueryRowContext(ctx kontext.Context, queryKey, query string, args ...interface{}) db.Row
- func (m *MockDB) Transaction(ctx kontext.Context, transactionKey string, f func(db.TX) exception.Exception) exception.Exception
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) Eject() *gomock.Call
- func (mr *MockDBMockRecorder) ExecContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Ping(ktx interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) QueryContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) QueryRowContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Transaction(ctx, transactionKey, f interface{}) *gomock.Call
- type MockResult
- type MockResultMockRecorder
- type MockRow
- type MockRowMockRecorder
- type MockRows
- func (m *MockRows) Close() exception.Exception
- func (m *MockRows) Columns() ([]string, exception.Exception)
- func (m *MockRows) EXPECT() *MockRowsMockRecorder
- func (m *MockRows) Err() exception.Exception
- func (m *MockRows) Next() bool
- func (m *MockRows) NextResultSet() bool
- func (m *MockRows) Scan(dest ...interface{}) exception.Exception
- type MockRowsMockRecorder
- func (mr *MockRowsMockRecorder) Close() *gomock.Call
- func (mr *MockRowsMockRecorder) Columns() *gomock.Call
- func (mr *MockRowsMockRecorder) Err() *gomock.Call
- func (mr *MockRowsMockRecorder) Next() *gomock.Call
- func (mr *MockRowsMockRecorder) NextResultSet() *gomock.Call
- func (mr *MockRowsMockRecorder) Scan(dest ...interface{}) *gomock.Call
- type MockTX
- func (m *MockTX) EXPECT() *MockTXMockRecorder
- func (m *MockTX) ExecContext(ctx kontext.Context, queryKey, query string, args ...interface{}) (db.Result, exception.Exception)
- func (m *MockTX) QueryContext(ctx kontext.Context, queryKey, query string, args ...interface{}) (db.Rows, exception.Exception)
- func (m *MockTX) QueryRowContext(ctx kontext.Context, queryKey, query string, args ...interface{}) db.Row
- type MockTXMockRecorder
- func (mr *MockTXMockRecorder) ExecContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockTXMockRecorder) QueryContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
- func (mr *MockTXMockRecorder) QueryRowContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
- type MockTransactionable
- type MockTransactionableMockRecorder
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.
func (*MockDB) ExecContext ¶
func (m *MockDB) ExecContext(ctx kontext.Context, queryKey, query string, args ...interface{}) (db.Result, exception.Exception)
ExecContext mocks base method.
func (*MockDB) QueryContext ¶
func (m *MockDB) QueryContext(ctx kontext.Context, queryKey, query string, args ...interface{}) (db.Rows, exception.Exception)
QueryContext mocks base method.
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB.
func (*MockDBMockRecorder) Eject ¶ added in v1.3.1
func (mr *MockDBMockRecorder) Eject() *gomock.Call
Eject indicates an expected call of Eject.
func (*MockDBMockRecorder) ExecContext ¶
func (mr *MockDBMockRecorder) ExecContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MockDBMockRecorder) Ping ¶
func (mr *MockDBMockRecorder) Ping(ktx interface{}) *gomock.Call
Ping indicates an expected call of Ping.
func (*MockDBMockRecorder) QueryContext ¶
func (mr *MockDBMockRecorder) QueryContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
QueryContext indicates an expected call of QueryContext.
func (*MockDBMockRecorder) QueryRowContext ¶
func (mr *MockDBMockRecorder) QueryRowContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
QueryRowContext indicates an expected call of QueryRowContext.
func (*MockDBMockRecorder) Transaction ¶
func (mr *MockDBMockRecorder) Transaction(ctx, transactionKey, f interface{}) *gomock.Call
Transaction indicates an expected call of Transaction.
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, exception.Exception)
LastInsertId mocks base method.
func (*MockResult) RowsAffected ¶
func (m *MockResult) RowsAffected() (int64, exception.Exception)
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 MockRow ¶
type MockRow struct {
// contains filtered or unexported fields
}
MockRow is a mock of Row interface.
func NewMockRow ¶
func NewMockRow(ctrl *gomock.Controller) *MockRow
NewMockRow creates a new mock instance.
func (*MockRow) EXPECT ¶
func (m *MockRow) EXPECT() *MockRowMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRowMockRecorder ¶
type MockRowMockRecorder struct {
// contains filtered or unexported fields
}
MockRowMockRecorder is the mock recorder for MockRow.
func (*MockRowMockRecorder) Scan ¶
func (mr *MockRowMockRecorder) Scan(dest ...interface{}) *gomock.Call
Scan indicates an expected call of Scan.
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.
func (*MockRows) NextResultSet ¶
NextResultSet 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) 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) NextResultSet ¶
func (mr *MockRowsMockRecorder) NextResultSet() *gomock.Call
NextResultSet indicates an expected call of NextResultSet.
func (*MockRowsMockRecorder) Scan ¶
func (mr *MockRowsMockRecorder) Scan(dest ...interface{}) *gomock.Call
Scan indicates an expected call of Scan.
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.
func (*MockTX) ExecContext ¶
func (m *MockTX) ExecContext(ctx kontext.Context, queryKey, query string, args ...interface{}) (db.Result, exception.Exception)
ExecContext mocks base method.
type MockTXMockRecorder ¶
type MockTXMockRecorder struct {
// contains filtered or unexported fields
}
MockTXMockRecorder is the mock recorder for MockTX.
func (*MockTXMockRecorder) ExecContext ¶
func (mr *MockTXMockRecorder) ExecContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
ExecContext indicates an expected call of ExecContext.
func (*MockTXMockRecorder) QueryContext ¶
func (mr *MockTXMockRecorder) QueryContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
QueryContext indicates an expected call of QueryContext.
func (*MockTXMockRecorder) QueryRowContext ¶
func (mr *MockTXMockRecorder) QueryRowContext(ctx, queryKey, query interface{}, args ...interface{}) *gomock.Call
QueryRowContext indicates an expected call of QueryRowContext.
type MockTransactionable ¶
type MockTransactionable struct {
// contains filtered or unexported fields
}
MockTransactionable is a mock of Transactionable interface.
func NewMockTransactionable ¶
func NewMockTransactionable(ctrl *gomock.Controller) *MockTransactionable
NewMockTransactionable creates a new mock instance.
func (*MockTransactionable) EXPECT ¶
func (m *MockTransactionable) EXPECT() *MockTransactionableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockTransactionableMockRecorder ¶
type MockTransactionableMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionableMockRecorder is the mock recorder for MockTransactionable.
func (*MockTransactionableMockRecorder) Transaction ¶
func (mr *MockTransactionableMockRecorder) Transaction(ctx, transactionKey, f interface{}) *gomock.Call
Transaction indicates an expected call of Transaction.