test_util

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestTempDir string
)

Functions

func GetCurrentUser

func GetCurrentUser(t *testing.T) *user.User

func GetCurrentUserGroup

func GetCurrentUserGroup(t *testing.T) *user.Group

func RunCommandFormattingTest

func RunCommandFormattingTest(t *testing.T, command *cobra.Command)

* Ensures that command names and parameters are formatted in a consistent way. All CLIs should run this against their root command

func TempPath

func TempPath(pathInTmp string) string

* Returns the given path as a sub-path of the Ruckstack "temporary" directory. Any "*" in the path will be replaced with a random value

Types

This section is empty.

Jump to

Keyboard shortcuts

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