Documentation ¶
Overview ¶
Package mock_gokugen is a generated GoMock package.
Index ¶
- type MockScheduler
- type MockSchedulerContext
- type MockSchedulerContextMockRecorder
- type MockSchedulerMockRecorder
- type MockTask
- type MockTaskMockRecorder
- func (mr *MockTaskMockRecorder) Cancel() *gomock.Call
- func (mr *MockTaskMockRecorder) CancelWithReason(err interface{}) *gomock.Call
- func (mr *MockTaskMockRecorder) GetScheduledTime() *gomock.Call
- func (mr *MockTaskMockRecorder) IsCancelled() *gomock.Call
- func (mr *MockTaskMockRecorder) IsDone() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockScheduler ¶
type MockScheduler struct {
// contains filtered or unexported fields
}
MockScheduler is a mock of Scheduler interface.
func BuildMockScheduler ¶
func BuildMockScheduler(t *testing.T) (ctrl *gomock.Controller, mockSched *MockScheduler, getTrappedTask func() *scheduler.Task)
func NewMockScheduler ¶
func NewMockScheduler(ctrl *gomock.Controller) *MockScheduler
NewMockScheduler creates a new mock instance.
func (*MockScheduler) EXPECT ¶
func (m *MockScheduler) EXPECT() *MockSchedulerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockScheduler) Schedule ¶
func (m *MockScheduler) Schedule(task *scheduler.Task) (*scheduler.TaskController, error)
Schedule mocks base method.
type MockSchedulerContext ¶
type MockSchedulerContext struct {
// contains filtered or unexported fields
}
MockSchedulerContext is a mock of SchedulerContext interface.
func NewMockSchedulerContext ¶
func NewMockSchedulerContext(ctrl *gomock.Controller) *MockSchedulerContext
NewMockSchedulerContext creates a new mock instance.
func (*MockSchedulerContext) EXPECT ¶
func (m *MockSchedulerContext) EXPECT() *MockSchedulerContextMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSchedulerContext) ScheduledTime ¶
func (m *MockSchedulerContext) ScheduledTime() time.Time
ScheduledTime mocks base method.
func (*MockSchedulerContext) Value ¶
func (m *MockSchedulerContext) Value(key any) (any, error)
Value mocks base method.
func (*MockSchedulerContext) Work ¶
func (m *MockSchedulerContext) Work() gokugen.WorkFn
Work mocks base method.
type MockSchedulerContextMockRecorder ¶
type MockSchedulerContextMockRecorder struct {
// contains filtered or unexported fields
}
MockSchedulerContextMockRecorder is the mock recorder for MockSchedulerContext.
func (*MockSchedulerContextMockRecorder) ScheduledTime ¶
func (mr *MockSchedulerContextMockRecorder) ScheduledTime() *gomock.Call
ScheduledTime indicates an expected call of ScheduledTime.
func (*MockSchedulerContextMockRecorder) Value ¶
func (mr *MockSchedulerContextMockRecorder) Value(key interface{}) *gomock.Call
Value indicates an expected call of Value.
func (*MockSchedulerContextMockRecorder) Work ¶
func (mr *MockSchedulerContextMockRecorder) Work() *gomock.Call
Work indicates an expected call of Work.
type MockSchedulerMockRecorder ¶
type MockSchedulerMockRecorder struct {
// contains filtered or unexported fields
}
MockSchedulerMockRecorder is the mock recorder for MockScheduler.
func (*MockSchedulerMockRecorder) Schedule ¶
func (mr *MockSchedulerMockRecorder) Schedule(task interface{}) *gomock.Call
Schedule indicates an expected call of Schedule.
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) CancelWithReason ¶
CancelWithReason mocks base method.
func (*MockTask) EXPECT ¶
func (m *MockTask) EXPECT() *MockTaskMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTask) GetScheduledTime ¶
GetScheduledTime mocks base method.
type MockTaskMockRecorder ¶
type MockTaskMockRecorder struct {
// contains filtered or unexported fields
}
MockTaskMockRecorder is the mock recorder for MockTask.
func (*MockTaskMockRecorder) Cancel ¶
func (mr *MockTaskMockRecorder) Cancel() *gomock.Call
Cancel indicates an expected call of Cancel.
func (*MockTaskMockRecorder) CancelWithReason ¶
func (mr *MockTaskMockRecorder) CancelWithReason(err interface{}) *gomock.Call
CancelWithReason indicates an expected call of CancelWithReason.
func (*MockTaskMockRecorder) GetScheduledTime ¶
func (mr *MockTaskMockRecorder) GetScheduledTime() *gomock.Call
GetScheduledTime indicates an expected call of GetScheduledTime.
func (*MockTaskMockRecorder) IsCancelled ¶
func (mr *MockTaskMockRecorder) IsCancelled() *gomock.Call
IsCancelled indicates an expected call of IsCancelled.
func (*MockTaskMockRecorder) IsDone ¶
func (mr *MockTaskMockRecorder) IsDone() *gomock.Call
IsDone indicates an expected call of IsDone.