refactor: NewConfig

This commit is contained in:
debugtalk
2021-12-07 13:29:06 +08:00
parent b8573c2ea9
commit d31c30476f
14 changed files with 88 additions and 86 deletions

View File

@@ -56,7 +56,7 @@ type TStep struct {
// TCase represents testcase data structure.
// Each testcase includes one public config and several sequential teststeps.
type TCase struct {
Config TConfig `json:"config" yaml:"config"`
Config *TConfig `json:"config" yaml:"config"`
TestSteps []*TStep `json:"teststeps" yaml:"teststeps"`
}
@@ -76,7 +76,7 @@ type ITestCase interface {
// TestCase is a container for one testcase.
// used for testcase runner
type TestCase struct {
Config TConfig
Config *TConfig
TestSteps []IStep
}