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

Function TestRulesIsNotCpchain

configs/general_test.go:130–134  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

128}
129
130func TestRulesIsNotCpchain(t *testing.T) {
131 cc := ChainConfig{Dpor: nil, ChainID: nil}
132 rule := cc.Rules(nil)
133 assert.False(t, rule.IsCpchain)
134}
135
136func TestRulesIsCpchain(t *testing.T) {
137 cc := ChainConfig{Dpor: nil, ChainID: big.NewInt(MainnetChainId)}

Callers

nothing calls this directly

Calls 1

RulesMethod · 0.95

Tested by

no test coverage detected