From 9099410f6ebafe5712b84a8574a5f72764838fe2 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Sun, 10 Oct 2021 01:09:36 +0800 Subject: [PATCH] change: TestCasePath Path field --- convert.go | 2 +- models.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/convert.go b/convert.go index c99d2bb7..67c8b174 100644 --- a/convert.go +++ b/convert.go @@ -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": diff --git a/models.go b/models.go index 87e67f29..a8fc8a54 100644 --- a/models.go +++ b/models.go @@ -82,7 +82,7 @@ func (tc *TestCase) ToStruct() (*TestCase, error) { } type TestCasePath struct { - string + Path string } func (path *TestCasePath) ToStruct() (*TestCase, error) {