Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mock ¶
type Mock struct {
Commands map[string]bool // which commands exist
Responses map[string]string // command pattern -> output
Errors map[string]error // command pattern -> error
RecordedCalls []RecordedCall // all calls made
}
Mock implements Commander for testing
type Real ¶
type Real struct{}
Real implements Commander using actual system commands
type RecordedCall ¶
RecordedCall captures a command invocation
Click to show internal directories.
Click to hide internal directories.