|
rippled
|


Static Public Member Functions | |
| static NetClock::time_point | weekTime (weeks w) |
Private Member Functions | |
| std::unique_ptr< Config > | makeConfig () |
Static Private Member Functions | |
| static uint256 | amendmentId (std::string in) |
| static Section | makeSection (std::string const &name, std::vector< std::string > const &amendments) |
| static Section | makeSection (std::vector< std::string > const &amendments) |
| static Section | makeSection (uint256 const &amendment) |
| static std::vector< AmendmentTable::FeatureInfo > | makeDefaultYes (std::vector< std::string > const &amendments) |
| static std::vector< AmendmentTable::FeatureInfo > | makeDefaultYes (uint256 const amendment) |
Private Attributes | |
| const std::vector< std::string > | supportedYes_ |
| const std::vector< std::string > | enabled_ {"b", "d", "f", "h", "j", "l", "n", "p"} |
| const std::vector< std::string > | vetoed_ {"a", "c", "e"} |
| const std::vector< std::string > | unsupported_ {"v", "w", "x"} |
| const std::vector< std::string > | unsupportedMajority_ {"y", "z"} |
| const Section | emptySection |
| const std::vector< AmendmentTable::FeatureInfo > | emptyYes |
| test::SuiteJournal | journal |
Definition at line 38 of file AmendmentTable_test.cpp.
| ripple::AmendmentTable_test::AmendmentTable_test | ( | ) |
Definition at line 128 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 65 of file AmendmentTable_test.cpp.
Definition at line 71 of file AmendmentTable_test.cpp.
|
private |
Definition at line 79 of file AmendmentTable_test.cpp.
|
staticprivate |
Definition at line 90 of file AmendmentTable_test.cpp.
|
staticprivate |
Definition at line 102 of file AmendmentTable_test.cpp.
| std::unique_ptr<AmendmentTable> ripple::AmendmentTable_test::makeTable | ( | Application & | app, |
| std::chrono::seconds | majorityTime, | ||
| std::vector< AmendmentTable::FeatureInfo > const & | supported, | ||
| Section const & | enabled, | ||
| Section const & | vetoed | ||
| ) |
Definition at line 133 of file AmendmentTable_test.cpp.
| std::unique_ptr<AmendmentTable> ripple::AmendmentTable_test::makeTable | ( | test::jtx::Env & | env, |
| std::chrono::seconds | majorityTime, | ||
| std::vector< AmendmentTable::FeatureInfo > const & | supported, | ||
| Section const & | enabled, | ||
| Section const & | vetoed | ||
| ) |
Definition at line 145 of file AmendmentTable_test.cpp.
| std::unique_ptr<AmendmentTable> ripple::AmendmentTable_test::makeTable | ( | test::jtx::Env & | env, |
| std::chrono::seconds | majorityTime | ||
| ) |
Definition at line 156 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testConstruct | ( | ) |
Definition at line 167 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testGet | ( | ) |
Definition at line 191 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testBadConfig | ( | ) |
Definition at line 229 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testEnableVeto | ( | ) |
Definition at line 335 of file AmendmentTable_test.cpp.
| std::vector<std::pair<PublicKey, SecretKey> > ripple::AmendmentTable_test::makeValidators | ( | int | num | ) |
Definition at line 409 of file AmendmentTable_test.cpp.
|
static |
Definition at line 421 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::doRound | ( | uint256 const & | feat, |
| 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 428 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testNoOnUnknown | ( | uint256 const & | feat | ) |
Definition at line 527 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testNoOnVetoed | ( | uint256 const & | feat | ) |
Definition at line 589 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testVoteEnable | ( | uint256 const & | feat | ) |
Definition at line 650 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testDetectMajority | ( | uint256 const & | feat | ) |
Definition at line 733 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testLostMajority | ( | uint256 const & | feat | ) |
Definition at line 802 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testHasUnsupported | ( | ) |
Definition at line 877 of file AmendmentTable_test.cpp.
| void ripple::AmendmentTable_test::testFeature | ( | uint256 const & | feat | ) |
Definition at line 920 of file AmendmentTable_test.cpp.
|
override |
Definition at line 930 of file AmendmentTable_test.cpp.
|
private |
Definition at line 113 of file AmendmentTable_test.cpp.
|
private |
Definition at line 117 of file AmendmentTable_test.cpp.
|
private |
Definition at line 118 of file AmendmentTable_test.cpp.
|
private |
Definition at line 119 of file AmendmentTable_test.cpp.
|
private |
Definition at line 120 of file AmendmentTable_test.cpp.
|
private |
Definition at line 122 of file AmendmentTable_test.cpp.
|
private |
Definition at line 123 of file AmendmentTable_test.cpp.
|
private |
Definition at line 125 of file AmendmentTable_test.cpp.
1.8.17