feat: data-driven.

This commit is contained in:
徐聪
2021-12-29 15:02:12 +08:00
parent 2dd1aa23e3
commit fdc66ddec0
4 changed files with 37 additions and 31 deletions

View File

@@ -96,7 +96,7 @@ func loadFromYAML(path string) (*TCase, error) {
return tc, err
}
func loadFromCSV(path string) []map[string]string {
func LoadFromCSV(path string) []map[string]string {
path, err := filepath.Abs(path)
if err != nil {
log.Error().Str("path", path).Err(err).Msg("convert absolute path failed")