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

Function TestConvertDomainNodeWithDomainOK

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

Source from the content-addressed store, hash-verified

160}
161
162func TestConvertDomainNodeWithDomainOK(t *testing.T) {
163 address, err := convertDomainNode("enode://2ddfb534019e6b446fb4465742f266d04fae661089e3dac6a4c841ad0fcf5569f8d049203079bb64e20d1a32fc84b584920839a2120cd5e8886744719452d936@www.baidu.com:30317")
164 fmt.Println(address)
165 assert.Nil(t, err)
166 assert.NotEqual(t, "enode://2ddfb534019e6b446fb4465742f266d04fae661089e3dac6a4c841ad0fcf5569f8d049203079bb64e20d1a32fc84b584920839a2120cd5e8886744719452d936@www.baidu.com:30317", address)
167}
168
169func TestConvertDomainNodeWithDomainFail(t *testing.T) {
170 _, err := convertDomainNode("enode://2ddfb534019e6b446fb4465742f266d04fae661089e3dac6a4c841ad0fcf5569f8d049203079bb64e20d1a32fc84b584920839a2120cd5e8886744719452d936@www.notexistwebsite111.com:30317")

Callers

nothing calls this directly

Calls 1

convertDomainNodeFunction · 0.85

Tested by

no test coverage detected