change: TestCasePath Path field

This commit is contained in:
debugtalk
2021-10-10 01:09:36 +08:00
parent b69b7dd00c
commit e1411c36da
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 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":

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) {