Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bracesdev/errtrace
/ Error
Method
Error
errtrace_test.go:40–42 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
38
type
myError
struct
{ x int }
39
40
func
(m *myError) Error() string {
41
return
"great sadness"
42
}
43
44
func
TestWrappedErrorAs(t *testing.T) {
45
err := errtrace.Wrap(&myError{x: 42})
Callers
1
TestWrappedError
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected