|
xrpld
|


Classes | |
| struct | SyncStep |
Public Member Functions | |
| 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 Types | |
| using | PrettyAsset = test::jtx::PrettyAsset |
| using | PrettyAmount = test::jtx::PrettyAmount |
| using | D = NetClock::duration |
| using | Tp = NetClock::time_point |
Protected Member Functions | |
| VaultSnapshot | snapshotVault (test::jtx::Env &env, Keylet const &vaultKeylet, PrettyAsset const &asset) |
| void | expectCoarsened (test::jtx::Env const &env, Keylet const &vaultKeylet) |
| Number | expectAvailableAtSixteenDigits (test::jtx::Env const &env, Keylet const &vaultKeylet, PrettyAsset const &asset) |
| SLE::const_pointer | expectVault (test::jtx::Env const &env, Keylet const &vaultKeylet, VaultExpect const &expected) |
| void | checkFixedPrecisionSync (test::jtx::Env const &env, Keylet const &vaultKeylet, Number const &expectedAvailable) |
| void | closeToTime (test::jtx::Env &env, NetClock::time_point time, std::source_location const &loc=std::source_location::current()) |
| Runner & | runner () const |
| Lets a suite compose other suites (e.g. | |
Static Protected Member Functions | |
| static FeatureBitset | features () |
| static std::pair< test::jtx::Vault, Keylet > | createScaledVault (test::jtx::Env &env, test::jtx::Account const &owner, Asset const &asset, std::uint8_t scale) |
| static AssetAccounts | setupIou (test::jtx::Env &env, IouParams const ¶ms) |
| static AssetAccounts | setupIou (test::jtx::Env &env) |
| static AssetAccounts | setupMpt (test::jtx::Env &env, MptParams const ¶ms) |
| static Number | largestPowerOfTenAtMost (Number const &x) |
| static Number | smallestPowerOfTenAbove (Number const &x) |
| static NetClock::duration | getLedgerTimeResolution (test::jtx::Env &env) |
| Get the current ledger's close time resolution. | |
| static ClosedEndedSetup | makeClosedEndedVault (test::jtx::Env &env, test::jtx::Account const &owner, Asset const &asset, std::uint32_t subOffset, std::uint32_t gap) |
Protected Attributes | |
| FeatureBitset const | all_ {test::jtx::testableAmendments()} |
| std::string const | iouCurrency_ {"IOU"} |
Static Protected Attributes | |
| static constexpr auto | kNegativeAmount |
Private Member Functions | |
| void | testCreate () |
| void | testDepositAdmission () |
| void | testExistingCashBasisVault () |
| void | testPartialTowardZeroRounding () |
| void | testIntegralAssetCapacity () |
| void | testDust () |
| void | runSyncSteps (test::jtx::Env &env, test::jtx::Vault const &vault, Keylet const &keylet, test::jtx::Account const &issuer, test::jtx::Account const &holder, PrettyAsset const &asset, std::vector< SyncStep > const &steps) |
| void | testAssetsTotalStaysInSyncIou () |
| void | testAssetsTotalStaysInSyncClawback () |
| void | testAssetsTotalStaysInSyncIntegralAsset () |
| void | testCashBasisAssetsTotalControl () |
| void | testAssetsMaximumNotRepresentableOnCreate () |
| void | testAssetsMaximumNotRepresentableOnSet () |
| void | testAssetsMaximumIntegralAssets () |
| void | testAssetsMaximumOffGridAcceptedPreV12 () |
| void | testAssetsMaximumRejectedOnExistingVaultAfterV12 () |
| void | testOffGridAssetsMaximumReplacedAfterV12 () |
| void | testDepositCoarseningRefusedInsteadOfAssociateAssetRounding () |
| void | propagateAbort () const |
Static Private Member Functions | |
| static Suite ** | pThisSuite () |
Private Attributes | |
| bool | abort_ = false |
| bool | aborted_ = false |
| Runner * | runner_ = nullptr |
Definition at line 34 of file VaultFixedPrecision_test.cpp.
|
protectedinherited |
Definition at line 40 of file VaultTestBase.h.
|
protectedinherited |
Definition at line 41 of file VaultTestBase.h.
|
protectedinherited |
Definition at line 75 of file VaultTestBase.h.
|
protectedinherited |
Definition at line 76 of file VaultTestBase.h.
|
private |
Definition at line 37 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 182 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 210 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 255 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 322 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 352 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 394 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 430 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 464 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 497 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 530 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 577 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 652 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 709 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 772 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 819 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 862 of file VaultFixedPrecision_test.cpp.
|
private |
Definition at line 948 of file VaultFixedPrecision_test.cpp.
|
overridevirtual |
Runs the suite.
Implements beast::unit_test::Suite.
Definition at line 999 of file VaultFixedPrecision_test.cpp.
|
staticprotectedinherited |
Definition at line 41 of file VaultFixedPrecisionBase.h.
|
staticprotectedinherited |
Definition at line 49 of file VaultFixedPrecisionBase.h.
|
staticprotectedinherited |
Definition at line 88 of file VaultFixedPrecisionBase.h.
|
staticprotectedinherited |
Definition at line 121 of file VaultFixedPrecisionBase.h.
|
staticprotectedinherited |
Definition at line 137 of file VaultFixedPrecisionBase.h.
|
protectedinherited |
Definition at line 175 of file VaultFixedPrecisionBase.h.
|
staticprotectedinherited |
Definition at line 191 of file VaultFixedPrecisionBase.h.
|
staticprotectedinherited |
Definition at line 200 of file VaultFixedPrecisionBase.h.
|
protectedinherited |
Definition at line 209 of file VaultFixedPrecisionBase.h.
|
protectedinherited |
Definition at line 220 of file VaultFixedPrecisionBase.h.
|
protectedinherited |
Definition at line 246 of file VaultFixedPrecisionBase.h.
|
protectedinherited |
Definition at line 264 of file VaultFixedPrecisionBase.h.
|
staticprotectedinherited |
Get the current ledger's close time resolution.
| env | The test environment. |
Definition at line 52 of file VaultTestBase.h.
|
protectedinherited |
Definition at line 58 of file VaultTestBase.h.
|
staticprotectedinherited |
Definition at line 95 of file VaultTestBase.h.
|
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 |
|
staticconstexprprotectedinherited |
Definition at line 43 of file VaultTestBase.h.
|
protectedinherited |
Definition at line 117 of file VaultTestBase.h.
|
protectedinherited |
Definition at line 118 of file VaultTestBase.h.
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
inherited |