Documentation
¶
Overview ¶
Package preemptmocks is a generated GoMock package.
Index ¶
- type MockPreempter
- type MockPreempterMockRecorder
- type MockStatus
- type MockStatusMockRecorder
- type MockTaskLeaser
- func (m *MockTaskLeaser) AutoRefresh(ctx context.Context) (<-chan preempt.Status, error)
- func (m *MockTaskLeaser) EXPECT() *MockTaskLeaserMockRecorder
- func (m *MockTaskLeaser) GetTask() task.Task
- func (m *MockTaskLeaser) Refresh(ctx context.Context) error
- func (m *MockTaskLeaser) Release(ctx context.Context) error
- type MockTaskLeaserMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPreempter ¶
type MockPreempter struct {
// contains filtered or unexported fields
}
MockPreempter is a mock of Preempter interface.
func NewMockPreempter ¶
func NewMockPreempter(ctrl *gomock.Controller) *MockPreempter
NewMockPreempter creates a new mock instance.
func (*MockPreempter) EXPECT ¶
func (m *MockPreempter) EXPECT() *MockPreempterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPreempter) Preempt ¶
func (m *MockPreempter) Preempt(ctx context.Context) (preempt.TaskLeaser, error)
Preempt mocks base method.
type MockPreempterMockRecorder ¶
type MockPreempterMockRecorder struct {
// contains filtered or unexported fields
}
MockPreempterMockRecorder is the mock recorder for MockPreempter.
type MockStatus ¶
type MockStatus struct {
// contains filtered or unexported fields
}
MockStatus is a mock of Status interface.
func NewMockStatus ¶
func NewMockStatus(ctrl *gomock.Controller) *MockStatus
NewMockStatus creates a new mock instance.
func (*MockStatus) EXPECT ¶
func (m *MockStatus) EXPECT() *MockStatusMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStatusMockRecorder ¶
type MockStatusMockRecorder struct {
// contains filtered or unexported fields
}
MockStatusMockRecorder is the mock recorder for MockStatus.
func (*MockStatusMockRecorder) Err ¶
func (mr *MockStatusMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err.
type MockTaskLeaser ¶
type MockTaskLeaser struct {
// contains filtered or unexported fields
}
MockTaskLeaser is a mock of TaskLeaser interface.
func NewMockTaskLeaser ¶
func NewMockTaskLeaser(ctrl *gomock.Controller) *MockTaskLeaser
NewMockTaskLeaser creates a new mock instance.
func (*MockTaskLeaser) AutoRefresh ¶
AutoRefresh mocks base method.
func (*MockTaskLeaser) EXPECT ¶
func (m *MockTaskLeaser) EXPECT() *MockTaskLeaserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTaskLeaser) GetTask ¶
func (m *MockTaskLeaser) GetTask() task.Task
GetTask mocks base method.
type MockTaskLeaserMockRecorder ¶
type MockTaskLeaserMockRecorder struct {
// contains filtered or unexported fields
}
MockTaskLeaserMockRecorder is the mock recorder for MockTaskLeaser.
func (*MockTaskLeaserMockRecorder) AutoRefresh ¶
func (mr *MockTaskLeaserMockRecorder) AutoRefresh(ctx any) *gomock.Call
AutoRefresh indicates an expected call of AutoRefresh.
func (*MockTaskLeaserMockRecorder) GetTask ¶
func (mr *MockTaskLeaserMockRecorder) GetTask() *gomock.Call
GetTask indicates an expected call of GetTask.