|
| 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) |
| |
|
| XRPAmount | reserve (jtx::Env &env, std::uint32_t count) const |
| |
| XRPAmount | ammCrtFee (jtx::Env &env) const |
| |
| jtx::Env | pathTestEnv () |
| |
| Json::Value | find_paths_request (jtx::Env &env, jtx::Account const &src, jtx::Account const &dst, STAmount const &saDstAmount, std::optional< STAmount > const &saSendMax=std::nullopt, std::optional< Currency > const &saSrcCurrency=std::nullopt) |
| |
| std::tuple< STPathSet, STAmount, STAmount > | find_paths (jtx::Env &env, jtx::Account const &src, jtx::Account const &dst, STAmount const &saDstAmount, std::optional< STAmount > const &saSendMax=std::nullopt, std::optional< Currency > const &saSrcCurrency=std::nullopt) |
| |
| void | testAMM (std::function< void(jtx::AMM &, jtx::Env &)> &&cb, std::optional< std::pair< STAmount, STAmount > > const &pool=std::nullopt, std::uint16_t tfee=0, std::optional< jtx::ter > const &ter=std::nullopt, std::vector< FeatureBitset > const &features={testable_amendments()}) |
| | testAMM() funds 30,000XRP and 30,000IOU for each non-XRP asset to Alice and Carol
|
| |
| void | testAMM (std::function< void(jtx::AMM &, jtx::Env &)> &&cb, TestAMMArg const &arg) |
| |
Definition at line 87 of file AMMTest.h.
template<class Condition >
| bool beast::unit_test::suite::expect |
( |
Condition const & |
shouldBeTrue | ) |
|
|
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.
- Parameters
-
| 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. |
- Returns
true if the test condition indicates success.
Definition at line 226 of file suite.h.
| virtual void beast::unit_test::suite::run |
( |
| ) |
|
|
privatepure virtualinherited |
Runs the suite.
Implemented in xrpl::test::AccountDelete_test, xrpl::AccountTxPaging_test, xrpl::AmendmentTable_test, xrpl::test::AMM_test, xrpl::test::AMMCalc_test, xrpl::test::AMMClawback_test, xrpl::test::AMMExtended_test, xrpl::test::Batch_test, xrpl::Check_test, xrpl::Clawback_test, xrpl::test::Credentials_test, xrpl::test::CrossingLimits_test, xrpl::test::Delegate_test, xrpl::test::DeliverMin_test, xrpl::test::DepositAuth_test, xrpl::test::DepositPreauth_test, xrpl::test::DID_test, xrpl::Discrepancy_test, xrpl::test::DNS_test, xrpl::test::Escrow_test, xrpl::test::EscrowToken_test, xrpl::test::FeeVote_test, xrpl::FixNFTokenPageLinks_test, xrpl::test::Flow_test, xrpl::test::Flow_manual_test, xrpl::Freeze_test, xrpl::test::HashRouter_test, xrpl::test::Invariants_test, xrpl::test::LedgerHistory_test, xrpl::LedgerLoad_test, xrpl::test::LedgerMaster_test, xrpl::test::LedgerReplay_test, xrpl::test::LedgerReplayer_test, xrpl::test::LedgerReplayerTimeout_test, xrpl::test::LedgerReplayerLong_test, xrpl::LoadFeeTrack_test, xrpl::test::Loan_test, xrpl::test::LoanBatch_test, xrpl::test::LoanArbitrary_test, xrpl::test::LoanBroker_test, xrpl::test::LPTokenTransfer_test, xrpl::test::Manifest_test, xrpl::test::MPToken_test, xrpl::test::MultiSign_test, xrpl::test::NetworkID_test, xrpl::test::NetworkOPs_test, xrpl::NFTokenBaseUtil_test, xrpl::NFTokenDisallowIncoming_test, xrpl::NFTokenWOMintOffer_test, xrpl::NFTokenWOModify_test, xrpl::NFTokenAllFeatures_test, xrpl::NFTokenAuth_test, xrpl::NFTokenBurn_test, xrpl::NFTokenDir_test, xrpl::test::OfferBaseUtil_test, xrpl::test::OfferWOSmallQOffers_test, xrpl::test::OfferAllFeatures_test, xrpl::test::Offer_manual_test, xrpl::OfferStream_test, xrpl::test::jtx::oracle::Oracle_test, xrpl::test::PlumpBook_test, xrpl::test::ThinBook_test, xrpl::test::OversizeMeta_test, xrpl::test::FindOversizeCross_test, xrpl::test::Path_test, xrpl::test::PayChan_test, xrpl::test::PayStrand_test, xrpl::test::PermissionedDEX_test, xrpl::test::PermissionedDomains_test, xrpl::test::PseudoTx_test, xrpl::test::RCLValidations_test, xrpl::test::ReducedOffer_test, xrpl::test::Regression_test, xrpl::test::SetAuth_test, xrpl::SetRegularKey_test, xrpl::test::SetTrust_test, xrpl::test::SHAMapStore_test, xrpl::test::TheoreticalQuality_test, xrpl::Ticket_test, xrpl::test::Transaction_ordering_test, xrpl::TrustAndBalance_test, xrpl::Apply_test, xrpl::test::TxQPosNegFlows_test, xrpl::test::TxQMetaInfo_test, xrpl::test::ValidatorKeys_test, xrpl::test::ValidatorList_test, xrpl::test::ValidatorSite_test, xrpl::Vault_test, xrpl::test::XChain_test, xrpl::test::XChainSim_test, xrpl::test::base_uint_test, xrpl::test::Buffer_test, xrpl::test::DetectCrash_test, xrpl::test::Expected_test, xrpl::FileUtilities_test, xrpl::hardened_hash_test, xrpl::tests::IntrusiveShared_test, xrpl::IOUAmount_test, xrpl::test::join_test, xrpl::KeyCache_test, xrpl::Number_test, xrpl::PerfLog_test, xrpl::StringUtilities_test, xrpl::TaggedCache_test, xrpl::test::units_test, xrpl::XRPAmount_test, beast::aged_set_test, beast::aged_map_test, beast::aged_multiset_test, beast::aged_multimap_test, beast::aged_unordered_set_test, beast::aged_unordered_map_test, beast::aged_unordered_multiset_test, beast::aged_unordered_multimap_test, beast::abstract_clock_test, beast::basic_seconds_clock_test, xrpl::test::CurrentThreadName_test, io_latency_probe_test, beast::Journal_test, beast::PropertyStream_test, beast::Zero_test, beast::unit_test::print_test, beast::IP::IPEndpoint_test, beast::LexicalCast_test, beast::SemanticVersion_test, beast::XXHasher_test, xrpl::cryptoconditions::PreimageSha256_test, xrpl::test::ByzantineFailureSim_test, xrpl::test::Consensus_test, xrpl::test::DistributedValidators_test, xrpl::test::LedgerTiming_test, xrpl::test::LedgerTrie_test, xrpl::test::NegativeUNL_test, xrpl::test::NegativeUNLVoteInternal_test, xrpl::test::NegativeUNLVoteScoreTable_test, xrpl::test::NegativeUNLVoteGoodScore_test, xrpl::test::NegativeUNLVoteOffline_test, xrpl::test::NegativeUNLVoteMaxListed_test, xrpl::test::NegativeUNLVoteRetiredValidator_test, xrpl::test::NegativeUNLVoteNewValidator_test, xrpl::test::NegativeUNLVoteFilterValidations_test, xrpl::test::RCLCensorshipDetector_test, xrpl::test::ScaleFreeSim_test, xrpl::test::csf::Validations_test, xrpl::test::ClosureCounter_test, xrpl::Config_test, xrpl::test::Coroutine_test, xrpl::test::JobQueue_test, xrpl::SociDB_test, xrpl::Workers_test, xrpl::test::BasicNetwork_test, xrpl::test::Digraph_test, xrpl::test::Histogram_test, xrpl::test::Scheduler_test, xrpl::test::Env_test, xrpl::test::WSClient_test, xrpl::test::BookDirs_test, xrpl::test::Directory_test, xrpl::test::PaymentSandbox_test, xrpl::test::PendingSaves_test, xrpl::test::SkipList_test, xrpl::test::View_test, xrpl::test::GetAmendments_test, xrpl::NodeStore::Backend_test, xrpl::NodeStore::NodeStoreBasic_test, xrpl::NodeStore::Database_test, xrpl::NodeStore::NuDBFactory_test, xrpl::NodeStore::Timing_test, xrpl::NodeStore::tests::varint_test, xrpl::tests::cluster_test, xrpl::test::compression_test, xrpl::test::handshake_test, xrpl::ProtocolVersion_test, xrpl::test::reduce_relay_test, xrpl::test::reduce_relay_simulate_test, xrpl::short_read_test, xrpl::test::traffic_count_test, xrpl::test::tx_reduce_relay_test, xrpl::PeerFinder::Livecache_test, xrpl::PeerFinder::PeerFinder_test, xrpl::test::ApiVersion_test, xrpl::BuildInfo_test, xrpl::Hooks_test, xrpl::InnerObjectFormatsParsedJSON_test, xrpl::Issue_test, xrpl::Memo_test, xrpl::test::MultiApiJson_test, xrpl::PublicKey_test, xrpl::Quality_test, xrpl::SecretKey_test, xrpl::Seed_test, xrpl::SeqProxy_test, xrpl::Serializer_test, xrpl::STAccount_test, xrpl::STAmount_test, xrpl::STInteger_test, xrpl::test::STIssue_test, xrpl::STNumber_test, xrpl::STObject_test, xrpl::STParsedJSON_test, xrpl::STTx_test, xrpl::InnerObjectFormatsSerializer_test, xrpl::STValidation_test, xrpl::TER_test, xrpl::Resource::ResourceManager_test, xrpl::AccountCurrencies_test, xrpl::test::AccountInfo_test, xrpl::RPC::AccountLines_test, xrpl::test::AccountObjects_test, xrpl::test::AccountOffers_test, xrpl::AccountSet_test, xrpl::test::AccountTx_test, xrpl::AmendmentBlocked_test, xrpl::test::AMMInfo_test, xrpl::test::Book_test, xrpl::test::BookChanges_test, xrpl::Connect_test, xrpl::test::DeliveredAmount_test, xrpl::test::DepositAuthorized_test, xrpl::Feature_test, xrpl::test::GatewayBalances_test, xrpl::test::jtx::oracle::GetAggregatePrice_test, xrpl::GetCounts_test, xrpl::test::Handler_test, xrpl::RPC::JSONRPC_test, xrpl::RPC::WalletPropose_test, xrpl::LedgerClosed_test, xrpl::LedgerData_test, xrpl::test::LedgerEntry_test, xrpl::test::LedgerEntry_XChain_test, xrpl::LedgerHeader_test, xrpl::RPC::LedgerRequest_test, xrpl::test::LedgerRPC_test, xrpl::test::ManifestRPC_test, xrpl::test::NoRipple_test, xrpl::NoRippleCheck_test, xrpl::NoRippleCheckLimits_test, xrpl::OwnerInfo_test, xrpl::Peers_test, xrpl::test::RobustTransaction_test, xrpl::test::Roles_test, xrpl::test::RPCCall_test, xrpl::test::RPCHelpers_test, xrpl::test::RPCOverload_test, xrpl::test::ServerDefinitions_test, xrpl::test::ServerInfo_test, xrpl::test::Simulate_test, xrpl::RPC::codeString_test, xrpl::RPC::fillJson_test, xrpl::test::Subscribe_test, xrpl::Transaction_test, xrpl::TransactionEntry_test, xrpl::TransactionHistory_test, xrpl::test::ValidatorInfo_test, xrpl::test::ValidatorRPC_test, xrpl::Version_test, xrpl::test::Server_test, xrpl::test::ServerStatus_test, xrpl::tests::FetchPack_test, xrpl::tests::SHAMap_test, xrpl::tests::SHAMapPathProof_test, and xrpl::tests::SHAMapSync_test.