Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bracesdev/errtrace
/ TestWrapNil
Function
TestWrapNil
errtrace_test.go:14–18 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
12
)
13
14
func
TestWrapNil(t *testing.T) {
15
if
err := errtrace.Wrap(nil); err != nil {
16
t.Errorf(
"Wrap(): want nil, got %v"
, err)
17
}
18
}
19
20
func
TestWrappedError(t *testing.T) {
21
orig := errors.New(
"foo"
)
Callers
nothing calls this directly
Calls
1
Wrap
Function · 0.92
Tested by
no test coverage detected