testing

package
v0.0.0-...-f19ae85 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2015 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FlagRunMain = flag.Bool("run-main", false, "Run the application's main function for recursive testing")

FlagRunMain is used to indicate that the -run-main flag was used.

Functions

func BadRun

func BadRun(c *gc.C, exit int, args ...string) string

BadRun is used to run a command, check the exit code, and return the output.

func HelpText

func HelpText(command cmd.Command, name string) string

HelpText returns a command's formatted help text.

func NullContext

func NullContext(c *gc.C) *cmd.Context

NullContext returns a no-op command context.

func RunCommand

func RunCommand(ctx *cmd.Context, com cmd.Command, args ...string) (opc chan dummy.Operation, errc chan error)

RunCommand runs the command and returns channels holding the command's operations and errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL