mock

package
v0.0.0-...-36feab7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDatabase

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

MockDatabase is a mock of Database interface.

func NewMockDatabase

func NewMockDatabase(ctrl *gomock.Controller) *MockDatabase

NewMockDatabase creates a new mock instance.

func (*MockDatabase) EXPECT

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

func (*MockDatabase) Execute

func (m *MockDatabase) Execute(ctx context.Context, query string, args ...interface{}) (int64, error)

Execute mocks base method.

func (*MockDatabase) ExecuteTx

func (m *MockDatabase) ExecuteTx(ctx context.Context, query string, args ...interface{}) (int64, database.SaveFunc, error)

ExecuteTx mocks base method.

func (*MockDatabase) Multiple

func (m *MockDatabase) Multiple(ctx context.Context, query string, args ...interface{}) (database.Rows, error)

Multiple mocks base method.

func (*MockDatabase) Ping

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

Ping mocks base method.

func (*MockDatabase) Single

func (m *MockDatabase) Single(ctx context.Context, query string, args ...interface{}) (database.Row, error)

Single mocks base method.

type MockDatabaseMockRecorder

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

MockDatabaseMockRecorder is the mock recorder for MockDatabase.

func (*MockDatabaseMockRecorder) Execute

func (mr *MockDatabaseMockRecorder) Execute(ctx, query interface{}, args ...interface{}) *gomock.Call

Execute indicates an expected call of Execute.

func (*MockDatabaseMockRecorder) ExecuteTx

func (mr *MockDatabaseMockRecorder) ExecuteTx(ctx, query interface{}, args ...interface{}) *gomock.Call

ExecuteTx indicates an expected call of ExecuteTx.

func (*MockDatabaseMockRecorder) Multiple

func (mr *MockDatabaseMockRecorder) Multiple(ctx, query interface{}, args ...interface{}) *gomock.Call

Multiple indicates an expected call of Multiple.

func (*MockDatabaseMockRecorder) Ping

func (mr *MockDatabaseMockRecorder) Ping(ctx interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockDatabaseMockRecorder) Single

func (mr *MockDatabaseMockRecorder) Single(ctx, query interface{}, args ...interface{}) *gomock.Call

Single indicates an expected call of Single.

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(dest ...interface{}) 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(dest ...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) EXPECT

func (m *MockRows) EXPECT() *MockRowsMockRecorder

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

func (*MockRows) Err

func (m *MockRows) Err() error

Err mocks base method.

func (*MockRows) Next

func (m *MockRows) Next() bool

Next mocks base method.

func (*MockRows) Scan

func (m *MockRows) Scan(dest ...interface{}) error

Scan mocks base method.

type MockRowsMockRecorder

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

MockRowsMockRecorder is the mock recorder for MockRows.

func (*MockRowsMockRecorder) Err

func (mr *MockRowsMockRecorder) Err() *gomock.Call

Err indicates an expected call of Err.

func (*MockRowsMockRecorder) Next

func (mr *MockRowsMockRecorder) Next() *gomock.Call

Next indicates an expected call of Next.

func (*MockRowsMockRecorder) Scan

func (mr *MockRowsMockRecorder) Scan(dest ...interface{}) *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