testutil

package
v0.0.0-...-6aa8790 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeTrdlBinPath

func ComputeTrdlBinPath() string

func CopyIn

func CopyIn(sourcePath, destinationPath string)

func FixturePath

func FixturePath(paths ...string) string

func GetHeadCommit

func GetHeadCommit(workTreeDir string) string

func GetRandomString

func GetRandomString(n int) string

func GetTempDir

func GetTempDir() string

func MeetsRequirementTools

func MeetsRequirementTools(requiredSuiteTools []string) bool

func RunCommandWithOptions

func RunCommandWithOptions(dir, command string, args []string, options RunCommandOptions) ([]byte, error)

func RunSucceedCommand

func RunSucceedCommand(dir, command string, args ...string)

func SucceedCommandOutputString

func SucceedCommandOutputString(dir, command string, args ...string) string

func TrdlBinArgs

func TrdlBinArgs(userArgs ...string) []string

Types

type RunCommandOptions

type RunCommandOptions struct {
	ExtraEnv      []string
	ToStdin       string
	ShouldSucceed bool
}

Jump to

Keyboard shortcuts

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