mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-11 18:11:21 +08:00
refactor: complete ActionOptions unification and pointer type optimization
This commit is contained in:
12
summary.go
12
summary.go
@@ -28,7 +28,7 @@ func NewSummary() *Summary {
|
||||
Success: true,
|
||||
Stat: &Stat{
|
||||
TestSteps: TestStepStat{
|
||||
Actions: make(map[option.ActionMethod]int),
|
||||
Actions: make(map[option.ActionName]int),
|
||||
},
|
||||
},
|
||||
Time: &TestCaseTime{
|
||||
@@ -146,10 +146,10 @@ type TestCaseStat struct {
|
||||
}
|
||||
|
||||
type TestStepStat struct {
|
||||
Total int `json:"total" yaml:"total"`
|
||||
Successes int `json:"successes" yaml:"successes"`
|
||||
Failures int `json:"failures" yaml:"failures"`
|
||||
Actions map[option.ActionMethod]int `json:"actions" yaml:"actions"` // record action stats
|
||||
Total int `json:"total" yaml:"total"`
|
||||
Successes int `json:"successes" yaml:"successes"`
|
||||
Failures int `json:"failures" yaml:"failures"`
|
||||
Actions map[option.ActionName]int `json:"actions" yaml:"actions"` // record action stats
|
||||
}
|
||||
|
||||
type TestCaseTime struct {
|
||||
@@ -167,7 +167,7 @@ func NewCaseSummary() *TestCaseSummary {
|
||||
return &TestCaseSummary{
|
||||
Success: true,
|
||||
Stat: &TestStepStat{
|
||||
Actions: make(map[option.ActionMethod]int),
|
||||
Actions: make(map[option.ActionName]int),
|
||||
},
|
||||
Time: &TestCaseTime{
|
||||
StartAt: time.Now(),
|
||||
|
||||
Reference in New Issue
Block a user