mockscheduler

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockJobStore

type MockJobStore struct {
	mock.Mock
}

MockJobStore is an autogenerated mock type for the JobStore type

func NewMockJobStore

func NewMockJobStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockJobStore

NewMockJobStore creates a new instance of MockJobStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockJobStore) CreateBuckets

func (_m *MockJobStore) CreateBuckets(_a0 *bbolt.Tx) error

CreateBuckets provides a mock function with given fields: _a0

func (*MockJobStore) DeleteJobPlan

func (_m *MockJobStore) DeleteJobPlan(tx *bbolt.Tx, name string) error

DeleteJobPlan provides a mock function with given fields: tx, name

func (*MockJobStore) DeleteJobState

func (_m *MockJobStore) DeleteJobState(tx *bbolt.Tx, name string) error

DeleteJobState provides a mock function with given fields: tx, name

func (*MockJobStore) EXPECT

func (_m *MockJobStore) EXPECT() *MockJobStore_Expecter

func (*MockJobStore) GetJobPlan

func (_m *MockJobStore) GetJobPlan(tx *bbolt.Tx, name string) (*raft_log.CompactionJobPlan, error)

GetJobPlan provides a mock function with given fields: tx, name

func (*MockJobStore) ListEntries

func (_m *MockJobStore) ListEntries(_a0 *bbolt.Tx) iter.Iterator[*raft_log.CompactionJobState]

ListEntries provides a mock function with given fields: _a0

func (*MockJobStore) StoreJobPlan

func (_m *MockJobStore) StoreJobPlan(_a0 *bbolt.Tx, _a1 *raft_log.CompactionJobPlan) error

StoreJobPlan provides a mock function with given fields: _a0, _a1

func (*MockJobStore) StoreJobState

func (_m *MockJobStore) StoreJobState(_a0 *bbolt.Tx, _a1 *raft_log.CompactionJobState) error

StoreJobState provides a mock function with given fields: _a0, _a1

type MockJobStore_CreateBuckets_Call

type MockJobStore_CreateBuckets_Call struct {
	*mock.Call
}

MockJobStore_CreateBuckets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBuckets'

func (*MockJobStore_CreateBuckets_Call) Return

func (*MockJobStore_CreateBuckets_Call) Run

func (*MockJobStore_CreateBuckets_Call) RunAndReturn

type MockJobStore_DeleteJobPlan_Call

type MockJobStore_DeleteJobPlan_Call struct {
	*mock.Call
}

MockJobStore_DeleteJobPlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteJobPlan'

func (*MockJobStore_DeleteJobPlan_Call) Return

func (*MockJobStore_DeleteJobPlan_Call) Run

func (*MockJobStore_DeleteJobPlan_Call) RunAndReturn

type MockJobStore_DeleteJobState_Call

type MockJobStore_DeleteJobState_Call struct {
	*mock.Call
}

MockJobStore_DeleteJobState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteJobState'

func (*MockJobStore_DeleteJobState_Call) Return

func (*MockJobStore_DeleteJobState_Call) Run

func (*MockJobStore_DeleteJobState_Call) RunAndReturn

type MockJobStore_Expecter

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

func (*MockJobStore_Expecter) CreateBuckets

func (_e *MockJobStore_Expecter) CreateBuckets(_a0 interface{}) *MockJobStore_CreateBuckets_Call

CreateBuckets is a helper method to define mock.On call

  • _a0 *bbolt.Tx

func (*MockJobStore_Expecter) DeleteJobPlan

func (_e *MockJobStore_Expecter) DeleteJobPlan(tx interface{}, name interface{}) *MockJobStore_DeleteJobPlan_Call

DeleteJobPlan is a helper method to define mock.On call

  • tx *bbolt.Tx
  • name string

func (*MockJobStore_Expecter) DeleteJobState

func (_e *MockJobStore_Expecter) DeleteJobState(tx interface{}, name interface{}) *MockJobStore_DeleteJobState_Call

DeleteJobState is a helper method to define mock.On call

  • tx *bbolt.Tx
  • name string

func (*MockJobStore_Expecter) GetJobPlan

func (_e *MockJobStore_Expecter) GetJobPlan(tx interface{}, name interface{}) *MockJobStore_GetJobPlan_Call

GetJobPlan is a helper method to define mock.On call

  • tx *bbolt.Tx
  • name string

func (*MockJobStore_Expecter) ListEntries

func (_e *MockJobStore_Expecter) ListEntries(_a0 interface{}) *MockJobStore_ListEntries_Call

ListEntries is a helper method to define mock.On call

  • _a0 *bbolt.Tx

func (*MockJobStore_Expecter) StoreJobPlan

func (_e *MockJobStore_Expecter) StoreJobPlan(_a0 interface{}, _a1 interface{}) *MockJobStore_StoreJobPlan_Call

StoreJobPlan is a helper method to define mock.On call

  • _a0 *bbolt.Tx
  • _a1 *raft_log.CompactionJobPlan

func (*MockJobStore_Expecter) StoreJobState

func (_e *MockJobStore_Expecter) StoreJobState(_a0 interface{}, _a1 interface{}) *MockJobStore_StoreJobState_Call

StoreJobState is a helper method to define mock.On call

  • _a0 *bbolt.Tx
  • _a1 *raft_log.CompactionJobState

type MockJobStore_GetJobPlan_Call

type MockJobStore_GetJobPlan_Call struct {
	*mock.Call
}

MockJobStore_GetJobPlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJobPlan'

func (*MockJobStore_GetJobPlan_Call) Return

func (*MockJobStore_GetJobPlan_Call) Run

func (*MockJobStore_GetJobPlan_Call) RunAndReturn

type MockJobStore_ListEntries_Call

type MockJobStore_ListEntries_Call struct {
	*mock.Call
}

MockJobStore_ListEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListEntries'

func (*MockJobStore_ListEntries_Call) Return

func (*MockJobStore_ListEntries_Call) Run

func (*MockJobStore_ListEntries_Call) RunAndReturn

type MockJobStore_StoreJobPlan_Call

type MockJobStore_StoreJobPlan_Call struct {
	*mock.Call
}

MockJobStore_StoreJobPlan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreJobPlan'

func (*MockJobStore_StoreJobPlan_Call) Return

func (*MockJobStore_StoreJobPlan_Call) Run

func (*MockJobStore_StoreJobPlan_Call) RunAndReturn

type MockJobStore_StoreJobState_Call

type MockJobStore_StoreJobState_Call struct {
	*mock.Call
}

MockJobStore_StoreJobState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreJobState'

func (*MockJobStore_StoreJobState_Call) Return

func (*MockJobStore_StoreJobState_Call) Run

func (*MockJobStore_StoreJobState_Call) RunAndReturn

Jump to

Keyboard shortcuts

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