rippled
Private Member Functions | List of all members
ripple::test::NegativeUNLVoteInternal_test Class Reference

Test the private member functions of NegativeUNLVote. More...

Inheritance diagram for ripple::test::NegativeUNLVoteInternal_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::test::NegativeUNLVoteInternal_test:
Collaboration graph
[legend]

Private Member Functions

void testAddTx ()
 
void testPickOneCandidate ()
 
void testBuildScoreTableSpecialCases ()
 
bool checkCandidateSizes (NegativeUNLVote &vote, hash_set< NodeID > const &unl, hash_set< NodeID > const &negUnl, hash_map< NodeID, std::uint32_t > const &scoreTable, std::size_t numDisable, std::size_t numReEnable)
 Find all candidates and check if the number of candidates meets expectation. More...
 
void testFindAllCandidates ()
 
void testFindAllCandidatesCombination ()
 
void testNewValidators ()
 
void run () override
 

Detailed Description

Test the private member functions of NegativeUNLVote.

Definition at line 767 of file NegativeUNL_test.cpp.

Member Function Documentation

◆ testAddTx()

void ripple::test::NegativeUNLVoteInternal_test::testAddTx ( )
private

Definition at line 770 of file NegativeUNL_test.cpp.

◆ testPickOneCandidate()

void ripple::test::NegativeUNLVoteInternal_test::testPickOneCandidate ( )
private

Definition at line 794 of file NegativeUNL_test.cpp.

◆ testBuildScoreTableSpecialCases()

void ripple::test::NegativeUNLVoteInternal_test::testBuildScoreTableSpecialCases ( )
private

Definition at line 819 of file NegativeUNL_test.cpp.

◆ checkCandidateSizes()

bool ripple::test::NegativeUNLVoteInternal_test::checkCandidateSizes ( NegativeUNLVote vote,
hash_set< NodeID > const &  unl,
hash_set< NodeID > const &  negUnl,
hash_map< NodeID, std::uint32_t > const &  scoreTable,
std::size_t  numDisable,
std::size_t  numReEnable 
)
private

Find all candidates and check if the number of candidates meets expectation.

Parameters
votethe NegativeUNLVote object
unlthe validators
negUnlthe negative UNL validators
scoreTablethe score table of validators
numDisablenumber of Disable candidates expected
numReEnablenumber of ReEnable candidates expected
Returns
true if the number of candidates meets expectation

Definition at line 988 of file NegativeUNL_test.cpp.

◆ testFindAllCandidates()

void ripple::test::NegativeUNLVoteInternal_test::testFindAllCandidates ( )
private

Definition at line 1004 of file NegativeUNL_test.cpp.

◆ testFindAllCandidatesCombination()

void ripple::test::NegativeUNLVoteInternal_test::testFindAllCandidatesCombination ( )
private

Definition at line 1146 of file NegativeUNL_test.cpp.

◆ testNewValidators()

void ripple::test::NegativeUNLVoteInternal_test::testNewValidators ( )
private

Definition at line 1335 of file NegativeUNL_test.cpp.

◆ run()

void ripple::test::NegativeUNLVoteInternal_test::run ( )
overrideprivate

Definition at line 1394 of file NegativeUNL_test.cpp.