|
xrpld
|


Classes | |
| struct | ClosedEndedSetup |
| struct | StuckDepositorFixture |
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 Member Functions | |
| Runner & | runner () const |
| Lets a suite compose other suites (e.g. | |
Private Types | |
| using | PrettyAsset = xrpl::test::jtx::PrettyAsset |
| using | PrettyAmount = xrpl::test::jtx::PrettyAmount |
| using | d = NetClock::duration |
| using | tp = NetClock::time_point |
Static Private Member Functions | |
| 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) |
| static Suite ** | pThisSuite () |
Private Attributes | |
| FeatureBitset const | all_ {test::jtx::testableAmendments()} |
| std::string const | iouCurrency_ {"IOU"} |
| bool | abort_ = false |
| bool | aborted_ = false |
| Runner * | runner_ = nullptr |
Static Private Attributes | |
| static constexpr auto | kNegativeAmount |
| static constexpr std::int64_t | kStuckFunding = 1'000'000 |
| static constexpr std::int64_t | kStuckDepositorIOU = 1'000'000 |
| static constexpr std::int64_t | kStuckBorrowerIOU = 100'000 |
| static constexpr std::int64_t | kStuckDeposit = 5'000 |
| static constexpr std::int64_t | kStuckPrincipal = 3'333 |
| static constexpr std::uint32_t | kStuckPayInterval = 600 |
| static constexpr std::uint32_t | kStuckPayTotal = 2 |
Definition at line 81 of file Vault_test.cpp.
|
private |
Definition at line 83 of file Vault_test.cpp.
|
private |
Definition at line 84 of file Vault_test.cpp.
|
private |
Definition at line 118 of file Vault_test.cpp.
|
private |
Definition at line 119 of file Vault_test.cpp.
|
staticprivate |
Get the current ledger's close time resolution.
| env | The test environment. |
Definition at line 95 of file Vault_test.cpp.
|
private |
Definition at line 101 of file Vault_test.cpp.
|
staticprivate |
Definition at line 138 of file Vault_test.cpp.
|
private |
Definition at line 160 of file Vault_test.cpp.
|
private |
Definition at line 669 of file Vault_test.cpp.
|
private |
Definition at line 1187 of file Vault_test.cpp.
|
private |
Definition at line 1449 of file Vault_test.cpp.
|
private |
Definition at line 1529 of file Vault_test.cpp.
|
private |
Definition at line 1567 of file Vault_test.cpp.
|
private |
Definition at line 1609 of file Vault_test.cpp.
|
private |
Definition at line 1687 of file Vault_test.cpp.
|
private |
Definition at line 1851 of file Vault_test.cpp.
|
private |
Definition at line 1911 of file Vault_test.cpp.
|
private |
Definition at line 1976 of file Vault_test.cpp.
|
private |
Definition at line 2074 of file Vault_test.cpp.
|
private |
Definition at line 2129 of file Vault_test.cpp.
|
private |
Definition at line 2300 of file Vault_test.cpp.
|
private |
Definition at line 2425 of file Vault_test.cpp.
|
private |
Definition at line 2492 of file Vault_test.cpp.
|
private |
Definition at line 2588 of file Vault_test.cpp.
|
private |
Definition at line 3319 of file Vault_test.cpp.
|
private |
Definition at line 3790 of file Vault_test.cpp.
|
private |
Definition at line 4038 of file Vault_test.cpp.
|
private |
Definition at line 4148 of file Vault_test.cpp.
|
private |
Definition at line 4224 of file Vault_test.cpp.
|
private |
Definition at line 4322 of file Vault_test.cpp.
|
private |
Definition at line 4349 of file Vault_test.cpp.
|
private |
Definition at line 5199 of file Vault_test.cpp.
|
private |
Definition at line 5614 of file Vault_test.cpp.
|
private |
Definition at line 5696 of file Vault_test.cpp.
|
private |
Definition at line 5957 of file Vault_test.cpp.
|
private |
Definition at line 6526 of file Vault_test.cpp.
|
private |
Definition at line 6841 of file Vault_test.cpp.
|
private |
Definition at line 7077 of file Vault_test.cpp.
|
private |
Definition at line 7171 of file Vault_test.cpp.
|
private |
Definition at line 7269 of file Vault_test.cpp.
|
nodiscardprivate |
Definition at line 7346 of file Vault_test.cpp.
|
private |
Definition at line 7474 of file Vault_test.cpp.
|
private |
Definition at line 7593 of file Vault_test.cpp.
|
private |
Definition at line 7650 of file Vault_test.cpp.
|
private |
Definition at line 7748 of file Vault_test.cpp.
|
private |
Definition at line 7831 of file Vault_test.cpp.
|
private |
Definition at line 7925 of file Vault_test.cpp.
|
private |
Definition at line 8002 of file Vault_test.cpp.
|
private |
Definition at line 8077 of file Vault_test.cpp.
|
private |
Definition at line 8185 of file Vault_test.cpp.
|
private |
Definition at line 8270 of file Vault_test.cpp.
|
private |
Definition at line 8345 of file Vault_test.cpp.
|
private |
Definition at line 8401 of file Vault_test.cpp.
|
private |
Definition at line 8550 of file Vault_test.cpp.
|
private |
Definition at line 8811 of file Vault_test.cpp.
|
private |
Definition at line 8880 of file Vault_test.cpp.
|
private |
Definition at line 8948 of file Vault_test.cpp.
|
private |
Definition at line 9025 of file Vault_test.cpp.
|
private |
Definition at line 9159 of file Vault_test.cpp.
|
private |
Definition at line 9258 of file Vault_test.cpp.
|
private |
Definition at line 9322 of file Vault_test.cpp.
|
private |
Definition at line 9514 of file Vault_test.cpp.
|
overridevirtual |
|
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 |
|
staticconstexprprivate |
Definition at line 86 of file Vault_test.cpp.
|
private |
Definition at line 7315 of file Vault_test.cpp.
|
private |
Definition at line 7316 of file Vault_test.cpp.
|
staticconstexprprivate |
Definition at line 7337 of file Vault_test.cpp.
|
staticconstexprprivate |
Definition at line 7338 of file Vault_test.cpp.
|
staticconstexprprivate |
Definition at line 7339 of file Vault_test.cpp.
|
staticconstexprprivate |
Definition at line 7340 of file Vault_test.cpp.
|
staticconstexprprivate |
Definition at line 7341 of file Vault_test.cpp.
|
staticconstexprprivate |
Definition at line 7342 of file Vault_test.cpp.
|
staticconstexprprivate |
Definition at line 7343 of file Vault_test.cpp.
|
privateinherited |
|
privateinherited |
|
privateinherited |
|
inherited |