rippled
Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | List of all members
ripple::test::ValidatorList_test Class Reference
Inheritance diagram for ripple::test::ValidatorList_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::test::ValidatorList_test:
Collaboration graph
[legend]

Classes

struct  Validator
 

Public Member Functions

void run () override
 

Private Member Functions

std::string makeList (std::vector< Validator > const &validators, std::size_t sequence, std::size_t validUntil, std::optional< std::size_t > validFrom={})
 
std::string signList (std::string const &blob, std::pair< PublicKey, SecretKey > const &keys)
 
void checkResult (ValidatorList::PublisherListStats const &result, PublicKey pubKey, ListDisposition expectedWorst, ListDisposition expectedBest)
 
void testGenesisQuorum ()
 
void testConfigLoad ()
 
void testApplyLists ()
 
void testGetAvailable ()
 
void testUpdateTrusted ()
 
void testExpires ()
 
void testNegativeUNL ()
 
void testSha512Hash ()
 
void testBuildMessages ()
 

Static Private Member Functions

static PublicKey randomNode ()
 
static PublicKey randomMasterKey ()
 
static std::string makeManifestString (PublicKey const &pk, SecretKey const &sk, PublicKey const &spk, SecretKey const &ssk, int seq)
 
static std::string makeRevocationString (PublicKey const &pk, SecretKey const &sk)
 
static Validator randomValidator ()
 
static hash_set< NodeIDasNodeIDs (std::initializer_list< PublicKey > const &pks)
 

Detailed Description

Definition at line 39 of file ValidatorList_test.cpp.

Member Function Documentation

◆ randomNode()

static PublicKey ripple::test::ValidatorList_test::randomNode ( )
staticprivate

Definition at line 50 of file ValidatorList_test.cpp.

◆ randomMasterKey()

static PublicKey ripple::test::ValidatorList_test::randomMasterKey ( )
staticprivate

Definition at line 56 of file ValidatorList_test.cpp.

◆ makeManifestString()

static std::string ripple::test::ValidatorList_test::makeManifestString ( PublicKey const &  pk,
SecretKey const &  sk,
PublicKey const &  spk,
SecretKey const &  ssk,
int  seq 
)
staticprivate

Definition at line 62 of file ValidatorList_test.cpp.

◆ makeRevocationString()

static std::string ripple::test::ValidatorList_test::makeRevocationString ( PublicKey const &  pk,
SecretKey const &  sk 
)
staticprivate

Definition at line 93 of file ValidatorList_test.cpp.

◆ randomValidator()

static Validator ripple::test::ValidatorList_test::randomValidator ( )
staticprivate

Definition at line 113 of file ValidatorList_test.cpp.

◆ makeList()

std::string ripple::test::ValidatorList_test::makeList ( std::vector< Validator > const &  validators,
std::size_t  sequence,
std::size_t  validUntil,
std::optional< std::size_t validFrom = {} 
)
private

Definition at line 130 of file ValidatorList_test.cpp.

◆ signList()

std::string ripple::test::ValidatorList_test::signList ( std::string const &  blob,
std::pair< PublicKey, SecretKey > const &  keys 
)
private

Definition at line 154 of file ValidatorList_test.cpp.

◆ asNodeIDs()

static hash_set<NodeID> ripple::test::ValidatorList_test::asNodeIDs ( std::initializer_list< PublicKey > const &  pks)
staticprivate

Definition at line 163 of file ValidatorList_test.cpp.

◆ checkResult()

void ripple::test::ValidatorList_test::checkResult ( ValidatorList::PublisherListStats const &  result,
PublicKey  pubKey,
ListDisposition  expectedWorst,
ListDisposition  expectedBest 
)
private

Definition at line 173 of file ValidatorList_test.cpp.

◆ testGenesisQuorum()

void ripple::test::ValidatorList_test::testGenesisQuorum ( )
private

Definition at line 187 of file ValidatorList_test.cpp.

◆ testConfigLoad()

void ripple::test::ValidatorList_test::testConfigLoad ( )
private

Definition at line 217 of file ValidatorList_test.cpp.

◆ testApplyLists()

void ripple::test::ValidatorList_test::testApplyLists ( )
private

Definition at line 476 of file ValidatorList_test.cpp.

◆ testGetAvailable()

void ripple::test::ValidatorList_test::testGetAvailable ( )
private

Definition at line 926 of file ValidatorList_test.cpp.

◆ testUpdateTrusted()

void ripple::test::ValidatorList_test::testUpdateTrusted ( )
private

Definition at line 1063 of file ValidatorList_test.cpp.

◆ testExpires()

void ripple::test::ValidatorList_test::testExpires ( )
private

Definition at line 1616 of file ValidatorList_test.cpp.

◆ testNegativeUNL()

void ripple::test::ValidatorList_test::testNegativeUNL ( )
private

Definition at line 1794 of file ValidatorList_test.cpp.

◆ testSha512Hash()

void ripple::test::ValidatorList_test::testSha512Hash ( )
private

Definition at line 2005 of file ValidatorList_test.cpp.

◆ testBuildMessages()

void ripple::test::ValidatorList_test::testBuildMessages ( )
private

Definition at line 2057 of file ValidatorList_test.cpp.

◆ run()

void ripple::test::ValidatorList_test::run ( )
override

Definition at line 2415 of file ValidatorList_test.cpp.