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

Function checkError

contracts/dpor/rnode/rnode_test.go:494–498  ·  view source on GitHub ↗
(t *testing.T, title string, err error)

Source from the content-addressed store, hash-verified

492}
493
494func checkError(t *testing.T, title string, err error) {
495 if err != nil {
496 t.Fatal(title, ":", err)
497 }
498}
499
500func checkIsRNode(t *testing.T, instance *rnode.Rnode, addr common.Address, expect bool) {
501 isRNode, err := instance.IsRnode(nil, addr)

Callers 13

TestRNodeJoinRNodeFunction · 0.70
TestRNodeNotEnoughInvestFunction · 0.70
TestRNodeJoinRNodeTwiceFunction · 0.70
TestRNodeMultiRNodesFunction · 0.70
TestRNodeThresholdFunction · 0.70
TestRefundFunction · 0.70
TestRefundAllFunction · 0.70
checkIsRNodeFunction · 0.70
checkRNodeNumFunction · 0.70

Calls 1

FatalMethod · 0.65

Tested by

no test coverage detected