action

package
v0.0.12 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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAction

type MockAction struct {
	mock.Mock
}

MockAction is an autogenerated mock type for the Action type

func NewMockAction

func NewMockAction(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAction

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

func (_m *MockAction) EXPECT() *MockAction_Expecter

func (*MockAction) Execute

func (_m *MockAction) Execute(ctx context.Context, runData runtime.Data) (bool, error)

Execute provides a mock function with given fields: ctx, runData

func (*MockAction) Timeout

func (_m *MockAction) Timeout() time.Duration

Timeout provides a mock function with given fields:

func (*MockAction) When

func (_m *MockAction) When() action.When

When provides a mock function with given fields:

type MockAction_Execute_Call

type MockAction_Execute_Call struct {
	*mock.Call
}

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

func (*MockAction_Execute_Call) Return

func (*MockAction_Execute_Call) Run

func (*MockAction_Execute_Call) RunAndReturn

type MockAction_Expecter

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

func (*MockAction_Expecter) Execute

func (_e *MockAction_Expecter) Execute(ctx interface{}, runData interface{}) *MockAction_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • runData runtime.Data

func (*MockAction_Expecter) Timeout

Timeout is a helper method to define mock.On call

func (*MockAction_Expecter) When

When is a helper method to define mock.On call

type MockAction_Timeout_Call

type MockAction_Timeout_Call struct {
	*mock.Call
}

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

func (*MockAction_Timeout_Call) Return

func (*MockAction_Timeout_Call) Run

func (_c *MockAction_Timeout_Call) Run(run func()) *MockAction_Timeout_Call

func (*MockAction_Timeout_Call) RunAndReturn

func (_c *MockAction_Timeout_Call) RunAndReturn(run func() time.Duration) *MockAction_Timeout_Call

type MockAction_When_Call

type MockAction_When_Call struct {
	*mock.Call
}

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

func (*MockAction_When_Call) Return

func (*MockAction_When_Call) Run

func (_c *MockAction_When_Call) Run(run func()) *MockAction_When_Call

func (*MockAction_When_Call) RunAndReturn

func (_c *MockAction_When_Call) RunAndReturn(run func() action.When) *MockAction_When_Call

type MockMaker

type MockMaker struct {
	mock.Mock
}

MockMaker is an autogenerated mock type for the Maker type

func NewMockMaker

func NewMockMaker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMaker

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

func (_m *MockMaker) EXPECT() *MockMaker_Expecter

func (*MockMaker) MakeAction

func (_m *MockMaker) MakeAction(config types.Action, sl services.ServiceLocator, defaultTimeout int) (action.Action, error)

MakeAction provides a mock function with given fields: config, sl, defaultTimeout

type MockMaker_Expecter

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

func (*MockMaker_Expecter) MakeAction

func (_e *MockMaker_Expecter) MakeAction(config interface{}, sl interface{}, defaultTimeout interface{}) *MockMaker_MakeAction_Call

MakeAction is a helper method to define mock.On call

  • config types.Action
  • sl services.ServiceLocator
  • defaultTimeout int

type MockMaker_MakeAction_Call

type MockMaker_MakeAction_Call struct {
	*mock.Call
}

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

func (*MockMaker_MakeAction_Call) Return

func (*MockMaker_MakeAction_Call) Run

func (_c *MockMaker_MakeAction_Call) Run(run func(config types.Action, sl services.ServiceLocator, defaultTimeout int)) *MockMaker_MakeAction_Call

func (*MockMaker_MakeAction_Call) RunAndReturn

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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