Documentation ¶
Index ¶
- func AssertCommandJsonOutput(t *testing.T, cmd *cobra.Command, err error, out, wantOutputErr string) bool
- func AssertCommandOutput(t *testing.T, cmd *cobra.Command, err error, out, wantOutput string) bool
- func ExecuteCommandC(root *cobra.Command, args []string, flags map[string]string) (c *cobra.Command, output string, err error)
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 ¶
AssertCommandOutput ensure that the command outputs a specific string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.