Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockExtension
- func (m *MockExtension) EXPECT() *MockExtensionMockRecorder
- func (m *MockExtension) GetEligibleInstances(arg0 context.Context, arg1 *proto.Task) ([]string, error)
- func (m *MockExtension) GetNextStep(arg0 *proto.TaskBase) proto.Step
- func (m *MockExtension) ISGOMOCK() struct{}
- func (m *MockExtension) IsRetryableErr(arg0 error) bool
- func (m *MockExtension) OnDone(arg0 context.Context, arg1 storage.TaskHandle, arg2 *proto.Task) error
- func (m *MockExtension) OnNextSubtasksBatch(arg0 context.Context, arg1 storage.TaskHandle, arg2 *proto.Task, arg3 []string, ...) ([][]byte, error)
- func (m *MockExtension) OnTick(arg0 context.Context, arg1 *proto.Task)
- type MockExtensionMockRecorder
- func (mr *MockExtensionMockRecorder) GetEligibleInstances(arg0, arg1 any) *gomock.Call
- func (mr *MockExtensionMockRecorder) GetNextStep(arg0 any) *gomock.Call
- func (mr *MockExtensionMockRecorder) IsRetryableErr(arg0 any) *gomock.Call
- func (mr *MockExtensionMockRecorder) OnDone(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockExtensionMockRecorder) OnNextSubtasksBatch(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
- func (mr *MockExtensionMockRecorder) OnTick(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExtension ¶
type MockExtension struct {
// contains filtered or unexported fields
}
MockExtension is a mock of Extension interface.
func NewMockExtension ¶
func NewMockExtension(ctrl *gomock.Controller) *MockExtension
NewMockExtension creates a new mock instance.
func (*MockExtension) EXPECT ¶
func (m *MockExtension) EXPECT() *MockExtensionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExtension) GetEligibleInstances ¶
func (m *MockExtension) GetEligibleInstances(arg0 context.Context, arg1 *proto.Task) ([]string, error)
GetEligibleInstances mocks base method.
func (*MockExtension) GetNextStep ¶
func (m *MockExtension) GetNextStep(arg0 *proto.TaskBase) proto.Step
GetNextStep mocks base method.
func (*MockExtension) ISGOMOCK ¶
func (m *MockExtension) ISGOMOCK() struct{}
ISGOMOCK indicates that this struct is a gomock mock.
func (*MockExtension) IsRetryableErr ¶
func (m *MockExtension) IsRetryableErr(arg0 error) bool
IsRetryableErr mocks base method.
func (*MockExtension) OnDone ¶
func (m *MockExtension) OnDone(arg0 context.Context, arg1 storage.TaskHandle, arg2 *proto.Task) error
OnDone mocks base method.
func (*MockExtension) OnNextSubtasksBatch ¶
func (m *MockExtension) OnNextSubtasksBatch(arg0 context.Context, arg1 storage.TaskHandle, arg2 *proto.Task, arg3 []string, arg4 proto.Step) ([][]byte, error)
OnNextSubtasksBatch mocks base method.
type MockExtensionMockRecorder ¶
type MockExtensionMockRecorder struct {
// contains filtered or unexported fields
}
MockExtensionMockRecorder is the mock recorder for MockExtension.
func (*MockExtensionMockRecorder) GetEligibleInstances ¶
func (mr *MockExtensionMockRecorder) GetEligibleInstances(arg0, arg1 any) *gomock.Call
GetEligibleInstances indicates an expected call of GetEligibleInstances.
func (*MockExtensionMockRecorder) GetNextStep ¶
func (mr *MockExtensionMockRecorder) GetNextStep(arg0 any) *gomock.Call
GetNextStep indicates an expected call of GetNextStep.
func (*MockExtensionMockRecorder) IsRetryableErr ¶
func (mr *MockExtensionMockRecorder) IsRetryableErr(arg0 any) *gomock.Call
IsRetryableErr indicates an expected call of IsRetryableErr.
func (*MockExtensionMockRecorder) OnDone ¶
func (mr *MockExtensionMockRecorder) OnDone(arg0, arg1, arg2 any) *gomock.Call
OnDone indicates an expected call of OnDone.
func (*MockExtensionMockRecorder) OnNextSubtasksBatch ¶
func (mr *MockExtensionMockRecorder) OnNextSubtasksBatch(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call
OnNextSubtasksBatch indicates an expected call of OnNextSubtasksBatch.