Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockIDB
- func (m *MockIDB) Begin(ctx context.Context) (pgx.Tx, error)
- func (m *MockIDB) BeginTx(ctx context.Context, options pgx.TxOptions) (pgx.Tx, error)
- func (m *MockIDB) EXPECT() *MockIDBMockRecorder
- func (m *MockIDB) Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error)
- func (m *MockIDB) Ping(ctx context.Context) error
- func (m *MockIDB) Query(ctx context.Context, sql string, arguments ...any) (pgx.Rows, error)
- func (m *MockIDB) QueryRow(ctx context.Context, sql string, arguments ...any) pgx.Row
- type MockIDBMockRecorder
- func (mr *MockIDBMockRecorder) Begin(ctx any) *gomock.Call
- func (mr *MockIDBMockRecorder) BeginTx(ctx, options any) *gomock.Call
- func (mr *MockIDBMockRecorder) Exec(ctx, sql any, arguments ...any) *gomock.Call
- func (mr *MockIDBMockRecorder) Ping(ctx any) *gomock.Call
- func (mr *MockIDBMockRecorder) Query(ctx, sql any, arguments ...any) *gomock.Call
- func (mr *MockIDBMockRecorder) QueryRow(ctx, sql any, arguments ...any) *gomock.Call
- type MockTx
- func (m *MockTx) Begin(ctx context.Context) (pgx.Tx, error)
- func (m *MockTx) Commit(ctx context.Context) error
- func (m *MockTx) Conn() *pgx.Conn
- func (m *MockTx) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, ...) (int64, error)
- func (m *MockTx) EXPECT() *MockTxMockRecorder
- func (m *MockTx) Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error)
- func (m *MockTx) LargeObjects() pgx.LargeObjects
- func (m *MockTx) Prepare(ctx context.Context, name, sql string) (*pgconn.StatementDescription, error)
- func (m *MockTx) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
- func (m *MockTx) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row
- func (m *MockTx) Rollback(ctx context.Context) error
- func (m *MockTx) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
- type MockTxMockRecorder
- func (mr *MockTxMockRecorder) Begin(ctx any) *gomock.Call
- func (mr *MockTxMockRecorder) Commit(ctx any) *gomock.Call
- func (mr *MockTxMockRecorder) Conn() *gomock.Call
- func (mr *MockTxMockRecorder) CopyFrom(ctx, tableName, columnNames, rowSrc any) *gomock.Call
- func (mr *MockTxMockRecorder) Exec(ctx, sql any, arguments ...any) *gomock.Call
- func (mr *MockTxMockRecorder) LargeObjects() *gomock.Call
- func (mr *MockTxMockRecorder) Prepare(ctx, name, sql any) *gomock.Call
- func (mr *MockTxMockRecorder) Query(ctx, sql any, args ...any) *gomock.Call
- func (mr *MockTxMockRecorder) QueryRow(ctx, sql any, args ...any) *gomock.Call
- func (mr *MockTxMockRecorder) Rollback(ctx any) *gomock.Call
- func (mr *MockTxMockRecorder) SendBatch(ctx, b any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIDB ¶
type MockIDB struct {
// contains filtered or unexported fields
}
MockIDB is a mock of IDB interface.
func NewMockIDB ¶
func NewMockIDB(ctrl *gomock.Controller) *MockIDB
NewMockIDB creates a new mock instance.
func (*MockIDB) EXPECT ¶
func (m *MockIDB) EXPECT() *MockIDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIDB) Exec ¶
func (m *MockIDB) Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error)
Exec mocks base method.
type MockIDBMockRecorder ¶
type MockIDBMockRecorder struct {
// contains filtered or unexported fields
}
MockIDBMockRecorder is the mock recorder for MockIDB.
func (*MockIDBMockRecorder) Begin ¶
func (mr *MockIDBMockRecorder) Begin(ctx any) *gomock.Call
Begin indicates an expected call of Begin.
func (*MockIDBMockRecorder) BeginTx ¶
func (mr *MockIDBMockRecorder) BeginTx(ctx, options any) *gomock.Call
BeginTx indicates an expected call of BeginTx.
func (*MockIDBMockRecorder) Exec ¶
func (mr *MockIDBMockRecorder) Exec(ctx, sql any, arguments ...any) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockIDBMockRecorder) Ping ¶
func (mr *MockIDBMockRecorder) Ping(ctx any) *gomock.Call
Ping indicates an expected call of Ping.
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) CopyFrom ¶
func (m *MockTx) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)
CopyFrom mocks base method.
func (*MockTx) EXPECT ¶
func (m *MockTx) EXPECT() *MockTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTx) LargeObjects ¶
func (m *MockTx) LargeObjects() pgx.LargeObjects
LargeObjects mocks base method.
func (*MockTx) Prepare ¶
func (m *MockTx) Prepare(ctx context.Context, name, sql string) (*pgconn.StatementDescription, error)
Prepare mocks base method.
type MockTxMockRecorder ¶
type MockTxMockRecorder struct {
// contains filtered or unexported fields
}
MockTxMockRecorder is the mock recorder for MockTx.
func (*MockTxMockRecorder) Begin ¶
func (mr *MockTxMockRecorder) Begin(ctx any) *gomock.Call
Begin indicates an expected call of Begin.
func (*MockTxMockRecorder) Commit ¶
func (mr *MockTxMockRecorder) Commit(ctx any) *gomock.Call
Commit indicates an expected call of Commit.
func (*MockTxMockRecorder) Conn ¶
func (mr *MockTxMockRecorder) Conn() *gomock.Call
Conn indicates an expected call of Conn.
func (*MockTxMockRecorder) CopyFrom ¶
func (mr *MockTxMockRecorder) CopyFrom(ctx, tableName, columnNames, rowSrc any) *gomock.Call
CopyFrom indicates an expected call of CopyFrom.
func (*MockTxMockRecorder) Exec ¶
func (mr *MockTxMockRecorder) Exec(ctx, sql any, arguments ...any) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockTxMockRecorder) LargeObjects ¶
func (mr *MockTxMockRecorder) LargeObjects() *gomock.Call
LargeObjects indicates an expected call of LargeObjects.
func (*MockTxMockRecorder) Prepare ¶
func (mr *MockTxMockRecorder) Prepare(ctx, name, sql any) *gomock.Call
Prepare indicates an expected call of Prepare.
func (*MockTxMockRecorder) Query ¶
func (mr *MockTxMockRecorder) Query(ctx, sql any, args ...any) *gomock.Call
Query indicates an expected call of Query.
func (*MockTxMockRecorder) QueryRow ¶
func (mr *MockTxMockRecorder) QueryRow(ctx, sql any, args ...any) *gomock.Call
QueryRow indicates an expected call of QueryRow.