mock_repository

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: MIT Imports: 5 Imported by: ? 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 mock_repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBeginner

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

MockBeginner is a mock of Beginner interface.

func NewMockBeginner

func NewMockBeginner(ctrl *gomock.Controller) *MockBeginner

NewMockBeginner creates a new mock instance.

func (*MockBeginner) BeginTxx

func (m *MockBeginner) BeginTxx(ctx context.Context, opts *sql.TxOptions) (*sqlx.Tx, error)

BeginTxx mocks base method.

func (*MockBeginner) EXPECT

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

type MockBeginnerMockRecorder

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

MockBeginnerMockRecorder is the mock recorder for MockBeginner.

func (*MockBeginnerMockRecorder) BeginTxx

func (mr *MockBeginnerMockRecorder) BeginTxx(ctx, opts any) *gomock.Call

BeginTxx indicates an expected call of BeginTxx.

type MockExecer

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

MockExecer is a mock of Execer interface.

func NewMockExecer

func NewMockExecer(ctrl *gomock.Controller) *MockExecer

NewMockExecer creates a new mock instance.

func (*MockExecer) EXPECT

func (m *MockExecer) EXPECT() *MockExecerMockRecorder

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

func (*MockExecer) ExecContext

func (m *MockExecer) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)

ExecContext mocks base method.

func (*MockExecer) NamedExecContext

func (m *MockExecer) NamedExecContext(ctx context.Context, query string, arg any) (sql.Result, error)

NamedExecContext mocks base method.

type MockExecerMockRecorder

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

MockExecerMockRecorder is the mock recorder for MockExecer.

func (*MockExecerMockRecorder) ExecContext

func (mr *MockExecerMockRecorder) ExecContext(ctx, query any, args ...any) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockExecerMockRecorder) NamedExecContext

func (mr *MockExecerMockRecorder) NamedExecContext(ctx, query, arg any) *gomock.Call

NamedExecContext indicates an expected call of NamedExecContext.

type MockPreparer

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

MockPreparer is a mock of Preparer interface.

func NewMockPreparer

func NewMockPreparer(ctrl *gomock.Controller) *MockPreparer

NewMockPreparer creates a new mock instance.

func (*MockPreparer) EXPECT

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

func (*MockPreparer) PreparexContext

func (m *MockPreparer) PreparexContext(ctx context.Context, query string) (*sqlx.Stmt, error)

PreparexContext mocks base method.

type MockPreparerMockRecorder

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

MockPreparerMockRecorder is the mock recorder for MockPreparer.

func (*MockPreparerMockRecorder) PreparexContext

func (mr *MockPreparerMockRecorder) PreparexContext(ctx, query any) *gomock.Call

PreparexContext indicates an expected call of PreparexContext.

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

func (m *MockQueryer) GetContext(ctx context.Context, dest any, query string, args ...any) error

GetContext mocks base method.

func (*MockQueryer) PreparexContext

func (m *MockQueryer) PreparexContext(ctx context.Context, query string) (*sqlx.Stmt, error)

PreparexContext mocks base method.

func (*MockQueryer) QueryRowxContext

func (m *MockQueryer) QueryRowxContext(ctx context.Context, query string, args ...any) *sqlx.Row

QueryRowxContext mocks base method.

func (*MockQueryer) QueryxContext

func (m *MockQueryer) QueryxContext(ctx context.Context, query string, args ...any) (*sqlx.Rows, error)

QueryxContext mocks base method.

func (*MockQueryer) SelectContext

func (m *MockQueryer) SelectContext(ctx context.Context, dest any, query string, args ...any) error

SelectContext mocks base method.

type MockQueryerMockRecorder

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

MockQueryerMockRecorder is the mock recorder for MockQueryer.

func (*MockQueryerMockRecorder) GetContext

func (mr *MockQueryerMockRecorder) GetContext(ctx, dest, query any, args ...any) *gomock.Call

GetContext indicates an expected call of GetContext.

func (*MockQueryerMockRecorder) PreparexContext

func (mr *MockQueryerMockRecorder) PreparexContext(ctx, query any) *gomock.Call

PreparexContext indicates an expected call of PreparexContext.

func (*MockQueryerMockRecorder) QueryRowxContext

func (mr *MockQueryerMockRecorder) QueryRowxContext(ctx, query any, args ...any) *gomock.Call

QueryRowxContext indicates an expected call of QueryRowxContext.

func (*MockQueryerMockRecorder) QueryxContext

func (mr *MockQueryerMockRecorder) QueryxContext(ctx, query any, args ...any) *gomock.Call

QueryxContext indicates an expected call of QueryxContext.

func (*MockQueryerMockRecorder) SelectContext

func (mr *MockQueryerMockRecorder) SelectContext(ctx, dest, query any, args ...any) *gomock.Call

SelectContext indicates an expected call of SelectContext.

Jump to

Keyboard shortcuts

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