Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bracesdev/errtrace
/ errorsNew
Function
errorsNew
wrap_caller_test.go:27–30 ·
view source on GitHub ↗
(msg string)
Source
from the content-addressed store, hash-verified
25
}
26
27
func
errorsNew(msg string) error {
28
caller := errtrace.GetCaller()
29
return
caller.Wrap(errors.New(msg))
30
}
31
32
func
TestGetCallerWrap_WrapExisting(t *testing.T) {
33
err := callWrapExisting()
Callers
1
callErrorsNew
Function · 0.85
Calls
2
GetCaller
Function · 0.92
Wrap
Method · 0.80
Tested by
no test coverage detected