hooks

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 MockHook

type MockHook struct {
	mock.Mock
}

MockHook is an autogenerated mock type for the Hook type

func NewMockHook

func NewMockHook(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHook

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

func (_m *MockHook) EXPECT() *MockHook_Expecter

func (*MockHook) Execute

Execute provides a mock function with given fields: ctx, ss, tmpl, env, st

type MockHook_Execute_Call

type MockHook_Execute_Call struct {
	*mock.Call
}

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

func (*MockHook_Execute_Call) Return

func (*MockHook_Execute_Call) Run

type MockHook_Expecter

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

func (*MockHook_Expecter) Execute

func (_e *MockHook_Expecter) Execute(ctx interface{}, ss interface{}, tmpl interface{}, env interface{}, st interface{}) *MockHook_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • ss *environment.ServiceSettings
  • tmpl template.Template
  • env environment.Environment
  • st task.Task

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) MakeHook

func (_m *MockMaker) MakeHook(config types.SandboxHook, hookType hooks.HookType) (hooks.Hook, error)

MakeHook provides a mock function with given fields: config, hookType

func (*MockMaker) MakeHooks

func (_m *MockMaker) MakeHooks(config map[string]types.SandboxHook) (hooks.Hooks, error)

MakeHooks provides a mock function with given fields: config

type MockMaker_Expecter

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

func (*MockMaker_Expecter) MakeHook

func (_e *MockMaker_Expecter) MakeHook(config interface{}, hookType interface{}) *MockMaker_MakeHook_Call

MakeHook is a helper method to define mock.On call

  • config types.SandboxHook
  • hookType hooks.HookType

func (*MockMaker_Expecter) MakeHooks

func (_e *MockMaker_Expecter) MakeHooks(config interface{}) *MockMaker_MakeHooks_Call

MakeHooks is a helper method to define mock.On call

  • config map[string]types.SandboxHook

type MockMaker_MakeHook_Call

type MockMaker_MakeHook_Call struct {
	*mock.Call
}

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

func (*MockMaker_MakeHook_Call) Return

func (*MockMaker_MakeHook_Call) Run

func (_c *MockMaker_MakeHook_Call) Run(run func(config types.SandboxHook, hookType hooks.HookType)) *MockMaker_MakeHook_Call

func (*MockMaker_MakeHook_Call) RunAndReturn

type MockMaker_MakeHooks_Call

type MockMaker_MakeHooks_Call struct {
	*mock.Call
}

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

func (*MockMaker_MakeHooks_Call) Return

func (*MockMaker_MakeHooks_Call) Run

func (*MockMaker_MakeHooks_Call) RunAndReturn

Jump to

Keyboard shortcuts

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