helpers

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinDigit = 10000
	MaxDigit = 20000
)
View Source
const ArchsugarDefaultPath = ".archsugar"

Variables

View Source
var (
	BaseDir string = func() string {
		home, err := homedir.Dir()
		if err != nil {
			log.Fatalf("homedir.Dir(), got %v", err)
		}
		return path.Join(home, ArchsugarDefaultPath)
	}()
)

Functions

func CreateRandomScenario added in v0.2.0

func CreateRandomScenario(t *testing.T, baseDir string) (*scenario.Scenario, error)

func RandomDigit added in v0.2.0

func RandomDigit() int

func RandomScenarioDesc added in v0.2.0

func RandomScenarioDesc() string

func RandomScenarioName added in v0.2.0

func RandomScenarioName() string

func TmpDir added in v0.2.0

func TmpDir() string

TmpDir - generate a tmpDir, avoiding very rare collisions

Types

This section is empty.

Jump to

Keyboard shortcuts

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