refactor: NewStep

This commit is contained in:
debugtalk
2021-12-08 13:26:12 +08:00
parent a55f523fd7
commit 929247723a
6 changed files with 110 additions and 102 deletions
+3 -2
View File
@@ -97,8 +97,8 @@ type ITestCase interface {
ToTCase() (*TCase, error)
}
// TestCase is a container for one testcase.
// used for testcase runner
// TestCase is a container for one testcase, which is used for testcase runner.
// TestCase implements ITestCase interface.
type TestCase struct {
Config IConfig
TestSteps []IStep
@@ -108,6 +108,7 @@ func (tc *TestCase) ToTestCase() (*TestCase, error) {
return tc, nil
}
// TestCasePath implements ITestCase interface.
type TestCasePath struct {
Path string
}