change: TestCasePath Path field

This commit is contained in:
debugtalk
2021-10-10 01:09:36 +08:00
parent e98d0dbd8e
commit 9099410f6e
2 changed files with 2 additions and 2 deletions

View File

@@ -132,7 +132,7 @@ func loadTestFile(path *TestCasePath) (*TestCase, error) {
var tc *TCase
var err error
casePath := path.string
casePath := path.Path
ext := filepath.Ext(casePath)
switch ext {
case ".json":

View File

@@ -82,7 +82,7 @@ func (tc *TestCase) ToStruct() (*TestCase, error) {
}
type TestCasePath struct {
string
Path string
}
func (path *TestCasePath) ToStruct() (*TestCase, error) {