dmock

package
Version: v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 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
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL