Documentation ¶
Overview ¶
Package lockmock is a generated GoMock package.
Index ¶
- type MockDatabase
- func (m *MockDatabase) BumpSession(arg0 context.Context, arg1 int64) glitch.DataError
- func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
- func (m *MockDatabase) EndSession(arg0 context.Context, arg1 int64) glitch.DataError
- func (m *MockDatabase) FinishTasks(arg0 context.Context, arg1 []string) glitch.DataError
- func (m *MockDatabase) GetWork(arg0 context.Context, arg1 int64, arg2 lock.ScanTask) ([]lock.Task, glitch.DataError)
- func (m *MockDatabase) StartSession(arg0 context.Context) (int64, glitch.DataError)
- type MockDatabaseMockRecorder
- func (mr *MockDatabaseMockRecorder) BumpSession(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) EndSession(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) FinishTasks(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) GetWork(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDatabaseMockRecorder) StartSession(arg0 interface{}) *gomock.Call
- type MockScanner
- type MockScannerMockRecorder
- type MockTask
- type MockTaskMockRecorder
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) BumpSession ¶
BumpSession mocks base method
func (*MockDatabase) EXPECT ¶
func (m *MockDatabase) EXPECT() *MockDatabaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockDatabase) EndSession ¶
EndSession mocks base method
func (*MockDatabase) FinishTasks ¶
FinishTasks mocks base method
func (*MockDatabase) GetWork ¶
func (m *MockDatabase) GetWork(arg0 context.Context, arg1 int64, arg2 lock.ScanTask) ([]lock.Task, glitch.DataError)
GetWork mocks base method
func (*MockDatabase) StartSession ¶
StartSession mocks base method
type MockDatabaseMockRecorder ¶
type MockDatabaseMockRecorder struct {
// contains filtered or unexported fields
}
MockDatabaseMockRecorder is the mock recorder for MockDatabase
func (*MockDatabaseMockRecorder) BumpSession ¶
func (mr *MockDatabaseMockRecorder) BumpSession(arg0, arg1 interface{}) *gomock.Call
BumpSession indicates an expected call of BumpSession
func (*MockDatabaseMockRecorder) EndSession ¶
func (mr *MockDatabaseMockRecorder) EndSession(arg0, arg1 interface{}) *gomock.Call
EndSession indicates an expected call of EndSession
func (*MockDatabaseMockRecorder) FinishTasks ¶
func (mr *MockDatabaseMockRecorder) FinishTasks(arg0, arg1 interface{}) *gomock.Call
FinishTasks indicates an expected call of FinishTasks
func (*MockDatabaseMockRecorder) GetWork ¶
func (mr *MockDatabaseMockRecorder) GetWork(arg0, arg1, arg2 interface{}) *gomock.Call
GetWork indicates an expected call of GetWork
func (*MockDatabaseMockRecorder) StartSession ¶
func (mr *MockDatabaseMockRecorder) StartSession(arg0 interface{}) *gomock.Call
StartSession indicates an expected call of StartSession
type MockScanner ¶
type MockScanner struct {
// contains filtered or unexported fields
}
MockScanner is a mock of Scanner interface
func NewMockScanner ¶
func NewMockScanner(ctrl *gomock.Controller) *MockScanner
NewMockScanner creates a new mock instance
func (*MockScanner) EXPECT ¶
func (m *MockScanner) EXPECT() *MockScannerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockScanner) Scan ¶
func (m *MockScanner) Scan(arg0 ...interface{}) error
Scan mocks base method
type MockScannerMockRecorder ¶
type MockScannerMockRecorder struct {
// contains filtered or unexported fields
}
MockScannerMockRecorder is the mock recorder for MockScanner
func (*MockScannerMockRecorder) Scan ¶
func (mr *MockScannerMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Scan indicates an expected call of Scan
type MockTask ¶
type MockTask struct {
// contains filtered or unexported fields
}
MockTask is a mock of Task interface
func NewMockTask ¶
func NewMockTask(ctrl *gomock.Controller) *MockTask
NewMockTask creates a new mock instance
func (*MockTask) EXPECT ¶
func (m *MockTask) EXPECT() *MockTaskMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockTaskMockRecorder ¶
type MockTaskMockRecorder struct {
// contains filtered or unexported fields
}
MockTaskMockRecorder is the mock recorder for MockTask
func (*MockTaskMockRecorder) GetID ¶
func (mr *MockTaskMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID