mocks

package
v2.21.10 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

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 Follower

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

Follower is a mock of Follower interface.

func NewFollower

func NewFollower(ctrl *gomock.Controller) *Follower

NewFollower creates a new mock instance.

func (*Follower) EXPECT

func (m *Follower) EXPECT() *FollowerMockRecorder

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

func (*Follower) Get

func (m *Follower) Get(dest interface{}, query string, args ...interface{}) error

Get mocks base method.

func (*Follower) GetContext

func (m *Follower) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

GetContext mocks base method.

func (*Follower) NamedQuery

func (m *Follower) NamedQuery(query string, arg interface{}) (*sqlx.Rows, error)

NamedQuery mocks base method.

func (*Follower) NamedQueryContext

func (m *Follower) NamedQueryContext(ctx context.Context, query string, arg interface{}) (*sqlx.Rows, error)

NamedQueryContext mocks base method.

func (*Follower) Query

func (m *Follower) Query(query string, args ...interface{}) (*sql.Rows, error)

Query mocks base method.

func (*Follower) QueryContext

func (m *Follower) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

QueryContext mocks base method.

func (*Follower) QueryRow

func (m *Follower) QueryRow(query string, args ...interface{}) *sql.Row

QueryRow mocks base method.

func (*Follower) QueryRowContext

func (m *Follower) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row

QueryRowContext mocks base method.

func (*Follower) QueryRowxContext

func (m *Follower) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *sqlx.Row

QueryRowxContext mocks base method.

func (*Follower) QueryxContext

func (m *Follower) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)

QueryxContext mocks base method.

func (*Follower) Select

func (m *Follower) Select(dest interface{}, query string, args ...interface{}) error

Select mocks base method.

func (*Follower) SelectContext

func (m *Follower) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error

SelectContext mocks base method.

type FollowerMockRecorder

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

FollowerMockRecorder is the mock recorder for Follower.

func (*FollowerMockRecorder) Get

func (mr *FollowerMockRecorder) Get(dest, query interface{}, args ...interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*FollowerMockRecorder) GetContext

func (mr *FollowerMockRecorder) GetContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call

GetContext indicates an expected call of GetContext.

func (*FollowerMockRecorder) NamedQuery

func (mr *FollowerMockRecorder) NamedQuery(query, arg interface{}) *gomock.Call

NamedQuery indicates an expected call of NamedQuery.

func (*FollowerMockRecorder) NamedQueryContext

func (mr *FollowerMockRecorder) NamedQueryContext(ctx, query, arg interface{}) *gomock.Call

NamedQueryContext indicates an expected call of NamedQueryContext.

func (*FollowerMockRecorder) Query

func (mr *FollowerMockRecorder) Query(query interface{}, args ...interface{}) *gomock.Call

Query indicates an expected call of Query.

func (*FollowerMockRecorder) QueryContext

func (mr *FollowerMockRecorder) QueryContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryContext indicates an expected call of QueryContext.

func (*FollowerMockRecorder) QueryRow

func (mr *FollowerMockRecorder) QueryRow(query interface{}, args ...interface{}) *gomock.Call

QueryRow indicates an expected call of QueryRow.

func (*FollowerMockRecorder) QueryRowContext

func (mr *FollowerMockRecorder) QueryRowContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryRowContext indicates an expected call of QueryRowContext.

func (*FollowerMockRecorder) QueryRowxContext

func (mr *FollowerMockRecorder) QueryRowxContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryRowxContext indicates an expected call of QueryRowxContext.

func (*FollowerMockRecorder) QueryxContext

func (mr *FollowerMockRecorder) QueryxContext(ctx, query interface{}, args ...interface{}) *gomock.Call

QueryxContext indicates an expected call of QueryxContext.

func (*FollowerMockRecorder) Select

func (mr *FollowerMockRecorder) Select(dest, query interface{}, args ...interface{}) *gomock.Call

Select indicates an expected call of Select.

func (*FollowerMockRecorder) SelectContext

func (mr *FollowerMockRecorder) SelectContext(ctx, dest, query interface{}, args ...interface{}) *gomock.Call

SelectContext indicates an expected call of SelectContext.

type Master

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

Master is a mock of Master interface.

func NewMaster

func NewMaster(ctrl *gomock.Controller) *Master

NewMaster creates a new mock instance.

func (*Master) Begin

func (m *Master) Begin() (*sql.Tx, error)

Begin mocks base method.

func (*Master) BeginTx

func (m *Master) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

BeginTx mocks base method.

func (*Master) BindNamed

func (m *Master) BindNamed(query string, arg interface{}) (string, []interface{}, error)

BindNamed mocks base method.

func (*Master) EXPECT

func (m *Master) EXPECT() *MasterMockRecorder

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

func (*Master) Exec

func (m *Master) Exec(query string, args ...interface{}) (sql.Result, error)

Exec mocks base method.

func (*Master) ExecContext

func (m *Master) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

ExecContext mocks base method.

func (*Master) NamedExec

func (m *Master) NamedExec(query string, arg interface{}) (sql.Result, error)

NamedExec mocks base method.

func (*Master) NamedExecContext

func (m *Master) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)

NamedExecContext mocks base method.

func (*Master) Rebind

func (m *Master) Rebind(sql string) string

Rebind mocks base method.

type MasterMockRecorder

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

MasterMockRecorder is the mock recorder for Master.

func (*MasterMockRecorder) Begin

func (mr *MasterMockRecorder) Begin() *gomock.Call

Begin indicates an expected call of Begin.

func (*MasterMockRecorder) BeginTx

func (mr *MasterMockRecorder) BeginTx(ctx, opts interface{}) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MasterMockRecorder) BindNamed

func (mr *MasterMockRecorder) BindNamed(query, arg interface{}) *gomock.Call

BindNamed indicates an expected call of BindNamed.

func (*MasterMockRecorder) Exec

func (mr *MasterMockRecorder) Exec(query interface{}, args ...interface{}) *gomock.Call

Exec indicates an expected call of Exec.

func (*MasterMockRecorder) ExecContext

func (mr *MasterMockRecorder) ExecContext(ctx, query interface{}, args ...interface{}) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MasterMockRecorder) NamedExec

func (mr *MasterMockRecorder) NamedExec(query, arg interface{}) *gomock.Call

NamedExec indicates an expected call of NamedExec.

func (*MasterMockRecorder) NamedExecContext

func (mr *MasterMockRecorder) NamedExecContext(ctx, query, arg interface{}) *gomock.Call

NamedExecContext indicates an expected call of NamedExecContext.

func (*MasterMockRecorder) Rebind

func (mr *MasterMockRecorder) Rebind(sql interface{}) *gomock.Call

Rebind indicates an expected call of Rebind.

Jump to

Keyboard shortcuts

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