Documentation
¶
Index ¶
- Constants
- Variables
- func GetProjectFileHome() string
- func GetTestFileHome() string
- func GetTestFilePath(filepath string) (string, error)
- func LoadTestFile(filepath string) ([]byte, error)
- func RandBytes(t *testing.T) []byte
- func RandString(t *testing.T) string
- func RandStrings(t *testing.T) []string
- type YAMLTestData
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 LoadTestFile ¶
func RandString ¶
func RandStrings ¶
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)
Click to show internal directories.
Click to hide internal directories.