MCPcopy
hub / github.com/pkg/errors / yesErrors

Function yesErrors

bench_test.go:19–24  ·  view source on GitHub ↗
(at, depth int)

Source from the content-addressed store, hash-verified

17}
18
19func yesErrors(at, depth int) error {
20 if at >= depth {
21 return New("ye error")
22 }
23 return yesErrors(at+1, depth)
24}
25
26// GlobalE is an exported global to store the result of benchmark results,
27// preventing the compiler from optimising the benchmark functions away.

Callers 1

BenchmarkStackFormattingFunction · 0.85

Calls 1

NewFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…