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

Function TestIsPeerAlive

consensus/vbft/node_utils_test.go:78–83  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76 return server
77}
78func TestIsPeerAlive(t *testing.T) {
79 server := constructServer()
80 server.peerPool = peerPool()
81 res := server.isPeerAlive(2, 1)
82 t.Logf("TestIsPeerAlive: %v", res)
83}
84
85func TestIsPeerActive(t *testing.T) {
86 server := constructServer()

Callers

nothing calls this directly

Calls 3

constructServerFunction · 0.85
peerPoolFunction · 0.85
isPeerAliveMethod · 0.45

Tested by

no test coverage detected