Documentation
¶
Overview ¶
Package fake is a test-only executor over memfs and scripted commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownCommand = errors.New("memexecutor: no script for command")
ErrUnknownCommand reports a command with no script.
Functions ¶
Types ¶
type Executor ¶
type Executor struct {
Files *memfs.Workspace
FileOptions []files.Option
Commands *Runner
CommandOptions []commands.Option
}
Executor configures NewClient; a nil service stays unregistered.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner is a scripted commands.Runner.
Click to show internal directories.
Click to hide internal directories.