mocks

package
v2.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentWriter

type EnvironmentWriter struct {
	mock.Mock
}

EnvironmentWriter is an autogenerated mock type for the EnvironmentWriter type

func NewEnvironmentWriter

func NewEnvironmentWriter(t mockConstructorTestingTNewEnvironmentWriter) *EnvironmentWriter

NewEnvironmentWriter creates a new instance of EnvironmentWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EnvironmentWriter) Write

func (_m *EnvironmentWriter) Write(dir string, environment map[string]string) error

Write provides a mock function with given fields: dir, environment

type ExecD

type ExecD struct {
	mock.Mock
}

ExecD is an autogenerated mock type for the ExecD type

func NewExecD

func NewExecD(t mockConstructorTestingTNewExecD) *ExecD

NewExecD creates a new instance of ExecD. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExecD) Execute

func (_m *ExecD) Execute() (map[string]string, error)

Execute provides a mock function with given fields:

type ExecDWriter

type ExecDWriter struct {
	mock.Mock
}

ExecDWriter is an autogenerated mock type for the ExecDWriter type

func NewExecDWriter

func NewExecDWriter(t mockConstructorTestingTNewExecDWriter) *ExecDWriter

NewExecDWriter creates a new instance of ExecDWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExecDWriter) Write

func (_m *ExecDWriter) Write(value map[string]string) error

Write provides a mock function with given fields: value

type ExitHandler

type ExitHandler struct {
	mock.Mock
}

ExitHandler is an autogenerated mock type for the ExitHandler type

func NewExitHandler

func NewExitHandler(t mockConstructorTestingTNewExitHandler) *ExitHandler

NewExitHandler creates a new instance of ExitHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ExitHandler) Error

func (_m *ExitHandler) Error(_a0 error)

Error provides a mock function with given fields: _a0

func (*ExitHandler) Fail

func (_m *ExitHandler) Fail()

Fail provides a mock function with given fields:

func (*ExitHandler) Pass

func (_m *ExitHandler) Pass()

Pass provides a mock function with given fields:

type TOMLWriter

type TOMLWriter struct {
	mock.Mock
}

TOMLWriter is an autogenerated mock type for the TOMLWriter type

func NewTOMLWriter

func NewTOMLWriter(t mockConstructorTestingTNewTOMLWriter) *TOMLWriter

NewTOMLWriter creates a new instance of TOMLWriter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TOMLWriter) Write

func (_m *TOMLWriter) Write(path string, value interface{}) error

Write provides a mock function with given fields: path, value

Jump to

Keyboard shortcuts

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