scripts

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (_m *MockMaker) Make(config map[string]types.Script) (scripts.Scripts, error)

Make provides a mock function with given fields: config

type MockMaker_Expecter

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

func (*MockMaker_Expecter) Make

func (_e *MockMaker_Expecter) Make(config interface{}) *MockMaker_Make_Call

Make is a helper method to define mock.On call

  • config map[string]types.Script

type MockMaker_Make_Call

type MockMaker_Make_Call struct {
	*mock.Call
}

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

func (*MockMaker_Make_Call) Return

func (*MockMaker_Make_Call) Run

func (_c *MockMaker_Make_Call) Run(run func(config map[string]types.Script)) *MockMaker_Make_Call

func (*MockMaker_Make_Call) RunAndReturn

func (_c *MockMaker_Make_Call) RunAndReturn(run func(map[string]types.Script) (scripts.Scripts, error)) *MockMaker_Make_Call

type MockScript

type MockScript struct {
	mock.Mock
}

MockScript is an autogenerated mock type for the Script type

func NewMockScript

func NewMockScript(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockScript

NewMockScript creates a new instance of MockScript. 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 (*MockScript) Content

func (_m *MockScript) Content() string

Content provides a mock function with given fields:

func (*MockScript) EXPECT

func (_m *MockScript) EXPECT() *MockScript_Expecter

func (*MockScript) Mode

func (_m *MockScript) Mode() fs.FileMode

Mode provides a mock function with given fields:

func (*MockScript) Parameters

func (_m *MockScript) Parameters() parameters.Parameters

Parameters provides a mock function with given fields:

func (*MockScript) Path

func (_m *MockScript) Path() string

Path provides a mock function with given fields:

type MockScript_Content_Call

type MockScript_Content_Call struct {
	*mock.Call
}

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

func (*MockScript_Content_Call) Return

func (*MockScript_Content_Call) Run

func (_c *MockScript_Content_Call) Run(run func()) *MockScript_Content_Call

func (*MockScript_Content_Call) RunAndReturn

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

type MockScript_Expecter

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

func (*MockScript_Expecter) Content

Content is a helper method to define mock.On call

func (*MockScript_Expecter) Mode

Mode is a helper method to define mock.On call

func (*MockScript_Expecter) Parameters

Parameters is a helper method to define mock.On call

func (*MockScript_Expecter) Path

Path is a helper method to define mock.On call

type MockScript_Mode_Call

type MockScript_Mode_Call struct {
	*mock.Call
}

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

func (*MockScript_Mode_Call) Return

func (*MockScript_Mode_Call) Run

func (_c *MockScript_Mode_Call) Run(run func()) *MockScript_Mode_Call

func (*MockScript_Mode_Call) RunAndReturn

func (_c *MockScript_Mode_Call) RunAndReturn(run func() fs.FileMode) *MockScript_Mode_Call

type MockScript_Parameters_Call

type MockScript_Parameters_Call struct {
	*mock.Call
}

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

func (*MockScript_Parameters_Call) Return

func (*MockScript_Parameters_Call) Run

func (*MockScript_Parameters_Call) RunAndReturn

type MockScript_Path_Call

type MockScript_Path_Call struct {
	*mock.Call
}

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

func (*MockScript_Path_Call) Return

func (*MockScript_Path_Call) Run

func (_c *MockScript_Path_Call) Run(run func()) *MockScript_Path_Call

func (*MockScript_Path_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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