task

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTask

type MockTask struct {
	mock.Mock
}

MockTask is an autogenerated mock type for the Task type

func NewMockTask

func NewMockTask(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTask

NewMockTask creates a new instance of MockTask. 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 (*MockTask) EXPECT

func (_m *MockTask) EXPECT() *MockTask_Expecter

func (*MockTask) Executable

func (_m *MockTask) Executable() string

Executable provides a mock function with given fields:

func (*MockTask) Id

func (_m *MockTask) Id() string

Id provides a mock function with given fields:

func (*MockTask) Name

func (_m *MockTask) Name() string

Name provides a mock function with given fields:

func (*MockTask) Pid

func (_m *MockTask) Pid() int

Pid provides a mock function with given fields:

func (*MockTask) PrivateUrl

func (_m *MockTask) PrivateUrl() string

PrivateUrl provides a mock function with given fields:

func (*MockTask) PublicUrl

func (_m *MockTask) PublicUrl() string

PublicUrl provides a mock function with given fields:

func (*MockTask) Type

func (_m *MockTask) Type() providers.Type

Type provides a mock function with given fields:

type MockTask_Executable_Call

type MockTask_Executable_Call struct {
	*mock.Call
}

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

func (*MockTask_Executable_Call) Return

func (*MockTask_Executable_Call) Run

func (*MockTask_Executable_Call) RunAndReturn

func (_c *MockTask_Executable_Call) RunAndReturn(run func() string) *MockTask_Executable_Call

type MockTask_Expecter

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

func (*MockTask_Expecter) Executable

func (_e *MockTask_Expecter) Executable() *MockTask_Executable_Call

Executable is a helper method to define mock.On call

func (*MockTask_Expecter) Id

Id is a helper method to define mock.On call

func (*MockTask_Expecter) Name

Name is a helper method to define mock.On call

func (*MockTask_Expecter) Pid

Pid is a helper method to define mock.On call

func (*MockTask_Expecter) PrivateUrl

func (_e *MockTask_Expecter) PrivateUrl() *MockTask_PrivateUrl_Call

PrivateUrl is a helper method to define mock.On call

func (*MockTask_Expecter) PublicUrl

func (_e *MockTask_Expecter) PublicUrl() *MockTask_PublicUrl_Call

PublicUrl is a helper method to define mock.On call

func (*MockTask_Expecter) Type

Type is a helper method to define mock.On call

type MockTask_Id_Call

type MockTask_Id_Call struct {
	*mock.Call
}

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

func (*MockTask_Id_Call) Return

func (_c *MockTask_Id_Call) Return(_a0 string) *MockTask_Id_Call

func (*MockTask_Id_Call) Run

func (_c *MockTask_Id_Call) Run(run func()) *MockTask_Id_Call

func (*MockTask_Id_Call) RunAndReturn

func (_c *MockTask_Id_Call) RunAndReturn(run func() string) *MockTask_Id_Call

type MockTask_Name_Call

type MockTask_Name_Call struct {
	*mock.Call
}

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

func (*MockTask_Name_Call) Return

func (_c *MockTask_Name_Call) Return(_a0 string) *MockTask_Name_Call

func (*MockTask_Name_Call) Run

func (_c *MockTask_Name_Call) Run(run func()) *MockTask_Name_Call

func (*MockTask_Name_Call) RunAndReturn

func (_c *MockTask_Name_Call) RunAndReturn(run func() string) *MockTask_Name_Call

type MockTask_Pid_Call

type MockTask_Pid_Call struct {
	*mock.Call
}

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

func (*MockTask_Pid_Call) Return

func (_c *MockTask_Pid_Call) Return(_a0 int) *MockTask_Pid_Call

func (*MockTask_Pid_Call) Run

func (_c *MockTask_Pid_Call) Run(run func()) *MockTask_Pid_Call

func (*MockTask_Pid_Call) RunAndReturn

func (_c *MockTask_Pid_Call) RunAndReturn(run func() int) *MockTask_Pid_Call

type MockTask_PrivateUrl_Call

type MockTask_PrivateUrl_Call struct {
	*mock.Call
}

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

func (*MockTask_PrivateUrl_Call) Return

func (*MockTask_PrivateUrl_Call) Run

func (*MockTask_PrivateUrl_Call) RunAndReturn

func (_c *MockTask_PrivateUrl_Call) RunAndReturn(run func() string) *MockTask_PrivateUrl_Call

type MockTask_PublicUrl_Call

type MockTask_PublicUrl_Call struct {
	*mock.Call
}

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

func (*MockTask_PublicUrl_Call) Return

func (*MockTask_PublicUrl_Call) Run

func (_c *MockTask_PublicUrl_Call) Run(run func()) *MockTask_PublicUrl_Call

func (*MockTask_PublicUrl_Call) RunAndReturn

func (_c *MockTask_PublicUrl_Call) RunAndReturn(run func() string) *MockTask_PublicUrl_Call

type MockTask_Type_Call

type MockTask_Type_Call struct {
	*mock.Call
}

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

func (*MockTask_Type_Call) Return

func (*MockTask_Type_Call) Run

func (_c *MockTask_Type_Call) Run(run func()) *MockTask_Type_Call

func (*MockTask_Type_Call) RunAndReturn

func (_c *MockTask_Type_Call) RunAndReturn(run func() providers.Type) *MockTask_Type_Call

Jump to

Keyboard shortcuts

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