mocks

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: pgmq.go

Generated by this command:

mockgen --source=pgmq.go --destination mocks/pgmq.go --package=mocks

Package mocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: github.com/jackc/pgx/v5 (interfaces: Row)

Generated by this command:

mockgen --destination mocks/row.go --package=mocks --build_flags=--mod=mod github.com/jackc/pgx/v5 Row

Package mocks is a generated GoMock package.

Index

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) Close

func (m *MockDB) Close()

Close mocks base method.

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDB) Exec

func (m *MockDB) Exec(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error)

Exec mocks base method.

func (*MockDB) Ping added in v0.4.0

func (m *MockDB) Ping(ctx context.Context) error

Ping mocks base method.

func (*MockDB) Query

func (m *MockDB) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)

Query mocks base method.

func (*MockDB) QueryRow

func (m *MockDB) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row

QueryRow mocks base method.

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.

func (*MockDBMockRecorder) Query

func (mr *MockDBMockRecorder) Query(ctx, sql any, args ...any) *gomock.Call

Query indicates an expected call of Query.

func (*MockDBMockRecorder) QueryRow

func (mr *MockDBMockRecorder) QueryRow(ctx, sql any, args ...any) *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.

func (*MockRow) Scan

func (m *MockRow) Scan(arg0 ...any) error

Scan mocks base method.

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 ...any) *gomock.Call

Scan indicates an expected call of Scan.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL