mocks

package
v0.0.0-...-0bc2699 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

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 MockClock

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

MockClock is a mock of Clock interface.

func NewMockClock

func NewMockClock(ctrl *gomock.Controller) *MockClock

NewMockClock creates a new mock instance.

func (*MockClock) EXPECT

func (m *MockClock) EXPECT() *MockClockMockRecorder

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

func (*MockClock) Now

func (m *MockClock) Now() time.Time

Now mocks base method.

type MockClockMockRecorder

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

MockClockMockRecorder is the mock recorder for MockClock.

func (*MockClockMockRecorder) Now

func (mr *MockClockMockRecorder) Now() *gomock.Call

Now indicates an expected call of Now.

type MockCreator

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

MockCreator is a mock of Creator interface.

func NewMockCreator

func NewMockCreator(ctrl *gomock.Controller) *MockCreator

NewMockCreator creates a new mock instance.

func (*MockCreator) Create

func (m *MockCreator) Create(ctx context.Context, tx db.Tx, file *db.FileRow) (*db.FileRow, error)

Create mocks base method.

func (*MockCreator) EXPECT

func (m *MockCreator) EXPECT() *MockCreatorMockRecorder

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

type MockCreatorMockRecorder

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

MockCreatorMockRecorder is the mock recorder for MockCreator.

func (*MockCreatorMockRecorder) Create

func (mr *MockCreatorMockRecorder) Create(ctx, tx, file interface{}) *gomock.Call

Create indicates an expected call of Create.

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

func (m *MockDB) Begin() (db.Tx, error)

Begin mocks base method.

func (*MockDB) EXPECT

func (m *MockDB) EXPECT() *MockDBMockRecorder

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

type MockDBMockRecorder

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

MockDBMockRecorder is the mock recorder for MockDB.

func (*MockDBMockRecorder) Begin

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

Begin indicates an expected call of Begin.

type MockIDGenerator

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

MockIDGenerator is a mock of IDGenerator interface.

func NewMockIDGenerator

func NewMockIDGenerator(ctrl *gomock.Controller) *MockIDGenerator

NewMockIDGenerator creates a new mock instance.

func (*MockIDGenerator) EXPECT

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

func (*MockIDGenerator) GenerateID

func (m *MockIDGenerator) GenerateID() string

GenerateID mocks base method.

type MockIDGeneratorMockRecorder

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

MockIDGeneratorMockRecorder is the mock recorder for MockIDGenerator.

func (*MockIDGeneratorMockRecorder) GenerateID

func (mr *MockIDGeneratorMockRecorder) GenerateID() *gomock.Call

GenerateID indicates an expected call of GenerateID.

type MockInTransactioner

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

MockInTransactioner is a mock of InTransactioner interface.

func NewMockInTransactioner

func NewMockInTransactioner(ctrl *gomock.Controller) *MockInTransactioner

NewMockInTransactioner creates a new mock instance.

func (*MockInTransactioner) EXPECT

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

func (*MockInTransactioner) InTransaction

func (m *MockInTransactioner) InTransaction(ctx context.Context, fn db.TxnFunc) error

InTransaction mocks base method.

type MockInTransactionerMockRecorder

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

MockInTransactionerMockRecorder is the mock recorder for MockInTransactioner.

func (*MockInTransactionerMockRecorder) InTransaction

func (mr *MockInTransactionerMockRecorder) InTransaction(ctx, fn interface{}) *gomock.Call

InTransaction indicates an expected call of InTransaction.

type MockLatestFetcher

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

MockLatestFetcher is a mock of LatestFetcher interface.

func NewMockLatestFetcher

func NewMockLatestFetcher(ctrl *gomock.Controller) *MockLatestFetcher

NewMockLatestFetcher creates a new mock instance.

func (*MockLatestFetcher) EXPECT

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

func (*MockLatestFetcher) FetchLatest

func (m *MockLatestFetcher) FetchLatest(ctx context.Context, tx db.Tx, path string) (*db.FileRow, error)

FetchLatest mocks base method.

type MockLatestFetcherMockRecorder

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

MockLatestFetcherMockRecorder is the mock recorder for MockLatestFetcher.

func (*MockLatestFetcherMockRecorder) FetchLatest

func (mr *MockLatestFetcherMockRecorder) FetchLatest(ctx, tx, path interface{}) *gomock.Call

FetchLatest indicates an expected call of FetchLatest.

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(arg0 context.Context, arg1 string, arg2 ...interface{}) (sql.Result, error)

ExecContext mocks base method.

func (*MockTx) PrepareContext

func (m *MockTx) PrepareContext(arg0 context.Context, arg1 string) (*sql.Stmt, error)

PrepareContext mocks base method.

func (*MockTx) QueryContext

func (m *MockTx) QueryContext(arg0 context.Context, arg1 string, arg2 ...interface{}) (*sql.Rows, error)

QueryContext mocks base method.

func (*MockTx) QueryRowContext

func (m *MockTx) QueryRowContext(arg0 context.Context, arg1 string, arg2 ...interface{}) *sql.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(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

ExecContext indicates an expected call of ExecContext.

func (*MockTxMockRecorder) PrepareContext

func (mr *MockTxMockRecorder) PrepareContext(arg0, arg1 interface{}) *gomock.Call

PrepareContext indicates an expected call of PrepareContext.

func (*MockTxMockRecorder) QueryContext

func (mr *MockTxMockRecorder) QueryContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryContext indicates an expected call of QueryContext.

func (*MockTxMockRecorder) QueryRowContext

func (mr *MockTxMockRecorder) QueryRowContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

QueryRowContext indicates an expected call of QueryRowContext.

Jump to

Keyboard shortcuts

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