MCPcopy Create free account
hub / github.com/CPChain/chain / init

Function init

cmd/cpchain/run_test.go:45–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43}
44
45func init() {
46 // Run the app if we've been exec'd as "cpchain-test" in runCpchain.
47 reexec.Register("cpchain-test", func() {
48 if err := newApp().Run(os.Args); err != nil {
49 fmt.Fprintln(os.Stderr, err)
50 os.Exit(1)
51 }
52 os.Exit(0)
53 })
54}
55
56func TestMain(m *testing.M) {
57 // check if we have been reexec'd

Callers

nothing calls this directly

Calls 3

newAppFunction · 0.70
RunMethod · 0.65
RegisterMethod · 0.45

Tested by

no test coverage detected