MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestUpdatePeer

Function TestUpdatePeer

p2pserver/peer/peer_test.go:99–107  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

97}
98
99func TestUpdatePeer(t *testing.T) {
100 p := initTestPeer()
101 p.UpdateInfo(time.Now(), 3, 3, 30334, 0x7533345, 0, 7322222, "1.5.2")
102 p.SetState(3)
103 p.SetHttpInfoState(true)
104 p.Link.SetAddr("127.0.0.1:20338")
105 p.DumpInfo()
106
107}

Callers

nothing calls this directly

Calls 6

initTestPeerFunction · 0.85
UpdateInfoMethod · 0.80
SetStateMethod · 0.80
SetHttpInfoStateMethod · 0.80
SetAddrMethod · 0.80
DumpInfoMethod · 0.80

Tested by

no test coverage detected