Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockDB
- func (m *MockDB) Close()
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) Exec(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error)
- func (m *MockDB) Ping(ctx context.Context) error
- func (m *MockDB) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
- func (m *MockDB) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) Close() *gomock.Call
- func (mr *MockDBMockRecorder) Exec(ctx, sql any, args ...any) *gomock.Call
- func (mr *MockDBMockRecorder) Ping(ctx any) *gomock.Call
- func (mr *MockDBMockRecorder) Query(ctx, sql any, args ...any) *gomock.Call
- func (mr *MockDBMockRecorder) QueryRow(ctx, sql any, args ...any) *gomock.Call
- type MockRow
- type MockRowMockRecorder
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.
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB.
func (*MockDBMockRecorder) Close ¶
func (mr *MockDBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDBMockRecorder) Exec ¶
func (mr *MockDBMockRecorder) Exec(ctx, sql any, args ...any) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockDBMockRecorder) Ping ¶ added in v0.4.0
func (mr *MockDBMockRecorder) Ping(ctx any) *gomock.Call
Ping indicates an expected call of Ping.
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.
Click to show internal directories.
Click to hide internal directories.