cmd

package
v0.0.0-...-b40b7a5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(exp icmd.Expected, args ...string) *icmd.Result

Assert runs a command and verifies exit code (0)

func AssertIncreasedTimeout

func AssertIncreasedTimeout(exp icmd.Expected, timeout time.Duration, args ...string) *icmd.Result

func MustSuccedIncreasedTimeout

func MustSuccedIncreasedTimeout(timeout time.Duration, args ...string) *icmd.Result

func MustSucceed

func MustSucceed(args ...string) *icmd.Result

MustSucceed asserts that the command ran with 0 exit code

func Run

func Run(cmd ...string) *icmd.Result

func RunIncreasedTimeout

func RunIncreasedTimeout(timeout time.Duration, cmd ...string) *icmd.Result

Types

type FooCmd

type FooCmd struct {
	Command  []string
	Expected icmd.Expected
}

Jump to

Keyboard shortcuts

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