mocks

package
v2.15.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 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 added in v2.4.0

type AsyncDeleter struct {
	mock.Mock
}

AsyncDeleter is an autogenerated mock type for the asyncDeleter type

func NewAsyncDeleter added in v2.4.0

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 added in v2.4.0

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

AsyncDelete provides a mock function with given fields: req

func (*AsyncDeleter) EXPECT added in v2.15.0

func (_m *AsyncDeleter) EXPECT() *AsyncDeleter_Expecter

type AsyncDeleter_AsyncDelete_Call added in v2.15.0

type AsyncDeleter_AsyncDelete_Call struct {
	*mock.Call
}

AsyncDeleter_AsyncDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AsyncDelete'

func (*AsyncDeleter_AsyncDelete_Call) Return added in v2.15.0

func (*AsyncDeleter_AsyncDelete_Call) Run added in v2.15.0

func (*AsyncDeleter_AsyncDelete_Call) RunAndReturn added in v2.15.0

type AsyncDeleter_Expecter added in v2.15.0

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

func (*AsyncDeleter_Expecter) AsyncDelete added in v2.15.0

func (_e *AsyncDeleter_Expecter) AsyncDelete(req interface{}) *AsyncDeleter_AsyncDelete_Call

AsyncDelete is a helper method to define mock.On call

  • req *pb.TransmitRequest

type MockRunner added in v2.5.0

type MockRunner struct {
	Trrs pipeline.TaskRunResults
	Err  error
}

func (*MockRunner) ExecuteRun added in v2.5.0

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

type MockTask added in v2.5.0

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

func (*MockTask) Base added in v2.5.0

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

func (*MockTask) DotID added in v2.5.0

func (m *MockTask) DotID() string

func (*MockTask) ID added in v2.5.0

func (m *MockTask) ID() int

func (*MockTask) Inputs added in v2.5.0

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

func (*MockTask) OutputIndex added in v2.5.0

func (m *MockTask) OutputIndex() int32

func (*MockTask) Outputs added in v2.5.0

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

func (*MockTask) Run added in v2.5.0

func (*MockTask) TaskMaxBackoff added in v2.5.0

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

func (*MockTask) TaskMinBackoff added in v2.5.0

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

func (*MockTask) TaskRetries added in v2.5.0

func (m *MockTask) TaskRetries() uint32

func (*MockTask) TaskTimeout added in v2.5.0

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

func (*MockTask) Type added in v2.5.0

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

Jump to

Keyboard shortcuts

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