MCPcopy Create free account
hub / github.com/felixge/httpsnoop / errContains

Function errContains

capture_metrics_test.go:128–136  ·  view source on GitHub ↗
(err error, s string)

Source from the content-addressed store, hash-verified

126}
127
128func errContains(err error, s string) bool {
129 var errS string
130 if err == nil {
131 errS = ""
132 } else {
133 errS = err.Error()
134 }
135 return strings.Contains(errS, s)
136}

Callers 1

TestCaptureMetricsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…