mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-10 10:19:38 +08:00
docs: add description for interfaces
This commit is contained in:
11
models.go
11
models.go
@@ -78,20 +78,25 @@ type TCase struct {
|
||||
TestSteps []*TStep `json:"teststeps" yaml:"teststeps"`
|
||||
}
|
||||
|
||||
// IConfig represents interface for testcase config.
|
||||
// IConfig represents interface for testcase config,
|
||||
// includes Config.
|
||||
type IConfig interface {
|
||||
Name() string
|
||||
ToStruct() *TConfig
|
||||
}
|
||||
|
||||
// IStep represents interface for all types for teststeps.
|
||||
// IStep represents interface for all types for teststeps, includes:
|
||||
// StepRequest, StepRequestWithOptionalArgs, StepRequestValidation, StepRequestExtraction,
|
||||
// StepTestCaseWithOptionalArgs,
|
||||
// StepTransaction, StepRendezvous.
|
||||
type IStep interface {
|
||||
Name() string
|
||||
Type() string
|
||||
ToStruct() *TStep
|
||||
}
|
||||
|
||||
// ITestCase represents interface for all types for testcases.
|
||||
// ITestCase represents interface for testcases,
|
||||
// includes TestCase and TestCasePath.
|
||||
type ITestCase interface {
|
||||
ToTestCase() (*TestCase, error)
|
||||
ToTCase() (*TCase, error)
|
||||
|
||||
Reference in New Issue
Block a user