|
xrpld
|


Public Member Functions | |
| void | testRmFundedOffer (FeatureBitset features) |
| void | testCanceledOffer (FeatureBitset features) |
| void | testTinyPayment (FeatureBitset features) |
| void | testXRPTinyPayment (FeatureBitset features) |
| void | testRmSmallIncreasedQOffersXRP (FeatureBitset features) |
| void | testRmSmallIncreasedQOffersMPT (FeatureBitset features) |
| void | testMPTIssuerOfferUsesRemainingCapacity (FeatureBitset features) |
| void | testPartiallyFundedMPTInputOfferZeroInput (FeatureBitset features) |
| void | testInsufficientReserve (FeatureBitset features) |
| void | testFillModes (FeatureBitset features) |
| void | testMPTAMMLimitQualityRounding (FeatureBitset features) |
| void | testMalformed (FeatureBitset features) |
| void | testExpiration (FeatureBitset features) |
| void | testUnfundedCross (FeatureBitset features) |
| void | testSelfCross (bool usePartner, FeatureBitset features) |
| void | testNegativeBalance (FeatureBitset features) |
| void | testOfferCrossWithXRP (bool reverseOrder, FeatureBitset features) |
| void | testOfferCrossWithLimitOverride (FeatureBitset features) |
| void | testOfferAcceptThenCancel (FeatureBitset features) |
| void | testCurrencyConversionEntire (FeatureBitset features) |
| void | testCurrencyConversionIntoDebt (FeatureBitset features) |
| void | testCurrencyConversionInParts (FeatureBitset features) |
| void | testCrossCurrencyStartXRP (FeatureBitset features) |
| void | testCrossCurrencyEndXRP (FeatureBitset features) |
| void | testCrossCurrencyBridged (FeatureBitset features) |
| void | testBridgedSecondLegDry (FeatureBitset features) |
| void | testOfferFeesConsumeFunds (FeatureBitset features) |
| void | testOfferCreateThenCross (FeatureBitset features) |
| void | testSellFlagBasic (FeatureBitset features) |
| void | testSellFlagExceedLimit (FeatureBitset features) |
| void | testGatewayCrossCurrency (FeatureBitset features) |
| void | testPartialCross (FeatureBitset features) |
| void | testXRPDirectCross (FeatureBitset features) |
| void | testDirectCross (FeatureBitset features) |
| void | testBridgedCross (FeatureBitset features) |
| void | testSellOffer (FeatureBitset features) |
| void | testSellWithFillOrKill (FeatureBitset features) |
| void | testTransferRateOffer (FeatureBitset features) |
| void | testTransferRateOverflowOffer (FeatureBitset features) |
| void | testSelfCrossOffer1 (FeatureBitset features) |
| void | testSelfCrossOffer2 (FeatureBitset features) |
| void | testSelfCrossOffer (FeatureBitset features) |
| void | testSelfIssueOffer (FeatureBitset features) |
| void | testDirectToDirectPath (FeatureBitset features) |
| void | testSelfCrossLowQualityOffer (FeatureBitset features) |
| void | testOfferInScaling (FeatureBitset features) |
| void | testOfferInScalingWithXferRate (FeatureBitset features) |
| void | testSelfPayXferFeeOffer (FeatureBitset features) |
| void | testSelfPayUnlimitedFunds (FeatureBitset features) |
| void | testRequireAuth (FeatureBitset features) |
| void | testMissingAuth (FeatureBitset features) |
| void | testSelfAuth (FeatureBitset features) |
| void | testDeletedOfferIssuer (FeatureBitset features) |
| void | testTicketOffer (FeatureBitset features) |
| void | testTicketCancelOffer (FeatureBitset features) |
| void | testFillOrKill (FeatureBitset features) |
| void | testTickSize (FeatureBitset features) |
| void | testAutoCreateReserve (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) |
| 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 std::vector< SLE::const_pointer > | offersOnAccount (jtx::Env &env, jtx::Account account) |
| static std::vector< SLE::const_pointer > | sortedOffersOnAccount (jtx::Env &env, jtx::Account const &acct) |
| 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 | |
| Runner & | runner () const |
| Lets a suite compose other suites (e.g. | |
Private Member Functions | |
| void | propagateAbort () const |
Static Private Member Functions | |
| static XRPAmount | reserve (jtx::Env &env, std::uint32_t count) |
| static std::uint32_t | lastClose (jtx::Env &env) |
| static Suite ** | pThisSuite () |
Private Attributes | |
| bool | abort_ = false |
| bool | aborted_ = false |
| Runner * | runner_ = nullptr |
Definition at line 63 of file OfferMPT_test.cpp.
|
staticprivate |
Definition at line 66 of file OfferMPT_test.cpp.
|
staticprivate |
Definition at line 72 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testRmFundedOffer | ( | FeatureBitset | features | ) |
Definition at line 79 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCanceledOffer | ( | FeatureBitset | features | ) |
Definition at line 143 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testTinyPayment | ( | FeatureBitset | features | ) |
Definition at line 218 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testXRPTinyPayment | ( | FeatureBitset | features | ) |
Definition at line 268 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testRmSmallIncreasedQOffersXRP | ( | FeatureBitset | features | ) |
Definition at line 343 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testRmSmallIncreasedQOffersMPT | ( | FeatureBitset | features | ) |
Definition at line 452 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testMPTIssuerOfferUsesRemainingCapacity | ( | FeatureBitset | features | ) |
Definition at line 619 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testPartiallyFundedMPTInputOfferZeroInput | ( | FeatureBitset | features | ) |
Definition at line 673 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testInsufficientReserve | ( | FeatureBitset | features | ) |
Definition at line 880 of file OfferMPT_test.cpp.
|
static |
Definition at line 993 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testFillModes | ( | FeatureBitset | features | ) |
Definition at line 1004 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testMPTAMMLimitQualityRounding | ( | FeatureBitset | features | ) |
Definition at line 1218 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testMalformed | ( | FeatureBitset | features | ) |
Definition at line 1373 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testExpiration | ( | FeatureBitset | features | ) |
Definition at line 1413 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testUnfundedCross | ( | FeatureBitset | features | ) |
Definition at line 1489 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfCross | ( | bool | usePartner, |
| FeatureBitset | features ) |
Definition at line 1541 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testNegativeBalance | ( | FeatureBitset | features | ) |
Definition at line 1667 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferCrossWithXRP | ( | bool | reverseOrder, |
| FeatureBitset | features ) |
Definition at line 1729 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferCrossWithLimitOverride | ( | FeatureBitset | features | ) |
Definition at line 1781 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferAcceptThenCancel | ( | FeatureBitset | features | ) |
Definition at line 1818 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCurrencyConversionEntire | ( | FeatureBitset | features | ) |
Definition at line 1842 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCurrencyConversionIntoDebt | ( | FeatureBitset | features | ) |
Definition at line 1890 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCurrencyConversionInParts | ( | FeatureBitset | features | ) |
Definition at line 1923 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCrossCurrencyStartXRP | ( | FeatureBitset | features | ) |
Definition at line 1997 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCrossCurrencyEndXRP | ( | FeatureBitset | features | ) |
Definition at line 2034 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCrossCurrencyBridged | ( | FeatureBitset | features | ) |
Definition at line 2076 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testBridgedSecondLegDry | ( | FeatureBitset | features | ) |
Definition at line 2132 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferFeesConsumeFunds | ( | FeatureBitset | features | ) |
Definition at line 2199 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferCreateThenCross | ( | FeatureBitset | features | ) |
Definition at line 2249 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSellFlagBasic | ( | FeatureBitset | features | ) |
Definition at line 2279 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSellFlagExceedLimit | ( | FeatureBitset | features | ) |
Definition at line 2318 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testGatewayCrossCurrency | ( | FeatureBitset | features | ) |
Definition at line 2359 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testPartialCross | ( | FeatureBitset | features | ) |
Definition at line 2424 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testXRPDirectCross | ( | FeatureBitset | features | ) |
Definition at line 2578 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testDirectCross | ( | FeatureBitset | features | ) |
Definition at line 2652 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testBridgedCross | ( | FeatureBitset | features | ) |
Definition at line 2779 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSellOffer | ( | FeatureBitset | features | ) |
Definition at line 2879 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSellWithFillOrKill | ( | FeatureBitset | features | ) |
Definition at line 3067 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testTransferRateOffer | ( | FeatureBitset | features | ) |
Definition at line 3145 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testTransferRateOverflowOffer | ( | FeatureBitset | features | ) |
Definition at line 3572 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfCrossOffer1 | ( | FeatureBitset | features | ) |
Definition at line 3813 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfCrossOffer2 | ( | FeatureBitset | features | ) |
Definition at line 3885 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfCrossOffer | ( | FeatureBitset | features | ) |
Definition at line 4020 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfIssueOffer | ( | FeatureBitset | features | ) |
Definition at line 4028 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testDirectToDirectPath | ( | FeatureBitset | features | ) |
Definition at line 4074 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfCrossLowQualityOffer | ( | FeatureBitset | features | ) |
Definition at line 4130 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferInScaling | ( | FeatureBitset | features | ) |
Definition at line 4164 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferInScalingWithXferRate | ( | FeatureBitset | features | ) |
Definition at line 4209 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfPayXferFeeOffer | ( | FeatureBitset | features | ) |
Definition at line 4282 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfPayUnlimitedFunds | ( | FeatureBitset | features | ) |
Definition at line 4465 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testRequireAuth | ( | FeatureBitset | features | ) |
Definition at line 4634 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testMissingAuth | ( | FeatureBitset | features | ) |
Definition at line 4683 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfAuth | ( | FeatureBitset | features | ) |
Definition at line 4775 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testDeletedOfferIssuer | ( | FeatureBitset | features | ) |
Definition at line 4834 of file OfferMPT_test.cpp.
|
static |
Definition at line 4946 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testTicketOffer | ( | FeatureBitset | features | ) |
Definition at line 4956 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testTicketCancelOffer | ( | FeatureBitset | features | ) |
Definition at line 5073 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testFillOrKill | ( | FeatureBitset | features | ) |
Definition at line 5184 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testTickSize | ( | FeatureBitset | features | ) |
Definition at line 5359 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testAutoCreateReserve | ( | FeatureBitset | features | ) |
Definition at line 5498 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testAll | ( | FeatureBitset | features | ) |
Definition at line 5593 of file OfferMPT_test.cpp.
|
overridevirtual |
Runs the suite.
Implements beast::unit_test::Suite.
Definition at line 5656 of file OfferMPT_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 |