pasumantest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestMasterPassword = "pass"
)

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(c *cobra.Command, args ...string) (string, error)

func Init

func Init(t *testing.T, profile string) string

func InitProfile

func InitProfile(profile string) error

func Teardown

func Teardown(t *testing.T, c *cobra.Command)

Teardown - reset flags to default value and run all "PostRun" functions. For some reason, `f.Value.Set(f.DefValue)` does not work if the value is of type slice and default value is nil because if so, f.DefValue is the string "[]".

Types

This section is empty.

Jump to

Keyboard shortcuts

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