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

Function TestIsCpchainTrue

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

Source from the content-addressed store, hash-verified

102}
103
104func TestIsCpchainTrue(t *testing.T) {
105 cc := ChainConfig{Dpor: nil, ChainID: big.NewInt(MainnetChainId)}
106 assert.True(t, cc.IsCpchain())
107}
108
109func TestIsCpchainFalse(t *testing.T) {
110 cc := ChainConfig{Dpor: nil, ChainID: big.NewInt(10)}

Callers

nothing calls this directly

Calls 1

IsCpchainMethod · 0.95

Tested by

no test coverage detected