mocks

package
v0.0.0-...-4b40e25 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GetRunWithoutRetryFunc fetches the mock command's `RunWithoutRetry` func.
	GetRunWithoutRetryFunc func(c *util.Command) (string, error)
)

Functions

This section is empty.

Types

type MockCommandRunner

type MockCommandRunner struct {
	RunWithoutRetryFunc func(c *util.Command) (string, error)
	Commands            []string
}

MockCommandRunner is the mock command.

func (*MockCommandRunner) RunWithoutRetry

func (m *MockCommandRunner) RunWithoutRetry(c *util.Command) (string, error)

RunWithoutRetry is the mock command's `RunWithoutRetry` func.

Jump to

Keyboard shortcuts

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