lockmock

package
v0.0.0-...-68cd45c Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package lockmock is a generated GoMock package.

Index

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

func (m *MockDatabase) BumpSession(arg0 context.Context, arg1 int64) glitch.DataError

BumpSession mocks base method

func (*MockDatabase) EXPECT

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

func (*MockDatabase) EndSession

func (m *MockDatabase) EndSession(arg0 context.Context, arg1 int64) glitch.DataError

EndSession mocks base method

func (*MockDatabase) FinishTasks

func (m *MockDatabase) FinishTasks(arg0 context.Context, arg1 []string) glitch.DataError

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

func (m *MockDatabase) StartSession(arg0 context.Context) (int64, glitch.DataError)

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

func (*MockTask) GetID

func (m *MockTask) GetID() string

GetID mocks base method

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

Jump to

Keyboard shortcuts

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