commandtest

package
v0.99.0-sumo-0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapCommand

func WrapCommand(cmd string, args []string) (string, []string)

WrapCommand adjusts a command and arguments to run emuldated by a go test binary wrapped with WrapTestMain

func WrapTestMain

func WrapTestMain(m *testing.M)

WrapTestMain can be used in TestMain to wrap the go test binary with basic command emulation, normalizing the test environment across platforms.

Usage:

func TestMain(m *testing.M) {
	commandtest.WrapTestMain(m)
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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