test

package
v0.0.27 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTempFile

func CreateTempFile(dir string, name string) *os.File

func MockArgs

func MockArgs(args []string)

MockArgs mocks os.Args with values passed to thi func

func NewTestConfig

func NewTestConfig(configRaw *SerializableTestConfig) func()

NewTestConfig creates config, write it to temp dir, set LETS_CONFIG_DIR with LETS_CONFIG and return cleanup func

Types

type SerializableTestConfig

type SerializableTestConfig struct {
	Shell    string
	Commands map[string]map[string]string
}

Jump to

Keyboard shortcuts

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