Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandBuilder ¶
func NewTestCommand ¶
func NewTestCommand() CommandBuilder
type Context ¶
type Context struct { Debug bool FileSystem *afero.Afero In io.Reader Out io.Writer Err io.Writer NewCommand CommandBuilder }
func (*Context) CopyDirectory ¶
func (*Context) WriteOutput ¶
WriteOutput writes the given lines to a file in the output directory
type TestContext ¶
func NewTestContext ¶
func NewTestContext(t *testing.T) *TestContext
NewTestContext initializes a configuration suitable for testing, with the output buffered, and an in-memory file system.
func (*TestContext) AddTestDirectory ¶
func (c *TestContext) AddTestDirectory(srcDir, destDir string)
func (*TestContext) AddTestFile ¶
func (c *TestContext) AddTestFile(src, dest string) []byte
TODO: Replace these functions with a union file system for test data
func (*TestContext) GetOutput ¶
func (c *TestContext) GetOutput() string
Click to show internal directories.
Click to hide internal directories.