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

Function TestIsPeerActive

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

Source from the content-addressed store, hash-verified

83}
84
85func TestIsPeerActive(t *testing.T) {
86 server := constructServer()
87 server.peerPool = peerPool()
88 res := server.isPeerActive(uint32(2), 1)
89 t.Logf("TestIsPeerActive: %v", res)
90}
91
92func TestIsProposer(t *testing.T) {
93 server := constructServer()

Callers

nothing calls this directly

Calls 3

constructServerFunction · 0.85
peerPoolFunction · 0.85
isPeerActiveMethod · 0.80

Tested by

no test coverage detected