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

Method SourceString

pkg/statistor.go:129–140  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127}
128
129func (stat *Statistor) SourceString() string {
130 if len(stat.Sources) == 0 {
131 return ""
132 }
133 var s strings.Builder
134 s.WriteString("[stat] ")
135 s.WriteString(stat.BaseUrl)
136 for k, v := range stat.Sources {
137 s.WriteString(fmt.Sprintf(" %s: %d,", k.Name(), v))
138 }
139 return s.String()
140}
141
142func (stat *Statistor) ColorCountString() string {
143 if len(stat.Counts) == 0 {

Callers 1

PrintStatMethod · 0.80

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected