mocks

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncDeleter

type AsyncDeleter struct {
	mock.Mock
}

AsyncDeleter is an autogenerated mock type for the asyncDeleter type

func NewAsyncDeleter

func NewAsyncDeleter(t interface {
	mock.TestingT
	Cleanup(func())
}) *AsyncDeleter

NewAsyncDeleter creates a new instance of AsyncDeleter. 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 (*AsyncDeleter) AsyncDelete

func (_m *AsyncDeleter) AsyncDelete(req *pb.TransmitRequest)

AsyncDelete provides a mock function with given fields: req

type MockRunner

type MockRunner struct {
	Trrs pipeline.TaskRunResults
	Err  error
}

func (*MockRunner) ExecuteRun

func (m *MockRunner) ExecuteRun(ctx context.Context, spec pipeline.Spec, vars pipeline.Vars, l logger.Logger) (run *pipeline.Run, trrs pipeline.TaskRunResults, err error)

type MockTask

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

func (*MockTask) Base

func (m *MockTask) Base() *pipeline.BaseTask

func (*MockTask) DotID

func (m *MockTask) DotID() string

func (*MockTask) ID

func (m *MockTask) ID() int

func (*MockTask) Inputs

func (m *MockTask) Inputs() []pipeline.TaskDependency

func (*MockTask) OutputIndex

func (m *MockTask) OutputIndex() int32

func (*MockTask) Outputs

func (m *MockTask) Outputs() []pipeline.Task

func (*MockTask) Run

func (*MockTask) TaskMaxBackoff

func (m *MockTask) TaskMaxBackoff() time.Duration

func (*MockTask) TaskMinBackoff

func (m *MockTask) TaskMinBackoff() time.Duration

func (*MockTask) TaskRetries

func (m *MockTask) TaskRetries() uint32

func (*MockTask) TaskTimeout

func (m *MockTask) TaskTimeout() (time.Duration, bool)

func (*MockTask) Type

func (m *MockTask) Type() pipeline.TaskType

Jump to

Keyboard shortcuts

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