mock

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

Package mock is a generated GoMock package.

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 MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) BeginTx

func (m *MockClient) BeginTx(ctx context.Context) (mysql.Transaction, error)

BeginTx mocks base method.

func (*MockClient) Close

func (m *MockClient) Close() error

Close mocks base method.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) ExecContext

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

ExecContext mocks base method.

func (*MockClient) QueryContext

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

QueryContext mocks base method.

func (*MockClient) QueryRowContext

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

QueryRowContext mocks base method.

func (*MockClient) RunInTransaction

func (m *MockClient) RunInTransaction(ctx context.Context, tx mysql.Transaction, f func() error) error

RunInTransaction mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) BeginTx

func (mr *MockClientMockRecorder) BeginTx(ctx interface{}) *gomock.Call

BeginTx indicates an expected call of BeginTx.

func (*MockClientMockRecorder) Close

func (mr *MockClientMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockClientMockRecorder) ExecContext

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

ExecContext indicates an expected call of ExecContext.

func (*MockClientMockRecorder) QueryContext

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

QueryContext indicates an expected call of QueryContext.

func (*MockClientMockRecorder) QueryRowContext

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

QueryRowContext indicates an expected call of QueryRowContext.

func (*MockClientMockRecorder) RunInTransaction

func (mr *MockClientMockRecorder) RunInTransaction(ctx, tx, f interface{}) *gomock.Call

RunInTransaction indicates an expected call of RunInTransaction.

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 ...interface{}) (mysql.Result, error)

ExecContext 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 interface{}, args ...interface{}) *gomock.Call

ExecContext indicates an expected call of ExecContext.

type MockQueryExecer

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

MockQueryExecer is a mock of QueryExecer interface.

func NewMockQueryExecer

func NewMockQueryExecer(ctrl *gomock.Controller) *MockQueryExecer

NewMockQueryExecer creates a new mock instance.

func (*MockQueryExecer) EXPECT

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

func (*MockQueryExecer) ExecContext

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

ExecContext mocks base method.

func (*MockQueryExecer) QueryContext

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

QueryContext mocks base method.

func (*MockQueryExecer) QueryRowContext

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

QueryRowContext mocks base method.

type MockQueryExecerMockRecorder

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

MockQueryExecerMockRecorder is the mock recorder for MockQueryExecer.

func (*MockQueryExecerMockRecorder) ExecContext

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

ExecContext indicates an expected call of ExecContext.

func (*MockQueryExecerMockRecorder) QueryContext

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

QueryContext indicates an expected call of QueryContext.

func (*MockQueryExecerMockRecorder) QueryRowContext

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

QueryRowContext indicates an expected call of QueryRowContext.

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

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

QueryContext mocks base method.

func (*MockQueryer) QueryRowContext

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

QueryRowContext mocks base method.

type MockQueryerMockRecorder

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

MockQueryerMockRecorder is the mock recorder for MockQueryer.

func (*MockQueryerMockRecorder) QueryContext

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

QueryContext indicates an expected call of QueryContext.

func (*MockQueryerMockRecorder) QueryRowContext

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

QueryRowContext indicates an expected call of QueryRowContext.

type MockResult

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

MockResult is a mock of Result interface.

func NewMockResult

func NewMockResult(ctrl *gomock.Controller) *MockResult

NewMockResult creates a new mock instance.

func (*MockResult) EXPECT

func (m *MockResult) EXPECT() *MockResultMockRecorder

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

func (*MockResult) LastInsertId

func (m *MockResult) LastInsertId() (int64, error)

LastInsertId mocks base method.

func (*MockResult) RowsAffected

func (m *MockResult) RowsAffected() (int64, error)

RowsAffected mocks base method.

type MockResultMockRecorder

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

MockResultMockRecorder is the mock recorder for MockResult.

func (*MockResultMockRecorder) LastInsertId

func (mr *MockResultMockRecorder) LastInsertId() *gomock.Call

LastInsertId indicates an expected call of LastInsertId.

func (*MockResultMockRecorder) RowsAffected

func (mr *MockResultMockRecorder) RowsAffected() *gomock.Call

RowsAffected indicates an expected call of RowsAffected.

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

func (m *MockRow) Err() error

Err mocks base method.

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

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

Err indicates an expected call of Err.

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

func (m *MockRows) Close() error

Close mocks base method.

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

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

Close indicates an expected call of Close.

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.

type MockTransaction

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

MockTransaction is a mock of Transaction interface.

func NewMockTransaction

func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction

NewMockTransaction creates a new mock instance.

func (*MockTransaction) Commit

func (m *MockTransaction) Commit() error

Commit mocks base method.

func (*MockTransaction) EXPECT

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

func (*MockTransaction) ExecContext

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

ExecContext mocks base method.

func (*MockTransaction) QueryContext

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

QueryContext mocks base method.

func (*MockTransaction) QueryRowContext

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

QueryRowContext mocks base method.

func (*MockTransaction) Rollback

func (m *MockTransaction) Rollback() error

Rollback mocks base method.

type MockTransactionMockRecorder

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

MockTransactionMockRecorder is the mock recorder for MockTransaction.

func (*MockTransactionMockRecorder) Commit

func (mr *MockTransactionMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockTransactionMockRecorder) ExecContext

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

ExecContext indicates an expected call of ExecContext.

func (*MockTransactionMockRecorder) QueryContext

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

QueryContext indicates an expected call of QueryContext.

func (*MockTransactionMockRecorder) QueryRowContext

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

QueryRowContext indicates an expected call of QueryRowContext.

func (*MockTransactionMockRecorder) Rollback

func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call

Rollback indicates an expected call of Rollback.

type MockWherePart

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

MockWherePart is a mock of WherePart interface.

func NewMockWherePart

func NewMockWherePart(ctrl *gomock.Controller) *MockWherePart

NewMockWherePart creates a new mock instance.

func (*MockWherePart) EXPECT

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

func (*MockWherePart) SQLString

func (m *MockWherePart) SQLString() (string, []interface{})

SQLString mocks base method.

type MockWherePartMockRecorder

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

MockWherePartMockRecorder is the mock recorder for MockWherePart.

func (*MockWherePartMockRecorder) SQLString

func (mr *MockWherePartMockRecorder) SQLString() *gomock.Call

SQLString indicates an expected call of SQLString.

Jump to

Keyboard shortcuts

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