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

Function checkIsRNode

contracts/dpor/rnode/rnode_test.go:500–506  ·  view source on GitHub ↗
(t *testing.T, instance *rnode.Rnode, addr common.Address, expect bool)

Source from the content-addressed store, hash-verified

498}
499
500func checkIsRNode(t *testing.T, instance *rnode.Rnode, addr common.Address, expect bool) {
501 isRNode, err := instance.IsRnode(nil, addr)
502 checkError(t, "is rnode", err)
503 if isRNode != expect {
504 t.Errorf("rnode check %v != %v", isRNode, expect)
505 }
506}
507
508func checkRNodeNum(t *testing.T, instance *rnode.Rnode, amount int) {
509 num, err := instance.GetRnodeNum(nil)

Callers 9

TestRNodeJoinRNodeFunction · 0.85
TestRNodeNotEnoughInvestFunction · 0.85
TestRNodeJoinRNodeTwiceFunction · 0.85
TestRNodeMultiRNodesFunction · 0.85
TestRNodeThresholdFunction · 0.85
TestRefundFunction · 0.85
TestRefundAllFunction · 0.85

Calls 2

checkErrorFunction · 0.70
IsRnodeMethod · 0.45

Tested by

no test coverage detected