MCPcopy 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
15func ExampleSub_return() {
16 err := sign()
17 err = errors.Sub(ErrInvalidKey, err)
18 return
19}
20
21func sign() error { return nil }

Callers

nothing calls this directly

Calls 2

SubFunction · 0.92
signFunction · 0.70

Tested by

no test coverage detected