mocks

package
v3.13.5 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks is a generated GoMock package.

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

func (m *Database) Create(arg0 context.Context, arg1 string, arg2 ...any) (uint64, error)

Create mocks base method.

func (*Database) DoAtomic

func (m *Database) DoAtomic(arg0 context.Context, arg1 func(context.Context) error) error

DoAtomic mocks base method.

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.

func (*Database) List

func (m *Database) List(arg0 context.Context, arg1 func(pgx.Rows) error, arg2 string, arg3 ...any) error

List mocks base method.

func (*Database) One

func (m *Database) One(arg0 context.Context, arg1 string, arg2 ...any) error

One 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.

func (*DatabaseMockRecorder) List

func (mr *DatabaseMockRecorder) List(arg0, arg1, arg2 any, arg3 ...any) *gomock.Call

List indicates an expected call of List.

func (*DatabaseMockRecorder) One

func (mr *DatabaseMockRecorder) One(arg0, arg1 any, arg2 ...any) *gomock.Call

One indicates an expected call of One.

type Row

type Row struct {
	// contains filtered or unexported fields
}

Row is a mock of Row interface.

func NewRow

func NewRow(ctrl *gomock.Controller) *Row

NewRow creates a new mock instance.

func (*Row) EXPECT

func (m *Row) EXPECT() *RowMockRecorder

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

func (*Row) Scan

func (m *Row) Scan(dest ...any) error

Scan mocks base method.

type RowMockRecorder

type RowMockRecorder struct {
	// contains filtered or unexported fields
}

RowMockRecorder is the mock recorder for Row.

func (*RowMockRecorder) Scan

func (mr *RowMockRecorder) Scan(dest ...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