Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type Database
- func (m *Database) Create(arg0 context.Context, arg1 string, arg2 ...any) (uint64, error)
- func (m *Database) DoAtomic(arg0 context.Context, arg1 func(context.Context) error) error
- func (m *Database) EXPECT() *DatabaseMockRecorder
- func (m *Database) Get(arg0 context.Context, arg1 func(pgx.Row) error, arg2 string, arg3 ...any) error
- func (m *Database) List(arg0 context.Context, arg1 func(pgx.Rows) error, arg2 string, arg3 ...any) error
- func (m *Database) One(arg0 context.Context, arg1 string, arg2 ...any) error
- type DatabaseMockRecorder
- func (mr *DatabaseMockRecorder) Create(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *DatabaseMockRecorder) DoAtomic(arg0, arg1 any) *gomock.Call
- func (mr *DatabaseMockRecorder) Get(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call
- func (mr *DatabaseMockRecorder) List(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call
- func (mr *DatabaseMockRecorder) One(arg0, arg1 any, arg2 ...any) *gomock.Call
- type Row
- type RowMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database is a mock of Database interface.
func NewDatabase ¶
func NewDatabase(ctrl *gomock.Controller) *Database
NewDatabase creates a new mock instance.
func (*Database) EXPECT ¶
func (m *Database) EXPECT() *DatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Database) Get ¶
func (m *Database) Get(arg0 context.Context, arg1 func(pgx.Row) error, arg2 string, arg3 ...any) error
Get mocks base method.
type DatabaseMockRecorder ¶
type DatabaseMockRecorder struct {
// contains filtered or unexported fields
}
DatabaseMockRecorder is the mock recorder for Database.
func (*DatabaseMockRecorder) Create ¶
func (mr *DatabaseMockRecorder) Create(arg0, arg1 any, arg2 ...any) *gomock.Call
Create indicates an expected call of Create.
func (*DatabaseMockRecorder) DoAtomic ¶
func (mr *DatabaseMockRecorder) DoAtomic(arg0, arg1 any) *gomock.Call
DoAtomic indicates an expected call of DoAtomic.
func (*DatabaseMockRecorder) Get ¶
func (mr *DatabaseMockRecorder) Get(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call
Get indicates an expected call of Get.
type Row ¶
type Row struct {
// contains filtered or unexported fields
}
Row is a mock of Row interface.
func (*Row) EXPECT ¶
func (m *Row) EXPECT() *RowMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type RowMockRecorder ¶
type RowMockRecorder struct {
// contains filtered or unexported fields
}
RowMockRecorder is the mock recorder for Row.
Click to show internal directories.
Click to hide internal directories.