|
xrpld
|


Public Member Functions | |
| void | testDisabled () |
| void | testInvalidSponsorshipSet () |
| void | testPseudoAccountSponsorship () |
| void | testSingleSigning (FeatureBitset features) |
| void | testMultiSigning (FeatureBitset features) |
| void | testInvalidSponsorField () |
| void | testSimpleSponsorshipSet () |
| void | testRemainingOwnerCountOverflow () |
| void | testConsequences () |
| void | testPreFundAndCosign () |
| void | testSponsoredFreeTierReserve () |
| void | testTransferSponsor (FeatureBitset features) |
| void | testSponsorFee () |
| void | testSponsorAccount () |
| void | testRequireFlag () |
| void | testSponsorReserveSimple (bool cosigning) |
| template<typename SubmitCallback> | |
| void | testEachSponsorship (test::jtx::Env &env, bool cosigning, jtx::Account const &sponsor, jtx::Account const &sponsee, uint32_t reserveCount, uint32_t sponsorReserveCount, TER insufficientReserveResult, SubmitCallback callback, std::optional< std::function< void()> > expected=std::nullopt) |
| void | testCheck (bool cosigning) |
| void | testDelegate (bool cosigning) |
| void | testDepositPreauth (bool cosigning) |
| void | testCredential (bool cosigning) |
| void | testEscrow (bool cosigning) |
| void | testMPToken (bool cosigning) |
| void | testPayChan (bool cosigning) |
| void | testSignerList (bool cosigning) |
| void | testLegacySignerListReserve () |
| void | testSponsoredTrustLineNoFreeReserve () |
| void | testCoSignReserveBoundedBySponsorshipBudget () |
| void | testTrustSet (bool cosigning) |
| void | testAccountDelete () |
| void | testDelegatePermission () |
| void | testDelegateBlockReserveSponsor () |
| void | testDelegateSponsorFeePayer () |
| void | testBatch () |
| void | testReserveSponsorGate () |
| void | testSponsorReserve (bool cosigning) |
| void | testZeroBalanceSponsoredPaymentFeePayerCheck () |
| void | testTrustSetCounterpartySponsorMisroute () |
| void | testSelfEscrowFinishReserveGate () |
| void | testFeeSponsoredVaultInvariant () |
| void | testSponsoredObjectDeletionRefund () |
| 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) |
| DEPRECATED. | |
| 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 Suite * | thisSuite () |
| Returns the "current" running suite. | |
Public Attributes | |
| LogOs< char > | log |
| Logging output stream. | |
| TestcaseT | testcase |
| Memberspace for declaring test cases. | |
Protected Member Functions | |
| void | testSponsor () |
| void | testTxSponsor (bool cosigning) |
| Runner & | runner () const |
| Lets a suite compose other suites (e.g. | |
Private Member Functions | |
| void | propagateAbort () const |
Static Private Member Functions | |
| static Suite ** | pThisSuite () |
Private Attributes | |
| bool | abort_ = false |
| bool | aborted_ = false |
| Runner * | runner_ = nullptr |
Definition at line 110 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testDisabled | ( | ) |
Definition at line 114 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testInvalidSponsorshipSet | ( | ) |
Definition at line 140 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testPseudoAccountSponsorship | ( | ) |
Definition at line 339 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testSingleSigning | ( | FeatureBitset | features | ) |
Definition at line 380 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testMultiSigning | ( | FeatureBitset | features | ) |
Definition at line 419 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testInvalidSponsorField | ( | ) |
Definition at line 477 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testSimpleSponsorshipSet | ( | ) |
Definition at line 522 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testRemainingOwnerCountOverflow | ( | ) |
Definition at line 806 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testConsequences | ( | ) |
Definition at line 900 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testPreFundAndCosign | ( | ) |
Definition at line 960 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testSponsoredFreeTierReserve | ( | ) |
Definition at line 1036 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testTransferSponsor | ( | FeatureBitset | features | ) |
Definition at line 1077 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testSponsorFee | ( | ) |
Definition at line 1934 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testSponsorAccount | ( | ) |
Definition at line 2385 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testRequireFlag | ( | ) |
Definition at line 2510 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testSponsorReserveSimple | ( | bool | cosigning | ) |
Definition at line 2585 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testEachSponsorship | ( | test::jtx::Env & | env, |
| bool | cosigning, | ||
| jtx::Account const & | sponsor, | ||
| jtx::Account const & | sponsee, | ||
| uint32_t | reserveCount, | ||
| uint32_t | sponsorReserveCount, | ||
| TER | insufficientReserveResult, | ||
| SubmitCallback | callback, | ||
| std::optional< std::function< void()> > | expected = std::nullopt ) |
Definition at line 2639 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testCheck | ( | bool | cosigning | ) |
Definition at line 2811 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testDelegate | ( | bool | cosigning | ) |
Definition at line 3047 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testDepositPreauth | ( | bool | cosigning | ) |
Definition at line 3113 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testCredential | ( | bool | cosigning | ) |
Definition at line 3227 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testEscrow | ( | bool | cosigning | ) |
Definition at line 3392 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testMPToken | ( | bool | cosigning | ) |
Definition at line 3875 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testPayChan | ( | bool | cosigning | ) |
Definition at line 4073 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testSignerList | ( | bool | cosigning | ) |
Definition at line 4187 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testLegacySignerListReserve | ( | ) |
Definition at line 4264 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testSponsoredTrustLineNoFreeReserve | ( | ) |
Definition at line 4333 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testCoSignReserveBoundedBySponsorshipBudget | ( | ) |
Definition at line 4383 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testTrustSet | ( | bool | cosigning | ) |
Definition at line 4432 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testAccountDelete | ( | ) |
Definition at line 4622 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testDelegatePermission | ( | ) |
Definition at line 4791 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testDelegateBlockReserveSponsor | ( | ) |
Definition at line 4846 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testDelegateSponsorFeePayer | ( | ) |
Definition at line 4889 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testBatch | ( | ) |
Definition at line 4967 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testReserveSponsorGate | ( | ) |
Definition at line 5291 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testSponsorReserve | ( | bool | cosigning | ) |
Definition at line 5323 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testZeroBalanceSponsoredPaymentFeePayerCheck | ( | ) |
Definition at line 5339 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testTrustSetCounterpartySponsorMisroute | ( | ) |
Definition at line 5385 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testSelfEscrowFinishReserveGate | ( | ) |
Definition at line 5484 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testFeeSponsoredVaultInvariant | ( | ) |
Definition at line 5567 of file Sponsor_test.cpp.
| void xrpl::test::Sponsor_test::testSponsoredObjectDeletionRefund | ( | ) |
Definition at line 5617 of file Sponsor_test.cpp.
|
protected |
Definition at line 5692 of file Sponsor_test.cpp.
|
protected |
Definition at line 5741 of file Sponsor_test.cpp.
|
overridevirtual |
Runs the suite.
Implements beast::unit_test::Suite.
Reimplemented in xrpl::test::SponsorTxCosigning_test, and xrpl::test::SponsorTxPrefunded_test.
Definition at line 5748 of file Sponsor_test.cpp.
|
staticinherited |
|
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.
|
inherited |
|
inherited |
|
inherited |
|
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.
| shouldBeTrue | The condition to test. The condition is evaluated in a boolean context. |
| reason | Optional added text to output on a failure. |
| file | The source code file where the test failed. |
| line | The source code line number where the test failed. |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
protectedinherited |
|
inherited |
|
inherited |
|
staticprivateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
inherited |