Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockInterface
- func (m *MockInterface) Begin(ctx context.Context) (pgx.Tx, error)
- func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
- func (m *MockInterface) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
- func (m *MockInterface) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
- func (m *MockInterface) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
- type MockInterfaceMockRecorder
- func (mr *MockInterfaceMockRecorder) Begin(ctx interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Exec(ctx, sql interface{}, arguments ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
- func (mr *MockInterfaceMockRecorder) QueryRow(ctx, sql interface{}, args ...interface{}) *gomock.Call
- type MockRow
- type MockRowMockRecorder
- type MockRows
- func (m *MockRows) Close()
- func (m *MockRows) CommandTag() pgconn.CommandTag
- func (m *MockRows) EXPECT() *MockRowsMockRecorder
- func (m *MockRows) Err() error
- func (m *MockRows) FieldDescriptions() []pgproto3.FieldDescription
- func (m *MockRows) Next() bool
- func (m *MockRows) RawValues() [][]byte
- func (m *MockRows) Scan(arg0 ...interface{}) error
- func (m *MockRows) Values() ([]interface{}, error)
- type MockRowsMockRecorder
- func (mr *MockRowsMockRecorder) Close() *gomock.Call
- func (mr *MockRowsMockRecorder) CommandTag() *gomock.Call
- func (mr *MockRowsMockRecorder) Err() *gomock.Call
- func (mr *MockRowsMockRecorder) FieldDescriptions() *gomock.Call
- func (mr *MockRowsMockRecorder) Next() *gomock.Call
- func (mr *MockRowsMockRecorder) RawValues() *gomock.Call
- func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
- func (mr *MockRowsMockRecorder) Values() *gomock.Call
- type MockTx
- func (m *MockTx) Begin(arg0 context.Context) (pgx.Tx, error)
- func (m *MockTx) BeginFunc(arg0 context.Context, arg1 func(pgx.Tx) error) error
- func (m *MockTx) Commit(arg0 context.Context) error
- func (m *MockTx) Conn() *pgx.Conn
- func (m *MockTx) CopyFrom(arg0 context.Context, arg1 pgx.Identifier, arg2 []string, ...) (int64, error)
- func (m *MockTx) EXPECT() *MockTxMockRecorder
- func (m *MockTx) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)
- func (m *MockTx) LargeObjects() pgx.LargeObjects
- func (m *MockTx) Prepare(arg0 context.Context, arg1, arg2 string) (*pgconn.StatementDescription, error)
- func (m *MockTx) Query(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgx.Rows, error)
- func (m *MockTx) QueryFunc(arg0 context.Context, arg1 string, arg2, arg3 []interface{}, ...) (pgconn.CommandTag, error)
- func (m *MockTx) QueryRow(arg0 context.Context, arg1 string, arg2 ...interface{}) pgx.Row
- func (m *MockTx) Rollback(arg0 context.Context) error
- func (m *MockTx) SendBatch(arg0 context.Context, arg1 *pgx.Batch) pgx.BatchResults
- type MockTxMockRecorder
- func (mr *MockTxMockRecorder) Begin(arg0 interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) BeginFunc(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Commit(arg0 interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Conn() *gomock.Call
- func (mr *MockTxMockRecorder) CopyFrom(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) LargeObjects() *gomock.Call
- func (mr *MockTxMockRecorder) Prepare(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) QueryFunc(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) Rollback(arg0 interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) SendBatch(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInterface ¶
type MockInterface struct {
// contains filtered or unexported fields
}
MockInterface is a mock of Interface interface.
func NewMockInterface ¶
func NewMockInterface(ctrl *gomock.Controller) *MockInterface
NewMockInterface creates a new mock instance.
func (*MockInterface) EXPECT ¶
func (m *MockInterface) EXPECT() *MockInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInterface) Exec ¶
func (m *MockInterface) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
Exec mocks base method.
type MockInterfaceMockRecorder ¶
type MockInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockInterfaceMockRecorder is the mock recorder for MockInterface.
func (*MockInterfaceMockRecorder) Begin ¶
func (mr *MockInterfaceMockRecorder) Begin(ctx interface{}) *gomock.Call
Begin indicates an expected call of Begin.
func (*MockInterfaceMockRecorder) Exec ¶
func (mr *MockInterfaceMockRecorder) Exec(ctx, sql interface{}, arguments ...interface{}) *gomock.Call
Exec indicates an expected call of Exec.
func (*MockInterfaceMockRecorder) Query ¶
func (mr *MockInterfaceMockRecorder) Query(ctx, sql interface{}, args ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockInterfaceMockRecorder) QueryRow ¶
func (mr *MockInterfaceMockRecorder) 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.
type MockRows ¶
type MockRows struct {
// contains filtered or unexported fields
}
MockRows is a mock of Rows interface.
func NewMockRows ¶
func NewMockRows(ctrl *gomock.Controller) *MockRows
NewMockRows creates a new mock instance.
func (*MockRows) CommandTag ¶
func (m *MockRows) CommandTag() pgconn.CommandTag
CommandTag mocks base method.
func (*MockRows) EXPECT ¶
func (m *MockRows) EXPECT() *MockRowsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRows) FieldDescriptions ¶
func (m *MockRows) FieldDescriptions() []pgproto3.FieldDescription
FieldDescriptions mocks base method.
type MockRowsMockRecorder ¶
type MockRowsMockRecorder struct {
// contains filtered or unexported fields
}
MockRowsMockRecorder is the mock recorder for MockRows.
func (*MockRowsMockRecorder) Close ¶
func (mr *MockRowsMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRowsMockRecorder) CommandTag ¶
func (mr *MockRowsMockRecorder) CommandTag() *gomock.Call
CommandTag indicates an expected call of CommandTag.
func (*MockRowsMockRecorder) Err ¶
func (mr *MockRowsMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
func (*MockRowsMockRecorder) FieldDescriptions ¶
func (mr *MockRowsMockRecorder) FieldDescriptions() *gomock.Call
FieldDescriptions indicates an expected call of FieldDescriptions.
func (*MockRowsMockRecorder) Next ¶
func (mr *MockRowsMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockRowsMockRecorder) RawValues ¶
func (mr *MockRowsMockRecorder) RawValues() *gomock.Call
RawValues indicates an expected call of RawValues.
func (*MockRowsMockRecorder) Scan ¶
func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Scan indicates an expected call of Scan.
func (*MockRowsMockRecorder) Values ¶
func (mr *MockRowsMockRecorder) Values() *gomock.Call
Values indicates an expected call of Values.
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(arg0 context.Context, arg1 pgx.Identifier, arg2 []string, arg3 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) Exec ¶
func (m *MockTx) Exec(arg0 context.Context, arg1 string, arg2 ...interface{}) (pgconn.CommandTag, error)
Exec mocks base method.
func (*MockTx) LargeObjects ¶
func (m *MockTx) LargeObjects() pgx.LargeObjects
LargeObjects mocks base method.
func (*MockTx) Prepare ¶
func (m *MockTx) Prepare(arg0 context.Context, arg1, arg2 string) (*pgconn.StatementDescription, error)
Prepare mocks base method.
func (*MockTx) QueryFunc ¶
func (m *MockTx) QueryFunc(arg0 context.Context, arg1 string, arg2, arg3 []interface{}, arg4 func(pgx.QueryFuncRow) error) (pgconn.CommandTag, error)
QueryFunc 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(arg0 interface{}) *gomock.Call
Begin indicates an expected call of Begin.
func (*MockTxMockRecorder) BeginFunc ¶
func (mr *MockTxMockRecorder) BeginFunc(arg0, arg1 interface{}) *gomock.Call
BeginFunc indicates an expected call of BeginFunc.
func (*MockTxMockRecorder) Commit ¶
func (mr *MockTxMockRecorder) Commit(arg0 interface{}) *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(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
CopyFrom indicates an expected call of CopyFrom.
func (*MockTxMockRecorder) Exec ¶
func (mr *MockTxMockRecorder) Exec(arg0, arg1 interface{}, arg2 ...interface{}) *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(arg0, arg1, arg2 interface{}) *gomock.Call
Prepare indicates an expected call of Prepare.
func (*MockTxMockRecorder) Query ¶
func (mr *MockTxMockRecorder) Query(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
Query indicates an expected call of Query.
func (*MockTxMockRecorder) QueryFunc ¶
func (mr *MockTxMockRecorder) QueryFunc(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
QueryFunc indicates an expected call of QueryFunc.
func (*MockTxMockRecorder) QueryRow ¶
func (mr *MockTxMockRecorder) QueryRow(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
QueryRow indicates an expected call of QueryRow.
func (*MockTxMockRecorder) Rollback ¶
func (mr *MockTxMockRecorder) Rollback(arg0 interface{}) *gomock.Call
Rollback indicates an expected call of Rollback.
func (*MockTxMockRecorder) SendBatch ¶
func (mr *MockTxMockRecorder) SendBatch(arg0, arg1 interface{}) *gomock.Call
SendBatch indicates an expected call of SendBatch.