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
xrpl::test::MultiSign_test Class Reference
Inheritance diagram for xrpl::test::MultiSign_test:
Inheritance graph
[legend]
Collaboration diagram for xrpl::test::MultiSign_test:
Collaboration graph
[legend]

Public Member Functions

void testNoReserve (FeatureBitset features)
 
void testSignerListSet (FeatureBitset features)
 
void testPhantomSigners (FeatureBitset features)
 
void testFee (FeatureBitset features)
 
void testMisorderedSigners (FeatureBitset features)
 
void testMasterSigners (FeatureBitset features)
 
void testRegularSigners (FeatureBitset features)
 
void testRegularSignersUsingSubmitMulti (FeatureBitset features)
 
void testHeterogeneousSigners (FeatureBitset features)
 
void testKeyDisable (FeatureBitset features)
 
void testRegKey (FeatureBitset features)
 
void testTxTypes (FeatureBitset features)
 
void testBadSignatureText (FeatureBitset features)
 
void testNoMultiSigners (FeatureBitset features)
 
void testMultisigningMultisigner (FeatureBitset features)
 
void testSignForHash (FeatureBitset features)
 
void testSignersWithTickets (FeatureBitset features)
 
void testSignersWithTags (FeatureBitset features)
 
void testSignerListSetFlags (FeatureBitset features)
 
void testSignerListObject (FeatureBitset features)
 
void testAll (FeatureBitset features)
 
void run () override
 Runs the suite.
 
template<class = void>
void operator() (runner &r)
 Invokes the test using the specified runner.
 
template<class = void>
void pass ()
 Record a successful test condition.
 
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.
 
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.
 
template<class = void>
void fail (std::string const &reason="")
 
template<class Condition >
bool expect (Condition const &shouldBeTrue)
 Evaluate a test condition.
 
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.
 

Public Attributes

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

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 11 of file MultiSign_test.cpp.

Member Function Documentation

◆ testNoReserve()

void xrpl::test::MultiSign_test::testNoReserve ( FeatureBitset  features)

Definition at line 49 of file MultiSign_test.cpp.

◆ testSignerListSet()

void xrpl::test::MultiSign_test::testSignerListSet ( FeatureBitset  features)

Definition at line 113 of file MultiSign_test.cpp.

◆ testPhantomSigners()

void xrpl::test::MultiSign_test::testPhantomSigners ( FeatureBitset  features)

Definition at line 185 of file MultiSign_test.cpp.

◆ testFee()

void xrpl::test::MultiSign_test::testFee ( FeatureBitset  features)

Definition at line 248 of file MultiSign_test.cpp.

◆ testMisorderedSigners()

void xrpl::test::MultiSign_test::testMisorderedSigners ( FeatureBitset  features)

Definition at line 309 of file MultiSign_test.cpp.

◆ testMasterSigners()

void xrpl::test::MultiSign_test::testMasterSigners ( FeatureBitset  features)

Definition at line 336 of file MultiSign_test.cpp.

◆ testRegularSigners()

void xrpl::test::MultiSign_test::testRegularSigners ( FeatureBitset  features)

Definition at line 391 of file MultiSign_test.cpp.

◆ testRegularSignersUsingSubmitMulti()

void xrpl::test::MultiSign_test::testRegularSignersUsingSubmitMulti ( FeatureBitset  features)

Definition at line 451 of file MultiSign_test.cpp.

◆ testHeterogeneousSigners()

void xrpl::test::MultiSign_test::testHeterogeneousSigners ( FeatureBitset  features)

Definition at line 667 of file MultiSign_test.cpp.

◆ testKeyDisable()

void xrpl::test::MultiSign_test::testKeyDisable ( FeatureBitset  features)

Definition at line 796 of file MultiSign_test.cpp.

◆ testRegKey()

void xrpl::test::MultiSign_test::testRegKey ( FeatureBitset  features)

Definition at line 873 of file MultiSign_test.cpp.

◆ testTxTypes()

void xrpl::test::MultiSign_test::testTxTypes ( FeatureBitset  features)

Definition at line 910 of file MultiSign_test.cpp.

◆ testBadSignatureText()

void xrpl::test::MultiSign_test::testBadSignatureText ( FeatureBitset  features)

Definition at line 991 of file MultiSign_test.cpp.

◆ testNoMultiSigners()

void xrpl::test::MultiSign_test::testNoMultiSigners ( FeatureBitset  features)

Definition at line 1175 of file MultiSign_test.cpp.

◆ testMultisigningMultisigner()

void xrpl::test::MultiSign_test::testMultisigningMultisigner ( FeatureBitset  features)

Definition at line 1191 of file MultiSign_test.cpp.

◆ testSignForHash()

void xrpl::test::MultiSign_test::testSignForHash ( FeatureBitset  features)

Definition at line 1256 of file MultiSign_test.cpp.

◆ testSignersWithTickets()

void xrpl::test::MultiSign_test::testSignersWithTickets ( FeatureBitset  features)

Definition at line 1330 of file MultiSign_test.cpp.

◆ testSignersWithTags()

void xrpl::test::MultiSign_test::testSignersWithTags ( FeatureBitset  features)

Definition at line 1367 of file MultiSign_test.cpp.

◆ testSignerListSetFlags()

void xrpl::test::MultiSign_test::testSignerListSetFlags ( FeatureBitset  features)

Definition at line 1438 of file MultiSign_test.cpp.

◆ testSignerListObject()

void xrpl::test::MultiSign_test::testSignerListObject ( FeatureBitset  features)

Definition at line 1457 of file MultiSign_test.cpp.

◆ testAll()

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

Definition at line 1487 of file MultiSign_test.cpp.

◆ run()

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

Runs the suite.

Implements beast::unit_test::suite.

Definition at line 1510 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 156 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 389 of file suite.h.

◆ pass()

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

Record a successful test condition.

Definition at line 497 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 519 of file suite.h.

◆ fail() [2/2]

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

Definition at line 506 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 224 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 406 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 235 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 419 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 434 of file suite.h.

◆ except() [2/4]

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

Definition at line 254 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 451 of file suite.h.

◆ except() [4/4]

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

Definition at line 263 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 468 of file suite.h.

◆ unexcept() [2/2]

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

Definition at line 272 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 279 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 485 of file suite.h.

◆ unexpected() [2/2]

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

Definition at line 292 of file suite.h.

◆ p_this_suite()

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

Definition at line 301 of file suite.h.

◆ propagate_abort()

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

Definition at line 525 of file suite.h.

Member Data Documentation

◆ bogie

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

Definition at line 14 of file MultiSign_test.cpp.

◆ demon

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

Definition at line 15 of file MultiSign_test.cpp.

◆ ghost

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

Definition at line 16 of file MultiSign_test.cpp.

◆ haunt

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

Definition at line 17 of file MultiSign_test.cpp.

◆ jinni

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

Definition at line 18 of file MultiSign_test.cpp.

◆ phase

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

Definition at line 19 of file MultiSign_test.cpp.

◆ shade

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

Definition at line 20 of file MultiSign_test.cpp.

◆ spook

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

Definition at line 21 of file MultiSign_test.cpp.

◆ acc10

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

Definition at line 22 of file MultiSign_test.cpp.

◆ acc11

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

Definition at line 23 of file MultiSign_test.cpp.

◆ acc12

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

Definition at line 24 of file MultiSign_test.cpp.

◆ acc13

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

Definition at line 25 of file MultiSign_test.cpp.

◆ acc14

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

Definition at line 26 of file MultiSign_test.cpp.

◆ acc15

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

Definition at line 27 of file MultiSign_test.cpp.

◆ acc16

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

Definition at line 28 of file MultiSign_test.cpp.

◆ acc17

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

Definition at line 29 of file MultiSign_test.cpp.

◆ acc18

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

Definition at line 30 of file MultiSign_test.cpp.

◆ acc19

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

Definition at line 31 of file MultiSign_test.cpp.

◆ acc20

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

Definition at line 32 of file MultiSign_test.cpp.

◆ acc21

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

Definition at line 33 of file MultiSign_test.cpp.

◆ acc22

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

Definition at line 34 of file MultiSign_test.cpp.

◆ acc23

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

Definition at line 35 of file MultiSign_test.cpp.

◆ acc24

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

Definition at line 36 of file MultiSign_test.cpp.

◆ acc25

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

Definition at line 37 of file MultiSign_test.cpp.

◆ acc26

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

Definition at line 38 of file MultiSign_test.cpp.

◆ acc27

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

Definition at line 39 of file MultiSign_test.cpp.

◆ acc28

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

Definition at line 40 of file MultiSign_test.cpp.

◆ acc29

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

Definition at line 41 of file MultiSign_test.cpp.

◆ acc30

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

Definition at line 42 of file MultiSign_test.cpp.

◆ acc31

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

Definition at line 43 of file MultiSign_test.cpp.

◆ acc32

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

Definition at line 44 of file MultiSign_test.cpp.

◆ acc33

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

Definition at line 45 of file MultiSign_test.cpp.

◆ abort_

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

Definition at line 53 of file suite.h.

◆ aborted_

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

Definition at line 54 of file suite.h.

◆ runner_

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

Definition at line 55 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 147 of file suite.h.

◆ testcase

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

Memberspace for declaring test cases.

Definition at line 150 of file suite.h.