|
| AmendmentTable_test () |
|
std::unique_ptr< AmendmentTable > | makeTable (Application &app, std::chrono::seconds majorityTime, std::vector< AmendmentTable::FeatureInfo > const &supported, Section const &enabled, Section const &vetoed) |
|
std::unique_ptr< AmendmentTable > | makeTable (test::jtx::Env &env, std::chrono::seconds majorityTime, std::vector< AmendmentTable::FeatureInfo > const &supported, Section const &enabled, Section const &vetoed) |
|
std::unique_ptr< AmendmentTable > | makeTable (test::jtx::Env &env, std::chrono::seconds majorityTime) |
|
void | testConstruct () |
|
void | testGet () |
|
void | testBadConfig () |
|
void | testEnableVeto () |
|
std::vector< std::pair< PublicKey, SecretKey > > | makeValidators (int num) |
|
void | 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) |
|
void | testNoOnUnknown (uint256 const &feat) |
|
void | testNoOnVetoed (uint256 const &feat) |
|
void | testVoteEnable (uint256 const &feat) |
|
void | testDetectMajority (uint256 const &feat) |
|
void | testLostMajority (uint256 const &feat) |
|
void | testHasUnsupported () |
|
void | testFeature (uint256 const &feat) |
|
void | run () override |
|
|
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 > | makeFeatureInfo (std::vector< std::string > const &amendments, VoteBehavior voteBehavior) |
|
static std::vector< AmendmentTable::FeatureInfo > | makeDefaultYes (std::vector< std::string > const &amendments) |
|
static std::vector< AmendmentTable::FeatureInfo > | makeDefaultYes (uint256 const amendment) |
|
static std::vector< AmendmentTable::FeatureInfo > | makeDefaultNo (std::vector< std::string > const &amendments) |
|
static std::vector< AmendmentTable::FeatureInfo > | makeObsolete (std::vector< std::string > const &amendments) |
|
template<class Arg , class... Args> |
static size_t | totalsize (std::vector< Arg > const &src, Args const &... args) |
|
template<class Arg , class... Args> |
static void | combine_arg (std::vector< Arg > &dest, std::vector< Arg > const &src, Args const &... args) |
|
template<class Arg , class... Args> |
static std::vector< Arg > | combine (std::vector< Arg > left, std::vector< Arg > const &right, Args const &... args) |
|
|
const std::vector< std::string > | yes_ {"g", "i", "k", "m", "o", "q", "r", "s", "t", "u"} |
|
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 > | obsolete_ {"0", "1", "2"} |
|
const std::vector< std::string > | allSupported_ |
|
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.
◆ AmendmentTable_test()
ripple::AmendmentTable_test::AmendmentTable_test |
( |
| ) |
|
◆ amendmentId()
◆ makeSection() [1/3]
◆ makeSection() [2/3]
◆ makeSection() [3/3]
static Section ripple::AmendmentTable_test::makeSection |
( |
uint256 const & |
amendment | ) |
|
|
staticprivate |
◆ makeConfig()
◆ makeFeatureInfo()
◆ makeDefaultYes() [1/2]
◆ makeDefaultYes() [2/2]
◆ makeDefaultNo()
◆ makeObsolete()
◆ totalsize()
template<class Arg , class... Args>
static size_t ripple::AmendmentTable_test::totalsize |
( |
std::vector< Arg > const & |
src, |
|
|
Args const &... |
args |
|
) |
| |
|
staticprivate |
◆ combine_arg()
template<class Arg , class... Args>
static void ripple::AmendmentTable_test::combine_arg |
( |
std::vector< Arg > & |
dest, |
|
|
std::vector< Arg > const & |
src, |
|
|
Args const &... |
args |
|
) |
| |
|
staticprivate |
◆ combine()
template<class Arg , class... Args>
◆ makeTable() [1/3]
◆ makeTable() [2/3]
◆ makeTable() [3/3]
◆ testConstruct()
void ripple::AmendmentTable_test::testConstruct |
( |
| ) |
|
◆ testGet()
void ripple::AmendmentTable_test::testGet |
( |
| ) |
|
◆ testBadConfig()
void ripple::AmendmentTable_test::testBadConfig |
( |
| ) |
|
◆ testEnableVeto()
void ripple::AmendmentTable_test::testEnableVeto |
( |
| ) |
|
◆ makeValidators()
◆ weekTime()
◆ doRound()
◆ testNoOnUnknown()
void ripple::AmendmentTable_test::testNoOnUnknown |
( |
uint256 const & |
feat | ) |
|
◆ testNoOnVetoed()
void ripple::AmendmentTable_test::testNoOnVetoed |
( |
uint256 const & |
feat | ) |
|
◆ testVoteEnable()
void ripple::AmendmentTable_test::testVoteEnable |
( |
uint256 const & |
feat | ) |
|
◆ testDetectMajority()
void ripple::AmendmentTable_test::testDetectMajority |
( |
uint256 const & |
feat | ) |
|
◆ testLostMajority()
void ripple::AmendmentTable_test::testLostMajority |
( |
uint256 const & |
feat | ) |
|
◆ testHasUnsupported()
void ripple::AmendmentTable_test::testHasUnsupported |
( |
| ) |
|
◆ testFeature()
void ripple::AmendmentTable_test::testFeature |
( |
uint256 const & |
feat | ) |
|
◆ run()
void ripple::AmendmentTable_test::run |
( |
| ) |
|
|
override |
◆ yes_
const std::vector<std::string> ripple::AmendmentTable_test::yes_ {"g", "i", "k", "m", "o", "q", "r", "s", "t", "u"} |
|
private |
◆ enabled_
◆ vetoed_
◆ obsolete_
◆ allSupported_
◆ unsupported_
◆ unsupportedMajority_
◆ emptySection_
const Section ripple::AmendmentTable_test::emptySection_ |
|
private |
◆ emptyYes_
◆ journal_