|
rippled
|


Public Member Functions | |
| AmendmentTable_test () | |
| std::unique_ptr< AmendmentTable > | makeTable (int w, Section const supported, Section const enabled, Section const vetoed) |
| std::unique_ptr< AmendmentTable > | makeTable (int w) |
| void | testConstruct () |
| void | testGet () |
| void | testBadConfig () |
| std::map< uint256, bool > | getState (AmendmentTable *table, std::set< uint256 > const &exclude) |
| void | testEnableDisable () |
| std::vector< std::pair< PublicKey, SecretKey > > | makeValidators (int num) |
| void | doRound (AmendmentTable &table, weeks week, std::vector< std::pair< PublicKey, SecretKey >> const &validators, std::vector< std::pair< uint256, int >> const &votes, std::vector< uint256 > &ourVotes, std::set< uint256 > &enabled, majorityAmendments_t &majority) |
| void | testNoOnUnknown () |
| void | testNoOnVetoed () |
| void | testVoteEnable () |
| void | testDetectMajority () |
| void | testLostMajority () |
| void | testHasUnsupported () |
| void | run () override |
Static Public Member Functions | |
| static NetClock::time_point | weekTime (weeks w) |
Static Private Member Functions | |
| static uint256 | amendmentId (std::string in) |
| static std::vector< std::string > | createSet (int group, int count) |
| static Section | makeSection (std::vector< std::string > const &amendments) |
| static Section | makeSection (uint256 const &amendment) |
Private Attributes | |
| const std::vector< std::string > | m_set1 |
| const std::vector< std::string > | m_set2 |
| const std::vector< std::string > | m_set3 |
| const std::vector< std::string > | m_set4 |
| const std::vector< std::string > | m_set5 |
| const Section | emptySection |
| test::SuiteJournal | journal |
Static Private Attributes | |
| static const int | majorityFraction {204} |
Definition at line 35 of file AmendmentTable_test.cpp.
| ripple::AmendmentTable_test::AmendmentTable_test | ( | ) |
Definition at line 91 of file AmendmentTable_test.cpp.
|
staticprivate |
Definition at line 42 of file AmendmentTable_test.cpp.
|
staticprivate |
Definition at line 54 of file AmendmentTable_test.cpp.
|
staticprivate |
Definition at line 64 of file AmendmentTable_test.cpp.
Definition at line 73 of file AmendmentTable_test.cpp.
| std::unique_ptr<AmendmentTable> ripple::AmendmentTable_test::makeTable | ( | int | w, |
| Section const | supported, | ||
| Section const | enabled, | ||
| Section const | vetoed | ||
| ) |
Definition at line 102 of file AmendmentTable_test.cpp.
| std::unique_ptr<AmendmentTable> ripple::AmendmentTable_test::makeTable | ( | int | w | ) |
Definition at line 113 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testConstruct | ( | ) |
Definition at line 120 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testGet | ( | ) |
Definition at line 146 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testBadConfig | ( | ) |
Definition at line 166 of file AmendmentTable_test.cpp.
| std::map<uint256, bool> ripple::AmendmentTable_test::getState | ( | AmendmentTable * | table, |
| std::set< uint256 > const & | exclude | ||
| ) |
Definition at line 260 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testEnableDisable | ( | ) |
Definition at line 285 of file AmendmentTable_test.cpp.
| std::vector<std::pair<PublicKey, SecretKey> > ripple::AmendmentTable_test::makeValidators | ( | int | num | ) |
Definition at line 333 of file AmendmentTable_test.cpp.
|
static |
Definition at line 345 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::doRound | ( | AmendmentTable & | table, |
| weeks | week, | ||
| std::vector< std::pair< PublicKey, SecretKey >> const & | validators, | ||
| std::vector< std::pair< uint256, int >> const & | votes, | ||
| std::vector< uint256 > & | ourVotes, | ||
| std::set< uint256 > & | enabled, | ||
| majorityAmendments_t & | majority | ||
| ) |
Definition at line 352 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testNoOnUnknown | ( | ) |
Definition at line 451 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testNoOnVetoed | ( | ) |
Definition at line 490 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testVoteEnable | ( | ) |
Definition at line 529 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testDetectMajority | ( | ) |
Definition at line 579 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testLostMajority | ( | ) |
Definition at line 642 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testHasUnsupported | ( | ) |
Definition at line 710 of file AmendmentTable_test.cpp.
|
override |
Definition at line 743 of file AmendmentTable_test.cpp.
|
staticprivate |
Definition at line 39 of file AmendmentTable_test.cpp.
|
private |
Definition at line 80 of file AmendmentTable_test.cpp.
|
private |
Definition at line 81 of file AmendmentTable_test.cpp.
|
private |
Definition at line 82 of file AmendmentTable_test.cpp.
|
private |
Definition at line 83 of file AmendmentTable_test.cpp.
|
private |
Definition at line 84 of file AmendmentTable_test.cpp.
|
private |
Definition at line 86 of file AmendmentTable_test.cpp.
|
private |
Definition at line 88 of file AmendmentTable_test.cpp.
1.8.17