MCPcopy
hub / github.com/google/seesaw / check

Function check

test_tools/healthcheck_test_tool/main.go:60–69  ·  view source on GitHub ↗
(hc healthcheck.Checker)

Source from the content-addressed store, hash-verified

58)
59
60func check(hc healthcheck.Checker) error {
61 r := hc.Check(*timeout)
62 s := "success"
63 if !r.Success {
64 s = "failure"
65 return fmt.Errorf("%v - %v (healthcheck %s)", hc, r, s)
66 }
67 log.Printf("%v - %v (healthcheck %s)", hc, r, s)
68 return nil
69}
70
71func unquote(s string) string {
72 if !(strings.HasPrefix(s, `"`) || strings.HasPrefix(s, "`")) {

Callers 5

doDNSCheckFunction · 0.70
doHTTPCheckFunction · 0.70
doRADIUSCheckFunction · 0.70
doTCPCheckFunction · 0.70
doUDPCheckFunction · 0.70

Calls 1

CheckMethod · 0.65

Tested by

no test coverage detected