Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chain/txvm
/ ExampleSub_return
Function
ExampleSub_return
errors/example_test.go:15–19 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
13
}
14
15
func
ExampleSub_return() {
16
err := sign()
17
err = errors.Sub(ErrInvalidKey, err)
18
return
19
}
20
21
func
sign() error {
return
nil }
Callers
nothing calls this directly
Calls
2
Sub
Function · 0.92
sign
Function · 0.70
Tested by
no test coverage detected