MCPcopy Create free account
hub / github.com/bracesdev/errtrace / wrap

Function wrap

internal/pc/pc_test.go:9–11  ·  view source on GitHub ↗

go:noinline

(err error)

Source from the content-addressed store, hash-verified

7
8//go:noinline
9func wrap(err error) uintptr {
10 return GetCaller()
11}
12
13func BenchmarkGetCaller(b *testing.B) {
14 err := errors.New("test")

Callers 1

BenchmarkGetCallerFunction · 0.70

Calls 1

GetCallerFunction · 0.70

Tested by

no test coverage detected