Documentation
¶
Overview ¶
Package mock_postgres is a generated GoMock package.
Index ¶
- type MockQueryer
- func (m *MockQueryer) Begin(ctx context.Context) (pgx.Tx, error)
- func (m *MockQueryer) EXPECT() *MockQueryerMockRecorder
- func (m *MockQueryer) Exec(ctx context.Context, query string, args ...any) (pgconn.CommandTag, error)
- func (m *MockQueryer) Query(ctx context.Context, query string, args ...any) (pgx.Rows, error)
- func (m *MockQueryer) QueryRow(ctx context.Context, query string, args ...any) pgx.Row
- type MockQueryerMockRecorder
- func (mr *MockQueryerMockRecorder) Begin(ctx any) *gomock.Call
- func (mr *MockQueryerMockRecorder) Exec(ctx, query any, args ...any) *gomock.Call
- func (mr *MockQueryerMockRecorder) Query(ctx, query any, args ...any) *gomock.Call
- func (mr *MockQueryerMockRecorder) QueryRow(ctx, query any, args ...any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockQueryer ¶
type MockQueryer struct {
// contains filtered or unexported fields
}
MockQueryer is a mock of Queryer interface.
func NewMockQueryer ¶
func NewMockQueryer(ctrl *gomock.Controller) *MockQueryer
NewMockQueryer creates a new mock instance.
func (*MockQueryer) EXPECT ¶
func (m *MockQueryer) EXPECT() *MockQueryerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQueryer) Exec ¶
func (m *MockQueryer) Exec(ctx context.Context, query string, args ...any) (pgconn.CommandTag, error)
Exec mocks base method.
type MockQueryerMockRecorder ¶
type MockQueryerMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryerMockRecorder is the mock recorder for MockQueryer.
func (*MockQueryerMockRecorder) Begin ¶
func (mr *MockQueryerMockRecorder) Begin(ctx any) *gomock.Call
Begin indicates an expected call of Begin.
func (*MockQueryerMockRecorder) Exec ¶
func (mr *MockQueryerMockRecorder) Exec(ctx, query any, args ...any) *gomock.Call
Exec indicates an expected call of Exec.
Click to show internal directories.
Click to hide internal directories.