in tools/functional_test/src/runtest/specs.go [59:70]
func LoadSuite(path string) Suite {
data, err := ioutil.ReadFile(path)
check(err)
if strings.HasSuffix(path, ".json") {
return loadJsonSuite(data)
} else if strings.HasSuffix(path, ".yaml") || strings.HasSuffix(path, ".yml") {
return loadYamlSuite(data)
}
log.Fatalf("Unrecognized test suite file type: %v", path)
return Suite{}
}