MCPcopy Create free account
hub / github.com/chainreactors/spray / String

Method String

pkg/statistor.go:88–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 return s.String()
87}
88func (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
113func (stat *Statistor) CountString() string {
114 if len(stat.Counts) == 0 {

Callers 5

ColorStringMethod · 0.95
CountStringMethod · 0.95
SourceStringMethod · 0.95
ColorCountStringMethod · 0.95
ColorSourceStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected