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) 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 interface{}, args ...interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
- func (mr *MockDBMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *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 interface{}, args ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockDBMockRecorder) Query ¶
func (mr *MockDBMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockDBMockRecorder) QueryRow ¶
func (mr *MockDBMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
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(arg0 ...interface{}) *gomock.Call
Scan indicates an expected call of Scan.