()
| 86 | return s.String() |
| 87 | } |
| 88 | func (stat *Statistor) String() string { |
| 89 | var s strings.Builder |
| 90 | s.WriteString(fmt.Sprintf("[stat] %s took %d s, request total: %d, finish: %d/%d(%d skipped), found: %d, check: %d, failed: %d", |
| 91 | stat.BaseUrl, |
| 92 | stat.EndTime-stat.StartTime, |
| 93 | stat.ReqTotal, |
| 94 | stat.End, |
| 95 | stat.Total, |
| 96 | stat.Skipped, |
| 97 | stat.FoundNumber, |
| 98 | stat.CheckNumber, |
| 99 | stat.FailedNumber)) |
| 100 | |
| 101 | if stat.FuzzyNumber != 0 { |
| 102 | s.WriteString(", fuzzy: " + strconv.Itoa(stat.FuzzyNumber)) |
| 103 | } |
| 104 | if stat.FilteredNumber != 0 { |
| 105 | s.WriteString(", filtered: " + strconv.Itoa(stat.FilteredNumber)) |
| 106 | } |
| 107 | if stat.WafedNumber != 0 { |
| 108 | s.WriteString(", wafed: " + strconv.Itoa(stat.WafedNumber)) |
| 109 | } |
| 110 | return s.String() |
| 111 | } |
| 112 | |
| 113 | func (stat *Statistor) CountString() string { |
| 114 | if len(stat.Counts) == 0 { |
no outgoing calls
no test coverage detected