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, boost::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 38 of file ValidatorList_test.cpp.

Member Function Documentation

◆ randomNode()

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

Definition at line 49 of file ValidatorList_test.cpp.

◆ randomMasterKey()

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

Definition at line 55 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 61 of file ValidatorList_test.cpp.

◆ makeRevocationString()

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

Definition at line 92 of file ValidatorList_test.cpp.

◆ randomValidator()

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

Definition at line 112 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,
boost::optional< std::size_t validFrom = {} 
)
private

Definition at line 129 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 153 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 162 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 172 of file ValidatorList_test.cpp.

◆ testGenesisQuorum()

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

Definition at line 186 of file ValidatorList_test.cpp.

◆ testConfigLoad()

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

Definition at line 216 of file ValidatorList_test.cpp.

◆ testApplyLists()

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

Definition at line 474 of file ValidatorList_test.cpp.

◆ testGetAvailable()

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

Definition at line 924 of file ValidatorList_test.cpp.

◆ testUpdateTrusted()

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

Definition at line 1061 of file ValidatorList_test.cpp.

◆ testExpires()

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

Definition at line 1614 of file ValidatorList_test.cpp.

◆ testNegativeUNL()

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

Definition at line 1792 of file ValidatorList_test.cpp.

◆ testSha512Hash()

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

Definition at line 2002 of file ValidatorList_test.cpp.

◆ testBuildMessages()

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

Definition at line 2054 of file ValidatorList_test.cpp.

◆ run()

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

Definition at line 2412 of file ValidatorList_test.cpp.