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

Function TestRulesIsCpchain

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

Source from the content-addressed store, hash-verified

134}
135
136func TestRulesIsCpchain(t *testing.T) {
137 cc := ChainConfig{Dpor: nil, ChainID: big.NewInt(MainnetChainId)}
138 rule := cc.Rules(nil)
139 assert.True(t, rule.IsCpchain)
140}
141
142func TestChainConfigInfo(t *testing.T) {
143 SetRunMode(Dev)

Callers

nothing calls this directly

Calls 1

RulesMethod · 0.95

Tested by

no test coverage detected