Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFixture ¶
func LoadFixture(name string) ([]byte, error)
LoadFixture loads the content of a fixture file.
func Must ¶
func Must(content []byte, err error) []byte
Must be content. Basically go and panic if error happened.
func NewExecutor ¶
func NewExecutor(commands []FakeCommand) *testingexec.FakeExec
NewExecutor is a factory for Commander testing.
Types ¶
type FakeCommand ¶ added in v0.7.0
type FakeCommand struct {
Command string
StdOut []byte
StdErr []byte
}
FakeCommand is a command wrapper for testing.
type FixtureFileNotFoundError ¶ added in v0.9.0
type FixtureFileNotFoundError struct {
Path string
Name string
}
FixtureFileNotFoundError occurs when the requested fixture file does not exist.
Click to show internal directories.
Click to hide internal directories.