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

Function formatProbe

core/format.go:239–249  ·  view source on GitHub ↗

formatProbe renders results with custom probe fields

(group map[string]map[string]*baseline.Baseline, opts Option, probeFields string)

Source from the content-addressed store, hash-verified

237
238// formatProbe renders results with custom probe fields
239func formatProbe(group map[string]map[string]*baseline.Baseline, opts Option, probeFields string) {
240 probes := strings.Split(probeFields, ",")
241 for _, results := range group {
242 for _, result := range results {
243 if !opts.Fuzzy && result.IsFuzzy {
244 continue
245 }
246 logs.Log.Console(result.ProbeOutput(probes) + "\n")
247 }
248 }
249}
250
251func PrintPreset() {
252 logs.Log.Console("internal rules:\n")

Callers 1

FormatFunction · 0.85

Calls 1

ProbeOutputMethod · 0.80

Tested by

no test coverage detected