commandstest

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCommandJsonOutput added in v0.0.70

func AssertCommandJsonOutput(t *testing.T, cmd *cobra.Command, err error, out, wantOutputErr string) bool

AssertCommandJsonOutput ensure that the command outputs a specific string.

func AssertCommandOutput

func AssertCommandOutput(t *testing.T, cmd *cobra.Command, err error, out, wantOutput string) bool

AssertCommandOutput ensure that the command outputs a specific string.

func ExecuteCommandC

func ExecuteCommandC(root *cobra.Command, args []string, flags map[string]string) (c *cobra.Command, output string, err error)

ExecuteCommandC will run a command to capture the output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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