test

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ExpectFile1    = "test.yml"
	ExpectFile2    = "test-with-filepath.yml"
	ExpectFileMode = uint(0644)
)

Variables

View Source
var (
	ExpectFileDate = time.Date(
		2020, 03, 01,
		05, 12, 36, 926074319,
		time.UTC,
	)
)

Functions

func GetProjectFileHome

func GetProjectFileHome() string

func GetTestFileHome

func GetTestFileHome() string

func GetTestFilePath

func GetTestFilePath(filepath string) (string, error)

func LoadTestFile

func LoadTestFile(filepath string) ([]byte, error)

func RandBytes

func RandBytes(t *testing.T) []byte

func RandString

func RandString(t *testing.T) string

func RandStrings

func RandStrings(t *testing.T) []string

Types

type YAMLTestData

type YAMLTestData struct {
	Meta map[string]string `yaml:"meta"`
	Test map[string]string `yaml:"test"`
}

func LoadTestYAMLData

func LoadTestYAMLData(filepath string) (*YAMLTestData, error)

Jump to

Keyboard shortcuts

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