mocks

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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 CommandRunner

type CommandRunner struct {
	mock.Mock
}

CommandRunner is an autogenerated mock type for the commandRunner type

func NewCommandRunner

func NewCommandRunner(t mockConstructorTestingTNewCommandRunner) *CommandRunner

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

func (*CommandRunner) Run

func (_m *CommandRunner) Run(ctx context.Context, cmd string, args ...string) error

Run provides a mock function with given fields: ctx, cmd, args

Jump to

Keyboard shortcuts

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