MCPcopy
hub / github.com/sourcegraph/checkup / Status

Method Status

types/result.go:113–122  ·  view source on GitHub ↗

Status returns a text representation of the overall status indicated in r.

()

Source from the content-addressed store, hash-verified

111// Status returns a text representation of the overall status
112// indicated in r.
113func (r Result) Status() StatusText {
114 if r.Down {
115 return StatusDown
116 } else if r.Degraded {
117 return StatusDegraded
118 } else if r.Healthy {
119 return StatusHealthy
120 }
121 return StatusUnknown
122}

Callers 4

TestResultStatusFunction · 0.95
StringMethod · 0.95
SendMethod · 0.80
renderMessageFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestResultStatusFunction · 0.76