mock_gokugen

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_gokugen is a generated GoMock package.

Index

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

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

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

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

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) Cancel

func (m *MockTask) Cancel() bool

Cancel mocks base method.

func (*MockTask) CancelWithReason

func (m *MockTask) CancelWithReason(err error) bool

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

func (m *MockTask) GetScheduledTime() time.Time

GetScheduledTime mocks base method.

func (*MockTask) IsCancelled

func (m *MockTask) IsCancelled() bool

IsCancelled mocks base method.

func (*MockTask) IsDone

func (m *MockTask) IsDone() bool

IsDone 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.

Jump to

Keyboard shortcuts

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