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
+1 -1
View File
@@ -132,7 +132,7 @@ func loadTestFile(path *TestCasePath) (*TestCase, error) {
var tc *TCase var tc *TCase
var err error var err error
casePath := path.string casePath := path.Path
ext := filepath.Ext(casePath) ext := filepath.Ext(casePath)
switch ext { switch ext {
case ".json": case ".json":
+1 -1
View File
@@ -82,7 +82,7 @@ func (tc *TestCase) ToStruct() (*TestCase, error) {
} }
type TestCasePath struct { type TestCasePath struct {
string Path string
} }
func (path *TestCasePath) ToStruct() (*TestCase, error) { func (path *TestCasePath) ToStruct() (*TestCase, error) {