change: make API more concise

This commit is contained in:
debugtalk
2021-12-07 21:16:32 +08:00
parent e7e62e7c6a
commit 2b3c1b3c57
15 changed files with 154 additions and 137 deletions

View File

@@ -15,7 +15,7 @@ func (tc *TestCase) ToTCase() (*TCase, error) {
Config: tc.Config,
}
for _, step := range tc.TestSteps {
tCase.TestSteps = append(tCase.TestSteps, step.toStruct())
tCase.TestSteps = append(tCase.TestSteps, step.ToStruct())
}
return &tCase, nil
}