MCPcopy
hub / github.com/ossf/scorecard / scoreToString

Function scoreToString

pkg/scorecard/scorecard_result.go:75–80  ·  view source on GitHub ↗
(s float64)

Source from the content-addressed store, hash-verified

73}
74
75func scoreToString(s float64) string {
76 if s == checker.InconclusiveResultScore {
77 return "?"
78 }
79 return fmt.Sprintf("%.1f", s)
80}
81
82// GetAggregateScore returns the aggregate score.
83func (r *Result) GetAggregateScore(checkDocs docChecks.Doc) (float64, error) {

Callers 1

AsStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected