|
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 | testInsufficientReserve (FeatureBitset features) |
| void | testFillModes (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 | 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) |
| 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. | |
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 55 of file OfferMPT_test.cpp.
|
staticprivate |
Definition at line 58 of file OfferMPT_test.cpp.
|
staticprivate |
Definition at line 64 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testRmFundedOffer | ( | FeatureBitset | features | ) |
Definition at line 71 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCanceledOffer | ( | FeatureBitset | features | ) |
Definition at line 135 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testTinyPayment | ( | FeatureBitset | features | ) |
Definition at line 210 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testXRPTinyPayment | ( | FeatureBitset | features | ) |
Definition at line 260 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testRmSmallIncreasedQOffersXRP | ( | FeatureBitset | features | ) |
Definition at line 335 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testRmSmallIncreasedQOffersMPT | ( | FeatureBitset | features | ) |
Definition at line 444 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testInsufficientReserve | ( | FeatureBitset | features | ) |
Definition at line 611 of file OfferMPT_test.cpp.
|
static |
Definition at line 724 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testFillModes | ( | FeatureBitset | features | ) |
Definition at line 735 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testMalformed | ( | FeatureBitset | features | ) |
Definition at line 949 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testExpiration | ( | FeatureBitset | features | ) |
Definition at line 989 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testUnfundedCross | ( | FeatureBitset | features | ) |
Definition at line 1065 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfCross | ( | bool | usePartner, |
| FeatureBitset | features ) |
Definition at line 1117 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testNegativeBalance | ( | FeatureBitset | features | ) |
Definition at line 1243 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferCrossWithXRP | ( | bool | reverseOrder, |
| FeatureBitset | features ) |
Definition at line 1305 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferCrossWithLimitOverride | ( | FeatureBitset | features | ) |
Definition at line 1357 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferAcceptThenCancel | ( | FeatureBitset | features | ) |
Definition at line 1394 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCurrencyConversionEntire | ( | FeatureBitset | features | ) |
Definition at line 1418 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCurrencyConversionIntoDebt | ( | FeatureBitset | features | ) |
Definition at line 1466 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCurrencyConversionInParts | ( | FeatureBitset | features | ) |
Definition at line 1499 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCrossCurrencyStartXRP | ( | FeatureBitset | features | ) |
Definition at line 1573 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCrossCurrencyEndXRP | ( | FeatureBitset | features | ) |
Definition at line 1610 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testCrossCurrencyBridged | ( | FeatureBitset | features | ) |
Definition at line 1652 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testBridgedSecondLegDry | ( | FeatureBitset | features | ) |
Definition at line 1708 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferFeesConsumeFunds | ( | FeatureBitset | features | ) |
Definition at line 1775 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferCreateThenCross | ( | FeatureBitset | features | ) |
Definition at line 1823 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSellFlagBasic | ( | FeatureBitset | features | ) |
Definition at line 1853 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSellFlagExceedLimit | ( | FeatureBitset | features | ) |
Definition at line 1892 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testGatewayCrossCurrency | ( | FeatureBitset | features | ) |
Definition at line 1933 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testPartialCross | ( | FeatureBitset | features | ) |
Definition at line 1998 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testXRPDirectCross | ( | FeatureBitset | features | ) |
Definition at line 2152 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testDirectCross | ( | FeatureBitset | features | ) |
Definition at line 2226 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testBridgedCross | ( | FeatureBitset | features | ) |
Definition at line 2353 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSellOffer | ( | FeatureBitset | features | ) |
Definition at line 2453 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSellWithFillOrKill | ( | FeatureBitset | features | ) |
Definition at line 2641 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testTransferRateOffer | ( | FeatureBitset | features | ) |
Definition at line 2719 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfCrossOffer1 | ( | FeatureBitset | features | ) |
Definition at line 3102 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfCrossOffer2 | ( | FeatureBitset | features | ) |
Definition at line 3174 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfCrossOffer | ( | FeatureBitset | features | ) |
Definition at line 3309 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfIssueOffer | ( | FeatureBitset | features | ) |
Definition at line 3317 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testDirectToDirectPath | ( | FeatureBitset | features | ) |
Definition at line 3363 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfCrossLowQualityOffer | ( | FeatureBitset | features | ) |
Definition at line 3419 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferInScaling | ( | FeatureBitset | features | ) |
Definition at line 3453 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testOfferInScalingWithXferRate | ( | FeatureBitset | features | ) |
Definition at line 3498 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfPayXferFeeOffer | ( | FeatureBitset | features | ) |
Definition at line 3571 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfPayUnlimitedFunds | ( | FeatureBitset | features | ) |
Definition at line 3754 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testRequireAuth | ( | FeatureBitset | features | ) |
Definition at line 3923 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testMissingAuth | ( | FeatureBitset | features | ) |
Definition at line 3972 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testSelfAuth | ( | FeatureBitset | features | ) |
Definition at line 4064 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testDeletedOfferIssuer | ( | FeatureBitset | features | ) |
Definition at line 4123 of file OfferMPT_test.cpp.
|
static |
Definition at line 4235 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testTicketOffer | ( | FeatureBitset | features | ) |
Definition at line 4245 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testTicketCancelOffer | ( | FeatureBitset | features | ) |
Definition at line 4362 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testFillOrKill | ( | FeatureBitset | features | ) |
Definition at line 4473 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testTickSize | ( | FeatureBitset | features | ) |
Definition at line 4648 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testAutoCreateReserve | ( | FeatureBitset | features | ) |
Definition at line 4787 of file OfferMPT_test.cpp.
| void xrpl::test::OfferMPT_test::testAll | ( | FeatureBitset | features | ) |
Definition at line 4882 of file OfferMPT_test.cpp.
|
overridevirtual |
Runs the suite.
Implements beast::unit_test::Suite.
Definition at line 4941 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 |
|
inherited |
|
inherited |
|
staticprivateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
inherited |