Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFixture ¶
LoadFixture loads the content of a fixture file.
func LoadFixtureReader ¶
LoadFixtureReader loads the content of a fixture file and returns with an io.Reader.
Types ¶
type CommandWithOutput ¶
type CommandWithOutput struct {
Command string
StdOut []byte
StdErr []byte
ExpectedNumberOfCalls int
NumberCalls int
}
CommandWithOutput is a wrapper for tests.
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor is for Commander to test.
func NewExecutor ¶
func NewExecutor(commands []CommandWithOutput) *Executor
NewExecutor is a factory to create Executor.
func (*Executor) CommandContext ¶
CommandContext is for commands with context.
type FixtureFileNotFound ¶
FixtureFileNotFound occurs when the requested fixture file does not exist.
func (FixtureFileNotFound) Error ¶
func (e FixtureFileNotFound) Error() string
type MissingCallError ¶
MissingCallError is for missing errors.
func (MissingCallError) Error ¶
func (e MissingCallError) Error() string
type UnexpectedCommandCallError ¶
type UnexpectedCommandCallError struct {
Command string
}
UnexpectedCommandCallError is error.
func (UnexpectedCommandCallError) Error ¶
func (e UnexpectedCommandCallError) Error() string
Click to show internal directories.
Click to hide internal directories.