Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockClock
- type MockClockMockRecorder
- type MockCreator
- type MockCreatorMockRecorder
- type MockDB
- type MockDBMockRecorder
- type MockIDGenerator
- type MockIDGeneratorMockRecorder
- type MockInTransactioner
- type MockInTransactionerMockRecorder
- type MockLatestFetcher
- type MockLatestFetcherMockRecorder
- type MockTx
- func (m *MockTx) EXPECT() *MockTxMockRecorder
- func (m *MockTx) ExecContext(arg0 context.Context, arg1 string, arg2 ...interface{}) (sql.Result, error)
- func (m *MockTx) PrepareContext(arg0 context.Context, arg1 string) (*sql.Stmt, error)
- func (m *MockTx) QueryContext(arg0 context.Context, arg1 string, arg2 ...interface{}) (*sql.Rows, error)
- func (m *MockTx) QueryRowContext(arg0 context.Context, arg1 string, arg2 ...interface{}) *sql.Row
- type MockTxMockRecorder
- func (mr *MockTxMockRecorder) ExecContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) PrepareContext(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) QueryContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockTxMockRecorder) QueryRowContext(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
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.
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) 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) 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 ¶
func (m *MockIDGenerator) EXPECT() *MockIDGeneratorMockRecorder
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 ¶
func (m *MockInTransactioner) EXPECT() *MockInTransactionerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockInTransactioner) InTransaction ¶
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 ¶
func (m *MockLatestFetcher) EXPECT() *MockLatestFetcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
PrepareContext 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.