rippled
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ripple::test::MultiSign_test Class Reference
Inheritance diagram for ripple::test::MultiSign_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::test::MultiSign_test:
Collaboration graph
[legend]

Public Member Functions

void test_noReserve (FeatureBitset features)
 
void test_signerListSet (FeatureBitset features)
 
void test_phantomSigners (FeatureBitset features)
 
void test_fee (FeatureBitset features)
 
void test_misorderedSigners (FeatureBitset features)
 
void test_masterSigners (FeatureBitset features)
 
void test_regularSigners (FeatureBitset features)
 
void test_regularSignersUsingSubmitMulti (FeatureBitset features)
 
void test_heterogeneousSigners (FeatureBitset features)
 
void test_keyDisable (FeatureBitset features)
 
void test_regKey (FeatureBitset features)
 
void test_txTypes (FeatureBitset features)
 
void test_badSignatureText (FeatureBitset features)
 
void test_noMultiSigners (FeatureBitset features)
 
void test_multisigningMultisigner (FeatureBitset features)
 
void test_signForHash (FeatureBitset features)
 
void test_amendmentTransition ()
 
void test_signersWithTickets (FeatureBitset features)
 
void test_signersWithTags (FeatureBitset features)
 
void testAll (FeatureBitset features)
 
void run () override
 Runs the suite. More...
 
template<class = void>
void operator() (runner &r)
 Invokes the test using the specified runner. More...
 
template<class = void>
void pass ()
 Record a successful test condition. More...
 
template<class F , class String >
bool except (F &&f, String const &reason)
 
template<class F >
bool except (F &&f)
 
template<class E , class F , class String >
bool except (F &&f, String const &reason)
 
template<class E , class F >
bool except (F &&f)
 
template<class F , class String >
bool unexcept (F &&f, String const &reason)
 
template<class F >
bool unexcept (F &&f)
 
std::string const & arg () const
 Return the argument associated with the runner. More...
 
template<class Condition , class String >
bool unexpected (Condition shouldBeFalse, String const &reason)
 
template<class Condition >
bool unexpected (Condition shouldBeFalse)
 
template<class String >
void fail (String const &reason, char const *file, int line)
 Record a failure. More...
 
template<class = void>
void fail (std::string const &reason="")
 
template<class Condition >
bool expect (Condition const &shouldBeTrue)
 Evaluate a test condition. More...
 
template<class Condition , class String >
bool expect (Condition const &shouldBeTrue, String const &reason)
 
template<class Condition >
bool expect (Condition const &shouldBeTrue, char const *file, int line)
 
template<class Condition , class String >
bool expect (Condition const &shouldBeTrue, String const &reason, char const *file, int line)
 

Static Public Member Functions

static suitethis_suite ()
 Returns the "current" running suite. More...
 

Public Attributes

log_os< char > log
 Logging output stream. More...
 
testcase_t testcase
 Memberspace for declaring test cases. More...
 

Private Member Functions

void propagate_abort ()
 

Static Private Member Functions

static suite ** p_this_suite ()
 

Private Attributes

jtx::Account const bogie {"bogie", KeyType::secp256k1}
 
jtx::Account const demon {"demon", KeyType::ed25519}
 
jtx::Account const ghost {"ghost", KeyType::secp256k1}
 
jtx::Account const haunt {"haunt", KeyType::ed25519}
 
jtx::Account const jinni {"jinni", KeyType::secp256k1}
 
jtx::Account const phase {"phase", KeyType::ed25519}
 
jtx::Account const shade {"shade", KeyType::secp256k1}
 
jtx::Account const spook {"spook", KeyType::ed25519}
 
jtx::Account const acc10 {"acc10", KeyType::ed25519}
 
jtx::Account const acc11 {"acc11", KeyType::ed25519}
 
jtx::Account const acc12 {"acc12", KeyType::ed25519}
 
jtx::Account const acc13 {"acc13", KeyType::ed25519}
 
jtx::Account const acc14 {"acc14", KeyType::ed25519}
 
jtx::Account const acc15 {"acc15", KeyType::ed25519}
 
jtx::Account const acc16 {"acc16", KeyType::ed25519}
 
jtx::Account const acc17 {"acc17", KeyType::ed25519}
 
jtx::Account const acc18 {"acc18", KeyType::ed25519}
 
jtx::Account const acc19 {"acc19", KeyType::ed25519}
 
jtx::Account const acc20 {"acc20", KeyType::ed25519}
 
jtx::Account const acc21 {"acc21", KeyType::ed25519}
 
jtx::Account const acc22 {"acc22", KeyType::ed25519}
 
jtx::Account const acc23 {"acc23", KeyType::ed25519}
 
jtx::Account const acc24 {"acc24", KeyType::ed25519}
 
jtx::Account const acc25 {"acc25", KeyType::ed25519}
 
jtx::Account const acc26 {"acc26", KeyType::ed25519}
 
jtx::Account const acc27 {"acc27", KeyType::ed25519}
 
jtx::Account const acc28 {"acc28", KeyType::ed25519}
 
jtx::Account const acc29 {"acc29", KeyType::ed25519}
 
jtx::Account const acc30 {"acc30", KeyType::ed25519}
 
jtx::Account const acc31 {"acc31", KeyType::ed25519}
 
jtx::Account const acc32 {"acc32", KeyType::ed25519}
 
jtx::Account const acc33 {"acc33", KeyType::ed25519}
 
bool abort_ = false
 
bool aborted_ = false
 
runner * runner_ = nullptr
 

Detailed Description

Definition at line 26 of file MultiSign_test.cpp.

Member Function Documentation

◆ test_noReserve()

void ripple::test::MultiSign_test::test_noReserve ( FeatureBitset  features)

Definition at line 64 of file MultiSign_test.cpp.

◆ test_signerListSet()

void ripple::test::MultiSign_test::test_signerListSet ( FeatureBitset  features)

Definition at line 134 of file MultiSign_test.cpp.

◆ test_phantomSigners()

void ripple::test::MultiSign_test::test_phantomSigners ( FeatureBitset  features)

Definition at line 215 of file MultiSign_test.cpp.

◆ test_fee()

void ripple::test::MultiSign_test::test_fee ( FeatureBitset  features)

Definition at line 282 of file MultiSign_test.cpp.

◆ test_misorderedSigners()

void ripple::test::MultiSign_test::test_misorderedSigners ( FeatureBitset  features)

Definition at line 346 of file MultiSign_test.cpp.

◆ test_masterSigners()

void ripple::test::MultiSign_test::test_masterSigners ( FeatureBitset  features)

Definition at line 374 of file MultiSign_test.cpp.

◆ test_regularSigners()

void ripple::test::MultiSign_test::test_regularSigners ( FeatureBitset  features)

Definition at line 429 of file MultiSign_test.cpp.

◆ test_regularSignersUsingSubmitMulti()

void ripple::test::MultiSign_test::test_regularSignersUsingSubmitMulti ( FeatureBitset  features)

Definition at line 494 of file MultiSign_test.cpp.

◆ test_heterogeneousSigners()

void ripple::test::MultiSign_test::test_heterogeneousSigners ( FeatureBitset  features)

Definition at line 734 of file MultiSign_test.cpp.

◆ test_keyDisable()

void ripple::test::MultiSign_test::test_keyDisable ( FeatureBitset  features)

Definition at line 881 of file MultiSign_test.cpp.

◆ test_regKey()

void ripple::test::MultiSign_test::test_regKey ( FeatureBitset  features)

Definition at line 962 of file MultiSign_test.cpp.

◆ test_txTypes()

void ripple::test::MultiSign_test::test_txTypes ( FeatureBitset  features)

Definition at line 997 of file MultiSign_test.cpp.

◆ test_badSignatureText()

void ripple::test::MultiSign_test::test_badSignatureText ( FeatureBitset  features)

Definition at line 1086 of file MultiSign_test.cpp.

◆ test_noMultiSigners()

void ripple::test::MultiSign_test::test_noMultiSigners ( FeatureBitset  features)

Definition at line 1281 of file MultiSign_test.cpp.

◆ test_multisigningMultisigner()

void ripple::test::MultiSign_test::test_multisigningMultisigner ( FeatureBitset  features)

Definition at line 1300 of file MultiSign_test.cpp.

◆ test_signForHash()

void ripple::test::MultiSign_test::test_signForHash ( FeatureBitset  features)

Definition at line 1377 of file MultiSign_test.cpp.

◆ test_amendmentTransition()

void ripple::test::MultiSign_test::test_amendmentTransition ( )

Definition at line 1460 of file MultiSign_test.cpp.

◆ test_signersWithTickets()

void ripple::test::MultiSign_test::test_signersWithTickets ( FeatureBitset  features)

Definition at line 1555 of file MultiSign_test.cpp.

◆ test_signersWithTags()

void ripple::test::MultiSign_test::test_signersWithTags ( FeatureBitset  features)

Definition at line 1596 of file MultiSign_test.cpp.

◆ testAll()

void ripple::test::MultiSign_test::testAll ( FeatureBitset  features)

Definition at line 1676 of file MultiSign_test.cpp.

◆ run()

void ripple::test::MultiSign_test::run ( )
overridevirtual

Runs the suite.

Implements beast::unit_test::suite.

Definition at line 1699 of file MultiSign_test.cpp.

◆ this_suite()

static suite * beast::unit_test::suite::this_suite ( )
staticinherited

Returns the "current" running suite.

If no suite is running, nullptr is returned.

Definition at line 159 of file suite.h.

◆ operator()()

template<class >
void beast::unit_test::suite::operator() ( runner r)
inherited

Invokes the test using the specified runner.

Data members are set up here instead of the constructor as a convenience to writing the derived class to avoid repetition of forwarded constructor arguments to the base. Normally this is called by the framework for you.

Definition at line 397 of file suite.h.

◆ pass()

template<class >
void beast::unit_test::suite::pass
inherited

Record a successful test condition.

Definition at line 509 of file suite.h.

◆ fail() [1/2]

template<class String >
void beast::unit_test::suite::fail ( String const &  reason,
char const *  file,
int  line 
)
inherited

Record a failure.

Parameters
reasonOptional text added to the output on a failure.
fileThe source code file where the test failed.
lineThe source code line number where the test failed.

Definition at line 531 of file suite.h.

◆ fail() [2/2]

template<class >
void beast::unit_test::suite::fail ( std::string const &  reason = "")
inherited

Definition at line 518 of file suite.h.

◆ expect() [1/4]

template<class Condition >
bool beast::unit_test::suite::expect ( Condition const &  shouldBeTrue)
inherited

Evaluate a test condition.

This function provides improved logging by incorporating the file name and line number into the reported output on failure, as well as additional text specified by the caller.

Parameters
shouldBeTrueThe condition to test. The condition is evaluated in a boolean context.
reasonOptional added text to output on a failure.
fileThe source code file where the test failed.
lineThe source code line number where the test failed.
Returns
true if the test condition indicates success.

Definition at line 227 of file suite.h.

◆ expect() [2/4]

template<class Condition , class String >
bool beast::unit_test::suite::expect ( Condition const &  shouldBeTrue,
String const &  reason 
)
inherited

Definition at line 414 of file suite.h.

◆ expect() [3/4]

template<class Condition >
bool beast::unit_test::suite::expect ( Condition const &  shouldBeTrue,
char const *  file,
int  line 
)
inherited

Definition at line 238 of file suite.h.

◆ expect() [4/4]

template<class Condition , class String >
bool beast::unit_test::suite::expect ( Condition const &  shouldBeTrue,
String const &  reason,
char const *  file,
int  line 
)
inherited

Definition at line 427 of file suite.h.

◆ except() [1/4]

template<class F , class String >
bool beast::unit_test::suite::except ( F &&  f,
String const &  reason 
)
inherited

Definition at line 446 of file suite.h.

◆ except() [2/4]

template<class F >
bool beast::unit_test::suite::except ( F &&  f)
inherited

Definition at line 261 of file suite.h.

◆ except() [3/4]

template<class E , class F , class String >
bool beast::unit_test::suite::except ( F &&  f,
String const &  reason 
)
inherited

Definition at line 463 of file suite.h.

◆ except() [4/4]

template<class E , class F >
bool beast::unit_test::suite::except ( F &&  f)
inherited

Definition at line 270 of file suite.h.

◆ unexcept() [1/2]

template<class F , class String >
bool beast::unit_test::suite::unexcept ( F &&  f,
String const &  reason 
)
inherited

Definition at line 480 of file suite.h.

◆ unexcept() [2/2]

template<class F >
bool beast::unit_test::suite::unexcept ( F &&  f)
inherited

Definition at line 279 of file suite.h.

◆ arg()

std::string const & beast::unit_test::suite::arg ( ) const
inherited

Return the argument associated with the runner.

Definition at line 286 of file suite.h.

◆ unexpected() [1/2]

template<class Condition , class String >
bool beast::unit_test::suite::unexpected ( Condition  shouldBeFalse,
String const &  reason 
)
inherited

Definition at line 497 of file suite.h.

◆ unexpected() [2/2]

template<class Condition >
bool beast::unit_test::suite::unexpected ( Condition  shouldBeFalse)
inherited

Definition at line 299 of file suite.h.

◆ p_this_suite()

static suite ** beast::unit_test::suite::p_this_suite ( )
staticprivateinherited

Definition at line 308 of file suite.h.

◆ propagate_abort()

void beast::unit_test::suite::propagate_abort ( )
privateinherited

Definition at line 537 of file suite.h.

Member Data Documentation

◆ bogie

jtx::Account const ripple::test::MultiSign_test::bogie {"bogie", KeyType::secp256k1}
private

Definition at line 29 of file MultiSign_test.cpp.

◆ demon

jtx::Account const ripple::test::MultiSign_test::demon {"demon", KeyType::ed25519}
private

Definition at line 30 of file MultiSign_test.cpp.

◆ ghost

jtx::Account const ripple::test::MultiSign_test::ghost {"ghost", KeyType::secp256k1}
private

Definition at line 31 of file MultiSign_test.cpp.

◆ haunt

jtx::Account const ripple::test::MultiSign_test::haunt {"haunt", KeyType::ed25519}
private

Definition at line 32 of file MultiSign_test.cpp.

◆ jinni

jtx::Account const ripple::test::MultiSign_test::jinni {"jinni", KeyType::secp256k1}
private

Definition at line 33 of file MultiSign_test.cpp.

◆ phase

jtx::Account const ripple::test::MultiSign_test::phase {"phase", KeyType::ed25519}
private

Definition at line 34 of file MultiSign_test.cpp.

◆ shade

jtx::Account const ripple::test::MultiSign_test::shade {"shade", KeyType::secp256k1}
private

Definition at line 35 of file MultiSign_test.cpp.

◆ spook

jtx::Account const ripple::test::MultiSign_test::spook {"spook", KeyType::ed25519}
private

Definition at line 36 of file MultiSign_test.cpp.

◆ acc10

jtx::Account const ripple::test::MultiSign_test::acc10 {"acc10", KeyType::ed25519}
private

Definition at line 37 of file MultiSign_test.cpp.

◆ acc11

jtx::Account const ripple::test::MultiSign_test::acc11 {"acc11", KeyType::ed25519}
private

Definition at line 38 of file MultiSign_test.cpp.

◆ acc12

jtx::Account const ripple::test::MultiSign_test::acc12 {"acc12", KeyType::ed25519}
private

Definition at line 39 of file MultiSign_test.cpp.

◆ acc13

jtx::Account const ripple::test::MultiSign_test::acc13 {"acc13", KeyType::ed25519}
private

Definition at line 40 of file MultiSign_test.cpp.

◆ acc14

jtx::Account const ripple::test::MultiSign_test::acc14 {"acc14", KeyType::ed25519}
private

Definition at line 41 of file MultiSign_test.cpp.

◆ acc15

jtx::Account const ripple::test::MultiSign_test::acc15 {"acc15", KeyType::ed25519}
private

Definition at line 42 of file MultiSign_test.cpp.

◆ acc16

jtx::Account const ripple::test::MultiSign_test::acc16 {"acc16", KeyType::ed25519}
private

Definition at line 43 of file MultiSign_test.cpp.

◆ acc17

jtx::Account const ripple::test::MultiSign_test::acc17 {"acc17", KeyType::ed25519}
private

Definition at line 44 of file MultiSign_test.cpp.

◆ acc18

jtx::Account const ripple::test::MultiSign_test::acc18 {"acc18", KeyType::ed25519}
private

Definition at line 45 of file MultiSign_test.cpp.

◆ acc19

jtx::Account const ripple::test::MultiSign_test::acc19 {"acc19", KeyType::ed25519}
private

Definition at line 46 of file MultiSign_test.cpp.

◆ acc20

jtx::Account const ripple::test::MultiSign_test::acc20 {"acc20", KeyType::ed25519}
private

Definition at line 47 of file MultiSign_test.cpp.

◆ acc21

jtx::Account const ripple::test::MultiSign_test::acc21 {"acc21", KeyType::ed25519}
private

Definition at line 48 of file MultiSign_test.cpp.

◆ acc22

jtx::Account const ripple::test::MultiSign_test::acc22 {"acc22", KeyType::ed25519}
private

Definition at line 49 of file MultiSign_test.cpp.

◆ acc23

jtx::Account const ripple::test::MultiSign_test::acc23 {"acc23", KeyType::ed25519}
private

Definition at line 50 of file MultiSign_test.cpp.

◆ acc24

jtx::Account const ripple::test::MultiSign_test::acc24 {"acc24", KeyType::ed25519}
private

Definition at line 51 of file MultiSign_test.cpp.

◆ acc25

jtx::Account const ripple::test::MultiSign_test::acc25 {"acc25", KeyType::ed25519}
private

Definition at line 52 of file MultiSign_test.cpp.

◆ acc26

jtx::Account const ripple::test::MultiSign_test::acc26 {"acc26", KeyType::ed25519}
private

Definition at line 53 of file MultiSign_test.cpp.

◆ acc27

jtx::Account const ripple::test::MultiSign_test::acc27 {"acc27", KeyType::ed25519}
private

Definition at line 54 of file MultiSign_test.cpp.

◆ acc28

jtx::Account const ripple::test::MultiSign_test::acc28 {"acc28", KeyType::ed25519}
private

Definition at line 55 of file MultiSign_test.cpp.

◆ acc29

jtx::Account const ripple::test::MultiSign_test::acc29 {"acc29", KeyType::ed25519}
private

Definition at line 56 of file MultiSign_test.cpp.

◆ acc30

jtx::Account const ripple::test::MultiSign_test::acc30 {"acc30", KeyType::ed25519}
private

Definition at line 57 of file MultiSign_test.cpp.

◆ acc31

jtx::Account const ripple::test::MultiSign_test::acc31 {"acc31", KeyType::ed25519}
private

Definition at line 58 of file MultiSign_test.cpp.

◆ acc32

jtx::Account const ripple::test::MultiSign_test::acc32 {"acc32", KeyType::ed25519}
private

Definition at line 59 of file MultiSign_test.cpp.

◆ acc33

jtx::Account const ripple::test::MultiSign_test::acc33 {"acc33", KeyType::ed25519}
private

Definition at line 60 of file MultiSign_test.cpp.

◆ abort_

bool beast::unit_test::suite::abort_ = false
privateinherited

Definition at line 55 of file suite.h.

◆ aborted_

bool beast::unit_test::suite::aborted_ = false
privateinherited

Definition at line 56 of file suite.h.

◆ runner_

runner* beast::unit_test::suite::runner_ = nullptr
privateinherited

Definition at line 57 of file suite.h.

◆ log

log_os<char> beast::unit_test::suite::log
inherited

Logging output stream.

Text sent to the log output stream will be forwarded to the output stream associated with the runner.

Definition at line 150 of file suite.h.

◆ testcase

testcase_t beast::unit_test::suite::testcase
inherited

Memberspace for declaring test cases.

Definition at line 153 of file suite.h.