mock

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 6 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 MockDB

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

MockDB is a mock of DB interface.

func NewMockDB

func NewMockDB(ctrl *gomock.Controller) *MockDB

NewMockDB creates a new mock instance.

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

func (*MockDB) Eject added in v1.3.1

func (m *MockDB) Eject() *sql.DB

Eject mocks base method.

func (*MockDB) ExecContext

func (m *MockDB) ExecContext(ctx kontext.Context, queryKey, query string, args ...interface{}) (db.Result, exception.Exception)

ExecContext mocks base method.

func (*MockDB) Ping

func (m *MockDB) Ping(ktx kontext.Context) exception.Exception

Ping mocks base method.

func (*MockDB) QueryContext

func (m *MockDB) QueryContext(ctx kontext.Context, queryKey, query string, args ...interface{}) (db.Rows, exception.Exception)

QueryContext mocks base method.

func (*MockDB) QueryRowContext

func (m *MockDB) QueryRowContext(ctx kontext.Context, queryKey, query string, args ...interface{}) db.Row

QueryRowContext mocks base method.

func (*MockDB) Transaction

func (m *MockDB) Transaction(ctx kontext.Context, transactionKey string, f func(db.TX) exception.Exception) exception.Exception

Transaction mocks base method.

type MockDBMockRecorder

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

MockDBMockRecorder is the mock recorder for MockDB.

func (*MockDBMockRecorder) Eject added in v1.3.1

func (mr *MockDBMockRecorder) Eject() *gomock.Call

Eject indicates an expected call of Eject.

func (*MockDBMockRecorder) ExecContext

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

ExecContext indicates an expected call of ExecContext.

func (*MockDBMockRecorder) Ping

func (mr *MockDBMockRecorder) Ping(ktx interface{}) *gomock.Call

Ping indicates an expected call of Ping.

func (*MockDBMockRecorder) QueryContext

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

QueryContext indicates an expected call of QueryContext.

func (*MockDBMockRecorder) QueryRowContext

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

QueryRowContext indicates an expected call of QueryRowContext.

func (*MockDBMockRecorder) Transaction

func (mr *MockDBMockRecorder) Transaction(ctx, transactionKey, f interface{}) *gomock.Call

Transaction indicates an expected call of Transaction.

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, exception.Exception)

LastInsertId mocks base method.

func (*MockResult) RowsAffected

func (m *MockResult) RowsAffected() (int64, exception.Exception)

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

func (m *MockRow) Scan(dest ...interface{}) exception.Exception

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

func (m *MockRows) Close() exception.Exception

Close mocks base method.

func (*MockRows) Columns

func (m *MockRows) Columns() ([]string, exception.Exception)

Columns 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() exception.Exception

Err mocks base method.

func (*MockRows) Next

func (m *MockRows) Next() bool

Next mocks base method.

func (*MockRows) NextResultSet

func (m *MockRows) NextResultSet() bool

NextResultSet mocks base method.

func (*MockRows) Scan

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

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

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

Columns indicates an expected call of Columns.

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

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

NextResultSet indicates an expected call of NextResultSet.

func (*MockRowsMockRecorder) Scan

func (mr *MockRowsMockRecorder) Scan(dest ...interface{}) *gomock.Call

Scan indicates an expected call of Scan.

type MockTX

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

MockTX is a mock of TX interface.

func NewMockTX

func NewMockTX(ctrl *gomock.Controller) *MockTX

NewMockTX creates a new mock instance.

func (*MockTX) EXPECT

func (m *MockTX) EXPECT() *MockTXMockRecorder

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

func (*MockTX) ExecContext

func (m *MockTX) ExecContext(ctx kontext.Context, queryKey, query string, args ...interface{}) (db.Result, exception.Exception)

ExecContext mocks base method.

func (*MockTX) QueryContext

func (m *MockTX) QueryContext(ctx kontext.Context, queryKey, query string, args ...interface{}) (db.Rows, exception.Exception)

QueryContext mocks base method.

func (*MockTX) QueryRowContext

func (m *MockTX) QueryRowContext(ctx kontext.Context, queryKey, query string, args ...interface{}) db.Row

QueryRowContext mocks base method.

type MockTXMockRecorder

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

MockTXMockRecorder is the mock recorder for MockTX.

func (*MockTXMockRecorder) ExecContext

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

ExecContext indicates an expected call of ExecContext.

func (*MockTXMockRecorder) QueryContext

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

QueryContext indicates an expected call of QueryContext.

func (*MockTXMockRecorder) QueryRowContext

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

QueryRowContext indicates an expected call of QueryRowContext.

type MockTransactionable

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

MockTransactionable is a mock of Transactionable interface.

func NewMockTransactionable

func NewMockTransactionable(ctrl *gomock.Controller) *MockTransactionable

NewMockTransactionable creates a new mock instance.

func (*MockTransactionable) EXPECT

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

func (*MockTransactionable) Transaction

func (m *MockTransactionable) Transaction(ctx kontext.Context, transactionKey string, f func(db.TX) exception.Exception) exception.Exception

Transaction mocks base method.

type MockTransactionableMockRecorder

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

MockTransactionableMockRecorder is the mock recorder for MockTransactionable.

func (*MockTransactionableMockRecorder) Transaction

func (mr *MockTransactionableMockRecorder) Transaction(ctx, transactionKey, f interface{}) *gomock.Call

Transaction indicates an expected call of Transaction.

Jump to

Keyboard shortcuts

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