Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitteeMemberTest ¶
type CommitteeMemberTest struct { Name string CommitteeMember types.CommitteeMember Message types.SignedSSVMessage ExpectedHasQuorum bool ExpectedFullCommittee bool ExpectedError string }
func HasQuorum3f1 ¶
func HasQuorum3f1() *CommitteeMemberTest
HasQuorum3f1 tests msg with unique 3f+1 signers
func NoQuorumDuplicate ¶
func NoQuorumDuplicate() *CommitteeMemberTest
NoQuorumDuplicate tests msg with < unique 2f+1 signers (but 2f+1 signers including duplicates)
func QuorumWithDuplicate ¶
func QuorumWithDuplicate() *CommitteeMemberTest
QuorumWithDuplicate tests msg with unique 2f+1 signers (but also including duplicates)
func (*CommitteeMemberTest) GetUniqueMessageSignersCount ¶
func (test *CommitteeMemberTest) GetUniqueMessageSignersCount() int
Returns the number of unique signers in the message signers list
func (*CommitteeMemberTest) Run ¶
func (test *CommitteeMemberTest) Run(t *testing.T)
func (*CommitteeMemberTest) TestName ¶
func (test *CommitteeMemberTest) TestName() string
Click to show internal directories.
Click to hide internal directories.