testing

package
v0.0.0-...-0000000 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2016 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.

Source Files

  • testing.go

Jump to

Keyboard shortcuts

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