mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-03 06:49:38 +08:00
change: relocate
This commit is contained in:
11
models.go
11
models.go
@@ -108,9 +108,14 @@ func (tc *TestCase) ToTestCase() (*TestCase, error) {
|
||||
return tc, nil
|
||||
}
|
||||
|
||||
// TestCasePath implements ITestCase interface.
|
||||
type TestCasePath struct {
|
||||
Path string
|
||||
func (tc *TestCase) ToTCase() (*TCase, error) {
|
||||
tCase := TCase{
|
||||
Config: tc.Config.ToStruct(),
|
||||
}
|
||||
for _, step := range tc.TestSteps {
|
||||
tCase.TestSteps = append(tCase.TestSteps, step.ToStruct())
|
||||
}
|
||||
return &tCase, nil
|
||||
}
|
||||
|
||||
type testCaseSummary struct{}
|
||||
|
||||
Reference in New Issue
Block a user