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

Function TestIsProposer

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

Source from the content-addressed store, hash-verified

90}
91
92func TestIsProposer(t *testing.T) {
93 server := constructServer()
94 server.peerPool = peerPool()
95 res := server.isProposer(1, 1)
96 t.Logf("TestIsProposer: %v", res)
97}
98
99func TestIs2ndProposer(t *testing.T) {
100 server := constructServer()

Callers

nothing calls this directly

Calls 3

constructServerFunction · 0.85
peerPoolFunction · 0.85
isProposerMethod · 0.80

Tested by

no test coverage detected