(t *testing.T)
| 140 | } |
| 141 | |
| 142 | func TestChainConfigInfo(t *testing.T) { |
| 143 | SetRunMode(Dev) |
| 144 | chainConfigInfo := ChainConfigInfo() |
| 145 | assert.Equal(t, devChainConfig, chainConfigInfo) |
| 146 | |
| 147 | SetRunMode(Testnet) |
| 148 | chainConfigInfo = ChainConfigInfo() |
| 149 | assert.Equal(t, testnetChainConfig, chainConfigInfo) |
| 150 | |
| 151 | SetRunMode(Mainnet) |
| 152 | chainConfigInfo = ChainConfigInfo() |
| 153 | assert.Equal(t, mainnetChainConfig, chainConfigInfo) |
| 154 | } |
| 155 | |
| 156 | func TestConvertDomainNodeWithIpOK(t *testing.T) { |
| 157 | address, err := convertDomainNode("enode://2ddfb534019e6b446fb4465742f266d04fae661089e3dac6a4c841ad0fcf5569f8d049203079bb64e20d1a32fc84b584920839a2120cd5e8886744719452d936@127.0.0.1:30317") |
nothing calls this directly
no test coverage detected