(t *testing.T)
| 154 | } |
| 155 | |
| 156 | func TestConvertDomainNodeWithIpOK(t *testing.T) { |
| 157 | address, err := convertDomainNode("enode://2ddfb534019e6b446fb4465742f266d04fae661089e3dac6a4c841ad0fcf5569f8d049203079bb64e20d1a32fc84b584920839a2120cd5e8886744719452d936@127.0.0.1:30317") |
| 158 | assert.Nil(t, err) |
| 159 | assert.Equal(t, "enode://2ddfb534019e6b446fb4465742f266d04fae661089e3dac6a4c841ad0fcf5569f8d049203079bb64e20d1a32fc84b584920839a2120cd5e8886744719452d936@127.0.0.1:30317", address) |
| 160 | } |
| 161 | |
| 162 | func TestConvertDomainNodeWithDomainOK(t *testing.T) { |
| 163 | address, err := convertDomainNode("enode://2ddfb534019e6b446fb4465742f266d04fae661089e3dac6a4c841ad0fcf5569f8d049203079bb64e20d1a32fc84b584920839a2120cd5e8886744719452d936@www.baidu.com:30317") |
nothing calls this directly
no test coverage detected