change: make API more concise

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

View File

@@ -65,14 +65,14 @@ type TCase struct {
TestSteps []*TStep `json:"teststeps" yaml:"teststeps"`
}
// IStep represents interface for all types for teststeps
// IStep represents interface for all types for teststeps.
type IStep interface {
name() string
getType() string
toStruct() *TStep
Name() string
Type() string
ToStruct() *TStep
}
// ITestCase represents interface for all types for testcases
// ITestCase represents interface for all types for testcases.
type ITestCase interface {
ToTestCase() (*TestCase, error)
ToTCase() (*TCase, error)