MCPcopy Index your code
hub / github.com/bracesdev/errtrace / BenchmarkWrap

Function BenchmarkWrap

errtrace_test.go:194–201  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

192}
193
194func BenchmarkWrap(b *testing.B) {
195 err := errors.New("foo")
196 b.RunParallel(func(pb *testing.PB) {
197 for pb.Next() {
198 _ = errtrace.Wrap(err)
199 }
200 })
201}
202
203func BenchmarkFmtErrorf(b *testing.B) {
204 err := errors.New("foo")

Callers

nothing calls this directly

Calls 1

WrapFunction · 0.92

Tested by

no test coverage detected