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

Function TestConvertDomainNodeWithIpOK

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

Source from the content-addressed store, hash-verified

154}
155
156func 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
162func TestConvertDomainNodeWithDomainOK(t *testing.T) {
163 address, err := convertDomainNode("enode://2ddfb534019e6b446fb4465742f266d04fae661089e3dac6a4c841ad0fcf5569f8d049203079bb64e20d1a32fc84b584920839a2120cd5e8886744719452d936@www.baidu.com:30317")

Callers

nothing calls this directly

Calls 2

convertDomainNodeFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected