dmock

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRunner

type MockRunner struct {
	mock.Mock
}

MockRunner is used to mock shell calls.

func New

func New() *MockRunner

New creates a new MockRunner.

func (*MockRunner) RunE

func (m *MockRunner) RunE(ctx context.Context,
	splitResult *dash.SplitResult,
	settings ...dash.SettingsFunc,
) (err error)

func (*MockRunner) RunWithOutputE

func (m *MockRunner) RunWithOutputE(ctx context.Context,
	splitResult *dash.SplitResult,
	settings ...dash.SettingsFunc,
) (out string, err error)

type WithDir added in v0.2.9

type WithDir struct {
	Dir string
}

Jump to

Keyboard shortcuts

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