|
xrpld
|
Namespaces | |
| namespace | csf |
| namespace | detail |
| namespace | jtx |
| namespace | validator_data |
Classes | |
| class | AbstractClient |
| class | Account |
| A test account with cryptographic keys. More... | |
| class | AccountDelete_test |
| class | AccountInfo_test |
| class | AccountObjects_test |
| class | AccountOffers_test |
| class | AccountTx_test |
| struct | AMM_test |
| Basic tests of AMM that do not use offers. More... | |
| class | AMMCalc_test |
| AMM Calculator. More... | |
| class | AMMClawback_test |
| class | AMMClawbackMPT_test |
| class | AMMExtended_test |
| Tests of AMM that use offers too. More... | |
| struct | AMMExtendedMPT_test |
| Tests of AMM MPT that use offers. More... | |
| class | AMMInfo_test |
| struct | AMMMPT_test |
| Basic tests of AMM functionality involving MPT assets, excluding those that use offers. More... | |
| class | ApplyContextTests |
| A funded alice over an open ledger, plus a signed transaction to build an ApplyContext around. More... | |
| struct | BaseUintTest |
| class | Batch_test |
| class | Book_test |
| class | BookChanges_test |
| struct | BufferTest |
| class | CaptureLogs |
| Log manager for CaptureSinks. More... | |
| class | CapturePeer |
| A real PeerImp that captures the messages it would have sent. More... | |
| class | CaptureSink |
| class | ChargeRecordingPeer |
| A peer that records what it was charged. More... | |
| class | CheckDeliveredAmount |
| class | CheckMessageLogs |
| Log manager that searches for a specific message substring. More... | |
| class | ClosureCounter_test |
| class | compression_test |
| class | Coroutine_test |
| struct | Credentials_test |
| class | CrossingLimits_test |
| class | CrossingLimitsMPT_test |
| class | CurrentThreadName_test |
| struct | DeepChain |
| A chain of inner nodes in wire form, from the root down to one deepest node, each with one real child and, under withDecoys(), an unresolvable second one. More... | |
| class | Delegate_test |
| class | DeliveredAmount_test |
| class | DeliverMin_test |
| struct | DepositAuth_test |
| class | DepositAuthorized_test |
| struct | DepositPreauth_test |
| struct | DetectCrash_test |
| struct | DID_test |
| struct | Directory_test |
| class | DNS_test |
| class | ElementComboIter |
| class | EntryTestEnv |
| Scaffolding shared by the per-entry-type suites. More... | |
| class | Env_test |
| struct | Escrow_test |
| struct | EscrowSmart_test |
| Smart Escrow's Bytecode, Data and Gas fields. More... | |
| struct | EscrowToken_test |
| struct | ExistingElementPool |
| struct | ExtensionFees |
| struct | FeeLevel64Test |
| struct | FeeLevelDoubleTest |
| struct | FeeSettingsFields |
| class | FeeVote_test |
| class | FindOversizeCross_test |
| struct | Flow_manual_test |
| struct | Flow_test |
| struct | FlowMPT_test |
| class | GatewayBalances_test |
| class | GetAmendments_test |
| class | GRPCServerTLS_test |
| class | Handler_test |
| class | HandlerLookup_test |
| class | handshake_test |
| class | HashRouter_test |
| struct | InboundLedger_test |
| class | InvariantsAMM_test |
| class | InvariantsBase |
| class | InvariantsEscrowNFT_test |
| class | InvariantsMisc_test |
| class | InvariantsMPT_test |
| class | InvariantsPermissioned_test |
| class | InvariantsPseudoAccount_test |
| class | InvariantsTransactionProposal_test |
| class | InvariantsTrustLine_test |
| class | InvariantsVault_test |
| class | IOU |
| Represents an IOU (issued currency) for testing. More... | |
| class | JobQueue_test |
| struct | JoinTest |
| class | JSONRPCClient |
| class | LedgerEntry_test |
| class | LedgerHistory_test |
| class | LedgerMaster_test |
| struct | LedgerReplay_test |
| class | LedgerReplayClient |
| Ledger replay client side. More... | |
| struct | LedgerReplayer_test |
| Test cases: LedgerReplayer_test: – process TMProofPathRequest and TMProofPathResponse – process TMReplayDeltaRequest and TMReplayDeltaResponse – update and merge LedgerReplayTask::TaskParameter – process [ledger_replay] section in config – peer handshake – replay a range of ledgers that the local node already has – replay a range of ledgers and fallback to InboundLedgers because peers do not support ProtocolFeature::LedgerReplay – replay a range of ledgers and the network drops or repeats messages – call stop() and the tasks and subtasks are removed – process a bad skip list – process a bad ledger delta – replay ledger ranges with different overlaps. More... | |
| struct | LedgerReplayerLong_test |
| struct | LedgerReplayerTimeout_test |
| class | LedgerRPC_test |
| struct | LedgerServer |
| Utility class for (1) creating ledgers with txns and (2) providing the ledgers via the ledgerMaster. More... | |
| class | LedgerTrieTest |
| Fixture that scopes the csf names these tests use. More... | |
| class | LendingBatch_test |
| class | LendingHelpers_test |
| class | Link |
| Simulate link from a validator to a peer directly connected to the server. More... | |
| class | LoanArbitrary_test |
| class | LoanBatch_test |
| class | LoanBroker_test |
| class | LoanCashBasis_test |
| class | LoanCoverFreezeAuth_test |
| class | LoanInvariants_test |
| class | LoanLifecycle_test |
| class | LoanMisc_test |
| class | LoanPay_test |
| class | LoanPermissionedDomain_test |
| class | LoanRounding_test |
| class | LoanSecurity_test |
| class | LoanSet_test |
| class | LoanTestBase |
| Shared base for the Loan*_test family under src/test/app/lending/. More... | |
| class | LoanValidation_test |
| class | LPTokenTransfer_test |
| class | MagicInboundLedgers |
| Simulate a network InboundLedgers. More... | |
| class | Manifest_test |
| class | ManifestRPC_test |
| class | ManualClock |
| Manually advanced clock. More... | |
| class | ManualTimeKeeper |
| class | MPToken_test |
| struct | MultiApiJson_test |
| class | MultiRunnerChild |
| A class to run a subset of unit tests. More... | |
| class | MultiRunnerParent |
| Manager for children running unit tests. More... | |
| class | MultiSign_test |
| class | NegativeUNL_test |
| class | NegativeUNLVoteFilterValidations_test |
| class | NegativeUNLVoteGoodScore_test |
| class | NegativeUNLVoteInternal_test |
| Test the private member functions of NegativeUNLVote. More... | |
| class | NegativeUNLVoteMaxListed_test |
| class | NegativeUNLVoteNewValidator_test |
| class | NegativeUNLVoteOffline_test |
| class | NegativeUNLVoteRetiredValidator_test |
| class | NegativeUNLVoteScoreTable_test |
| Rest the build score table function of NegativeUNLVote. More... | |
| class | Network |
| struct | NetworkHistory |
| Utility class for creating validators and ledger history. More... | |
| class | NetworkID_test |
| struct | NetworkOfTwo |
| class | NetworkOPs_test |
| struct | Nonhash |
| class | NoRipple_test |
| class | OfferBaseUtil_test |
| class | OfferMPT_test |
| class | Overlay |
| Simulate server's OverlayImpl. More... | |
| class | OverlayLimit_test |
| Tests for Overlay::limit(), the configured peer allowance reported once OverlayImpl::start() applies the computed peer_finder::Config. More... | |
| class | OverlaySim |
| class | OversizeMeta_test |
| class | Path_test |
| class | PathMPT_test |
| class | PathSet |
| struct | PayChan_test |
| class | PaymentSandbox_test |
| struct | PayStrand_test |
| struct | PayStrandMPT_test |
| class | PeerPartial |
| Simulate two entities - peer directly connected to the server (via squelch in PeerSim) and PeerImp (via Overlay). More... | |
| class | PeerSim |
| class | PeerStub |
| A Peer whose every method is a no-op returning a default. More... | |
| struct | PendingSaves_test |
| class | PermissionedDEX_test |
| class | PermissionedDomains_test |
| class | PlumpBook_test |
| class | ProtocolMessage_test |
| struct | PseudoTx_test |
| class | RandomAccountParams |
| class | RCLValidations_test |
| class | reduce_relay_simulate_test |
| class | reduce_relay_test |
| class | ReducedOffer_test |
| struct | Regression_test |
| class | RequestCountingPeerSet |
| A peer set that counts the requests an acquisition makes through it. More... | |
| struct | RippleCalcTestParams |
| class | RobustTransaction_test |
| class | Roles_test |
| class | RPCCall_test |
| struct | RPCCallTestData |
| class | RPCHelpers_test |
| class | RPCOverload_test |
| class | Server_test |
| class | ServerDefinitions_test |
| class | ServerInfo_test |
| class | ServerStatus_test |
| struct | SetAuth_test |
| class | SHAMapStore_test |
| class | Simulate_test |
| class | SkipList_test |
| class | SLEBaseTests |
| Scaffolding shared by the test cases below: a funded alice, an unfunded bob (for the entries that need to resolve to nothing), and the TxTest ledger they live in. More... | |
| class | Sponsor_test |
| class | SponsorTxCosigning_test |
| class | SponsorTxPrefunded_test |
| class | STIssue_test |
| class | StreamSink |
| class | Submit_test |
| class | Subscribe_test |
| class | SuiteJournal |
| class | SuiteJournalSink |
| struct | TestableInboundLedger |
| An acquisition that exposes the entry points its bases keep protected, so a case can reach them through this subclass alone. More... | |
| struct | TestableTransactionAcquire |
| An acquisition that exposes state its bases keep protected. More... | |
| class | TestLogs |
| Logs implementation that creates TestSink instances. More... | |
| class | TestNetworkIDService |
| Simple NetworkIDService implementation for tests. More... | |
| class | TestPath |
| class | TestPeer |
| Simulate a network peer. More... | |
| struct | TestPeerSet |
| Simulate a peerSet that supplies peers to ledger replay subtasks. More... | |
| class | TestPeerSetBuilder |
| Build the TestPeerSet. More... | |
| class | TestServiceRegistry |
| Test implementation of ServiceRegistry for unit tests. More... | |
| class | TheoreticalQuality_test |
| class | ThinBook_test |
| class | TMGetLedger_test |
| class | TMGetObjectByHash_test |
| Coverage for the TMGetObjectByHash object-count bound. More... | |
| class | TMTransaction_test |
| class | TMTransactions_test |
| class | traffic_attribution_test |
| Covers the traffic attribution in PeerImp::onMessageBegin. More... | |
| class | traffic_count_test |
| struct | Transaction_ordering_test |
| struct | TransactionAcquire_test |
| struct | TransactionProposalCancel_test |
| struct | TransactionProposalCreate_test |
| struct | TransactionProposalReservedTicket_test |
| class | TrustedPublisherServer |
| class | TrustSet_test |
| class | tx_reduce_relay_test |
| class | TxQMetaInfo_test |
| class | TxQPosNegFlows_test |
| struct | TxResult |
| Result of a transaction submission in TxTest. More... | |
| class | TxTest |
| A lightweight transaction testing harness. More... | |
| class | Validator |
| Simulate Validator. More... | |
| class | ValidatorInfo_test |
| class | ValidatorKeys_test |
| class | ValidatorList_test |
| class | ValidatorRPC_test |
| class | ValidatorSite_test |
| class | VaultInvariantPrecision_test |
| class | VaultPrecisionFixture |
| class | VaultTransactorPrecision_test |
| class | View_test |
| class | WSClient |
| class | WSClient_test |
| class | WSClientImpl |
Typedefs | |
| using | MessageSPtr = std::shared_ptr<Message> |
| using | LinkSPtr = std::shared_ptr<Link> |
| using | PeerSPtr = std::shared_ptr<Peer> |
| using | PeerWPtr = std::weak_ptr<Peer> |
| using | SquelchCB = std::function<void(PublicKey const&, PeerWPtr const&, std::uint32_t)> |
| using | UnsquelchCB = std::function<void(PublicKey const&, PeerWPtr const&)> |
| using | LinkIterCB = std::function<void(Link&, MessageSPtr)> |
| using | SocketType = boost::beast::tcp_stream |
| using | StreamType = boost::beast::ssl_stream<SocketType> |
| using | BaseUintDeathTest = BaseUintTest |
Enumerations | |
| enum class | InboundLedgersBehavior { Good , DropAll } |
| enum class | PeerFeature { LedgerReplayEnabled , None } |
| enum class | PeerSetBehavior { Good , DropAlternate , DropAll , DropSkipListReply , DropLedgerDeltaReply , Repeat } |
| enum class | TaskStatus { Failed , Completed , NotDone , NotExist } |
| enum class | TrustFlag { Freeze , Auth , Noripple } |
| enum class | FieldType { AccountField , BlobField , ArrayField , CurrencyField , HashField , HashOrObjectField , FixedHashField , AssetField , ObjectField , StringField , TwoAccountArrayField , UInt32Field , UInt64Field } |
| enum class | Severity |
| Severity level / threshold of a Journal message. More... | |
Functions | |
| template<class TIn, class TOut, class TDerived> | |
| static bool | equalHelper (Step const &step, xrpl::Book const &book) |
| bool | bookStepEqual (Step const &step, xrpl::Book const &book) |
| bool | directStepEqual (Step const &step, AccountID const &src, AccountID const &dst, Currency const ¤cy) |
| bool | mptEndpointStepEqual (Step const &step, AccountID const &src, AccountID const &dst, MPTID const &mptid) |
| bool | xrpEndpointStepEqual (Step const &step, AccountID const &acc) |
| BEAST_DEFINE_TESTSUITE_PRIO (AccountDelete, app, xrpl, 2) | |
| std::shared_ptr< protocol::TMLedgerData > | packetFor (DeepChain const &chain, std::vector< std::pair< SHAMapNodeID, SHAMapTreeNodePtr > > const &data, protocol::TMLedgerInfoType type=protocol::liTS_CANDIDATE, std::optional< UInt256 > const &ledgerHash=std::nullopt, std::uint32_t ledgerSeq=0) |
| The given nodes of a chain as a TMLedgerData, so a test can go through the real dispatch. | |
| bool | waitFor (std::function< bool()> const &condition, std::chrono::steady_clock::duration deadline=std::chrono::seconds{10}) |
| Poll until the condition holds, or give up. | |
| bool | tallyIs (SHAMapAddNode const &san, int good, int bad, int duplicate) |
| Whether a batch verdict carries exactly the given counts. | |
| BEAST_DEFINE_TESTSUITE_PRIO (AMM, app, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE_MANUAL (AMMCalc, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (AMMClawback, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (AMMClawbackMPT, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (AMMExtended, app, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE_PRIO (AMMExtendedMPT, app, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE_PRIO (AMMMPT, app, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (Batch, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Credentials, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_MANUAL_PRIO (CrossingLimits, app, xrpl, 10) | |
| BEAST_DEFINE_TESTSUITE_MANUAL_PRIO (CrossingLimitsMPT, tx, xrpl, 10) | |
| BEAST_DEFINE_TESTSUITE (Delegate, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (DeliverMin, app, xrpl) | |
| static XRPAmount | reserve (jtx::Env const &env, std::uint32_t count) |
| static bool | hasDepositAuth (jtx::Env const &env, jtx::Account const &acct) |
| static json::Value | ledgerEntryDepositPreauth (jtx::Env &env, jtx::Account const &acc, std::vector< jtx::deposit::AuthorizeCredentials > const &auth) |
| BEAST_DEFINE_TESTSUITE (DepositAuth, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (DepositPreauth, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (DID, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_MANUAL_PRIO (DNS, app, xrpl, 20) | |
| BEAST_DEFINE_TESTSUITE (Escrow, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (EscrowSmart, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (EscrowToken, app, xrpl) | |
| STTx | createFeeTx (Rules const &rules, std::uint32_t seq, FeeSettingsFields const &fields, bool forceAllFields=false) |
| STTx | createFeeTxMissingRequiredFields (std::uint32_t seq) |
| STTx | createFeeTxWithLegacyFields (std::uint32_t seq) |
| TER | applyFeeAndTestResult (jtx::Env &env, OpenView &view, STTx const &tx) |
| bool | verifyFeeObject (std::shared_ptr< Ledger const > const &ledger, Rules const &rules, FeeSettingsFields const &expected) |
| std::vector< STTx > | getTxs (std::shared_ptr< SHAMap > const &txSet) |
| BEAST_DEFINE_TESTSUITE (FeeVote, app, xrpl) | |
| bool | getNoRippleFlag (jtx::Env const &env, jtx::Account const &src, jtx::Account const &dst, Currency const &cur) |
| BEAST_DEFINE_TESTSUITE_PRIO (Flow, app, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE_MANUAL_PRIO (Flow_manual, app, xrpl, 4) | |
| BEAST_DEFINE_TESTSUITE_PRIO (FlowMPT, app, xrpl, 2) | |
| bool | makeTestGRPCCall (std::unique_ptr< org::xrpl::rpc::v1::XRPLedgerAPIService::Stub > const &stub) |
| Helper function to make a simple gRPC call to test connectivity. | |
| BEAST_DEFINE_TESTSUITE (GRPCServerTLS, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (HashRouter, app, xrpl) | |
| static std::shared_ptr< Ledger > | mutableLedger (InboundLedger const &acquire) |
| The ledger an acquisition is assembling, as a pointer that can modify it. | |
| BEAST_DEFINE_TESTSUITE (InboundLedger, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (InvariantsAMM, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (InvariantsEscrowNFT, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (InvariantsMisc, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (InvariantsMPT, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (InvariantsPermissioned, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (InvariantsPseudoAccount, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (InvariantsTransactionProposal, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (InvariantsTrustLine, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (InvariantsVault, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LedgerHistory, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LedgerMaster, app, xrpl) | |
| void | logAll (LedgerServer &server, LedgerReplayClient &client, beast::Severity level=Severity::Trace) |
| BEAST_DEFINE_TESTSUITE (LedgerReplay, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (LedgerReplayer, app, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (LedgerReplayerTimeout, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_MANUAL (LedgerReplayerLong, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LendingBatch, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LendingHelpers, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoanBroker, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoanCashBasis, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoanCoverFreezeAuth, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoanInvariants, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoanLifecycle, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoanMisc, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE_MANUAL (LoanBatch, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE_MANUAL (LoanArbitrary, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoanPay, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoanPermissionedDomain, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoanRounding, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoanSecurity, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LoanSet, tx, xrpl) | |
| void | checkFixedPrecisionVaultAssetsDeployed (beast::unit_test::Suite &suite, jtx::Env &env, Keylet const &vaultKeylet, std::vector< Keylet > const &brokerKeylets, std::vector< Keylet > const &loanKeylets, std::string const &label={}) |
| BEAST_DEFINE_TESTSUITE (LoanValidation, tx, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LPTokenTransfer, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Manifest, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (MPToken, app, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE (MultiSign, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (NetworkID, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (NetworkOPs, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (OfferBaseUtil, app, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE_PRIO (OfferMPT, tx, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE_MANUAL_PRIO (PlumpBook, app, xrpl, 5) | |
| BEAST_DEFINE_TESTSUITE (ThinBook, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_MANUAL_PRIO (OversizeMeta, app, xrpl, 3) | |
| BEAST_DEFINE_TESTSUITE_MANUAL_PRIO (FindOversizeCross, app, xrpl, 50) | |
| json::Value | rpf (jtx::Account const &src, jtx::Account const &dst, std::uint32_t numSrc) |
| BEAST_DEFINE_TESTSUITE (Path, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (PathMPT, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (PayChan, app, xrpl) | |
| std::uint32_t | trustFlag (TrustFlag f, bool useHigh) |
| bool | getTrustFlag (jtx::Env const &env, jtx::Account const &src, jtx::Account const &dst, Currency const &cur, TrustFlag flag) |
| BEAST_DEFINE_TESTSUITE (PayStrand, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (PayStrandMPT, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (PermissionedDEX, app, xrpl) | |
| static std::string | exceptionExpected (Env &env, json::Value const &jv) |
| BEAST_DEFINE_TESTSUITE (PermissionedDomains, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (PseudoTx, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (RCLValidations, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (ReducedOffer, app, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE (Regression, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (SetAuth, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (SHAMapStore, app, xrpl) | |
| static STAmount | accountReserve (jtx::Env const &env, std::uint32_t count=1) |
| static STAmount | reserve (jtx::Env const &env, std::uint32_t count) |
| static void | adjustAccountXRPBalance (jtx::Env &env, jtx::Account const &account, STAmount const &balanceTo) |
| BEAST_DEFINE_TESTSUITE (Sponsor, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (SponsorTxCosigning, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (SponsorTxPrefunded, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (TheoreticalQuality, app, xrpl, 3) | |
| BEAST_DEFINE_TESTSUITE (Transaction_ordering, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TransactionAcquire, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TransactionProposalCancel, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TransactionProposalCreate, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TransactionProposalReservedTicket, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TrustSet, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (TxQPosNegFlows, app, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE_PRIO (TxQMetaInfo, app, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (ValidatorKeys, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (ValidatorList, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (ValidatorSite, app, xrpl, 2) | |
| BEAST_DEFINE_TESTSUITE (VaultInvariantPrecision, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE (VaultTransactorPrecision, app, xrpl) | |
| BEAST_DEFINE_TESTSUITE_MANUAL (DetectCrash, basics, beast) | |
| BEAST_DEFINE_TESTSUITE (CurrentThreadName, beast, beast) | |
| bool | negUnlSizeTest (std::shared_ptr< Ledger const > const &l, size_t size, bool hasToDisable, bool hasToReEnable) |
| Test the size of the negative UNL in a ledger, also test if the ledger has ToDisable and/or ToReEnable. | |
| bool | applyAndTestResult (jtx::Env &env, OpenView &view, STTx const &tx, bool pass) |
| Try to apply a ttUNL_MODIFY Tx, and test the apply result. | |
| bool | verifyPubKeyAndSeq (std::shared_ptr< Ledger const > const &l, HashMap< PublicKey, std::uint32_t > nUnlLedgerSeq) |
| Verify the content of negative UNL entries (public key and ledger sequence) of a ledger. | |
| std::size_t | countTx (std::shared_ptr< SHAMap > const &txSet) |
| Count the number of Tx in a TxSet. | |
| std::vector< PublicKey > | createPublicKeys (std::size_t n) |
| Create fake public keys. | |
| STTx | createTx (bool disabling, LedgerIndex seq, PublicKey const &txKey) |
| Create ttUNL_MODIFY Tx. | |
| template<typename PreVote = decltype(gDefaultPreVote)> | |
| bool | voteAndCheck (NetworkHistory &history, NodeID const &myId, std::size_t expect, PreVote const &pre=gDefaultPreVote) |
| Create a NegativeUNLVote object. | |
| BEAST_DEFINE_TESTSUITE (NegativeUNL, consensus, xrpl) | |
| BEAST_DEFINE_TESTSUITE (NegativeUNLVoteInternal, consensus, xrpl) | |
| BEAST_DEFINE_TESTSUITE_MANUAL (NegativeUNLVoteScoreTable, consensus, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NegativeUNLVoteGoodScore, consensus, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (NegativeUNLVoteOffline, consensus, xrpl) | |
| BEAST_DEFINE_TESTSUITE (NegativeUNLVoteMaxListed, consensus, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (NegativeUNLVoteRetiredValidator, consensus, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (NegativeUNLVoteNewValidator, consensus, xrpl) | |
| BEAST_DEFINE_TESTSUITE (NegativeUNLVoteFilterValidations, consensus, xrpl) | |
| BEAST_DEFINE_TESTSUITE (ClosureCounter, core, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Coroutine, core, xrpl) | |
| BEAST_DEFINE_TESTSUITE (JobQueue, core, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Env, jtx, xrpl) | |
| char const * | getEnvLocalhostAddr () |
| void | setupConfigForUnitTests (Config &config) |
| initializes a config object for use with jtx::Env | |
| std::unique_ptr< AbstractClient > | makeJSONRPCClient (Config const &cfg, unsigned rpcVersion=2) |
| Returns a client using JSON-RPC over HTTP/S. | |
| std::unique_ptr< WSClient > | makeWSClient (Config const &cfg, bool v2=true, unsigned rpcVersion=2, std::unordered_map< std::string, std::string > const &headers={}) |
| Returns a client operating through WebSockets/S. | |
| std::size_t | countOffers (jtx::Env const &env, jtx::Account const &account, Asset const &takerPays, Asset const &takerGets) |
| Count offer. | |
| std::size_t | countOffers (jtx::Env const &env, jtx::Account const &account, STAmount const &takerPays, STAmount const &takerGets) |
| bool | isOffer (jtx::Env const &env, jtx::Account const &account, STAmount const &takerPays, STAmount const &takerGets) |
| An offer exists. | |
| bool | isOffer (jtx::Env const &env, jtx::Account const &account, Asset const &takerPays, Asset const &takerGets) |
| An offer exists. | |
| std::shared_ptr< TrustedPublisherServer > | makeTrustedPublisherServer (boost::asio::io_context &ioc, std::vector< TrustedPublisherServer::Validator > const &validators, NetClock::time_point validUntil, std::vector< std::pair< NetClock::time_point, NetClock::time_point > > const &futures, bool useSSL=false, int version=1, bool immediateStart=true, int sequence=1) |
| BEAST_DEFINE_TESTSUITE (WSClient, jtx, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (Directory, ledger, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (PaymentSandbox, ledger, xrpl) | |
| BEAST_DEFINE_TESTSUITE (PendingSaves, ledger, xrpl) | |
| BEAST_DEFINE_TESTSUITE (SkipList, ledger, xrpl) | |
| BEAST_DEFINE_TESTSUITE (View, ledger, xrpl) | |
| BEAST_DEFINE_TESTSUITE (GetAmendments, ledger, xrpl) | |
| template<class PeerType = CapturePeer> | |
| std::shared_ptr< PeerType > | makeCapturePeer (jtx::Env &env, std::optional< PublicKey > key=std::nullopt, HttpRequestType request={}) |
| Build an active CapturePeer and register it with the overlay. | |
| static UInt256 | ledgerHash (LedgerHeader const &info) |
| BEAST_DEFINE_TESTSUITE_MANUAL (compression, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (handshake, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (OverlayLimit, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (ProtocolMessage, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (reduce_relay, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE_MANUAL (reduce_relay_simulate, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TMGetLedger, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TMGetObjectByHash, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TMTransaction, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (TMTransactions, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (traffic_attribution, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (traffic_count, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (tx_reduce_relay, overlay, xrpl) | |
| BEAST_DEFINE_TESTSUITE (MultiApiJson, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (STIssue, protocol, xrpl) | |
| BEAST_DEFINE_TESTSUITE (AccountInfo, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (AccountObjects, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (AccountOffers, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (AccountTx, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (AMMInfo, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE_PRIO (Book, rpc, xrpl, 1) | |
| BEAST_DEFINE_TESTSUITE (BookChanges, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (DeliveredAmount, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (DepositAuthorized, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (GatewayBalances, rpc, xrpl) | |
| std::ostream & | operator<< (std::ostream &os, std::chrono::nanoseconds ns) |
| BEAST_DEFINE_TESTSUITE_MANUAL (Handler, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (HandlerLookup, rpc, xrpl) | |
| FieldType | getFieldType (json::StaticString fieldName) |
| std::string | getTypeName (FieldType typeID) |
| BEAST_DEFINE_TESTSUITE (LedgerEntry, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (LedgerRPC, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (ManifestRPC, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (NoRipple, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (RobustTransaction, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Roles, rpc, xrpl) | |
| std::string | updateAPIVersionString (char const *const req, unsigned apiVersion) |
| std::unique_ptr< Config > | makeNetworkConfig (uint32_t networkID) |
| BEAST_DEFINE_TESTSUITE (RPCCall, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (RPCHelpers, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (RPCOverload, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (ServerDefinitions, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (ServerInfo, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Simulate, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Submit, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Subscribe, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (ValidatorInfo, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (ValidatorRPC, rpc, xrpl) | |
| BEAST_DEFINE_TESTSUITE (Server, server, xrpl) | |
| BEAST_DEFINE_TESTSUITE (ServerStatus, server, xrpl) | |
| bool | equal (SecretKey const &lhs, SecretKey const &rhs) |
| Compare two SecretKey objects for equality. | |
| TEST_F (BaseUintDeathTest, from_raw_size_mismatch) | |
| TEST_F (BaseUintTest, comparisons) | |
| TEST_F (BaseUintTest, from_raw) | |
| TEST_F (BaseUintTest, hash_append_writes_the_raw_bytes) | |
| TEST_F (BaseUintTest, complement) | |
| TEST_F (BaseUintTest, zero) | |
| TEST_F (BaseUintTest, the_several_ways_of_spelling_zero_agree) | |
| TEST_F (BaseUintTest, increment_and_decrement) | |
| TEST_F (BaseUintTest, exclusive_or) | |
| TEST_F (BaseUintTest, distinct_values_hash_into_a_set) | |
| TEST_F (BaseUintTest, parse_hex_round_trip) | |
| TEST_F (BaseUintTest, parse_hex_rejects_an_extra_leading_character) | |
| TEST_F (BaseUintTest, parse_hex_rejects_an_extra_trailing_character) | |
| TEST_F (BaseUintTest, parse_hex_rejects_a_non_hex_character_at_any_position) | |
| TEST_F (BaseUintTest, parse_hex_walking_ones) | |
| TEST_F (BaseUintTest, parse_hex_walking_zeroes) | |
| TEST_F (BaseUintTest, constexpr_construction) | |
| TEST_F (BaseUintTest, constexpr_constructor_throws_on_a_bad_length) | |
| TEST_F (BaseUintTest, constexpr_constructor_throws_on_a_bad_character) | |
| TEST_F (BaseUintTest, constexpr_construction_agrees_with_parse_hex) | |
| TEST_F (BufferTest, default_constructed_is_empty) | |
| TEST_F (BufferTest, zero_sized_construction_is_empty) | |
| TEST_F (BufferTest, alloc_grows_an_empty_buffer) | |
| TEST_F (BufferTest, sized_construction_reserves_without_filling) | |
| TEST_F (BufferTest, construction_copies_raw_memory) | |
| TEST_F (BufferTest, equality_compares_contents) | |
| TEST_F (BufferTest, copy_construction) | |
| TEST_F (BufferTest, copy_assignment) | |
| TEST_F (BufferTest, self_assignment_preserves_contents) | |
| TEST_F (BufferTest, move_construct_from_empty) | |
| TEST_F (BufferTest, move_construct_from_non_empty) | |
| TEST_F (BufferTest, move_assign_empty_to_empty) | |
| TEST_F (BufferTest, move_assign_non_empty_to_empty) | |
| TEST_F (BufferTest, move_assign_empty_to_non_empty) | |
| TEST_F (BufferTest, move_assign_non_empty_to_non_empty) | |
| TEST_F (BufferTest, construction_from_slice) | |
| TEST_F (BufferTest, assignment_from_slice) | |
| TEST_F (BufferTest, resize_allocates_and_clear_releases) | |
| TEST_F (BufferTest, fill_sets_every_byte) | |
| TEST_F (BufferTest, fill_overwrites_and_keeps_size) | |
| TEST_F (BufferTest, fill_on_empty_buffer_is_a_noop) | |
| TEST_F (JoinTest, join) | |
| TEST (UnitsTest, types) | |
| TEST (UnitsTest, json) | |
| TEST_F (FeeLevel64Test, construction) | |
| TEST_F (FeeLevel64Test, construction_from_zero) | |
| TEST_F (FeeLevel64Test, construction_from_an_unsigned_literal) | |
| TEST_F (FeeLevel64Test, conversion_from_the_same_unit) | |
| TEST_F (FeeLevel64Test, conversion_from_a_narrower_unit) | |
| TEST_F (FeeLevel64Test, assignment_from_raw_integers) | |
| TEST_F (FeeLevel64Test, assignment_from_units) | |
| TEST_F (FeeLevel64Test, multiplication_and_division) | |
| TEST_F (FeeLevel64Test, compound_addition_and_subtraction) | |
| TEST_F (FeeLevel64Test, increment_and_decrement) | |
| TEST_F (FeeLevel64Test, compound_multiplication_division_and_modulo) | |
| TEST_F (FeeLevel64Test, truthiness_signum_and_to_string) | |
| TEST_F (FeeLevelDoubleTest, construction) | |
| TEST_F (FeeLevelDoubleTest, construction_from_zero) | |
| TEST_F (FeeLevelDoubleTest, construction_from_a_floating_literal) | |
| TEST_F (FeeLevelDoubleTest, conversion_from_the_same_unit) | |
| TEST_F (FeeLevelDoubleTest, assignment_from_an_integral_unit) | |
| TEST_F (FeeLevelDoubleTest, assignment_from_raw_numbers) | |
| TEST_F (FeeLevelDoubleTest, assignment_from_units) | |
| TEST_F (FeeLevelDoubleTest, multiplication_and_division) | |
| TEST_F (FeeLevelDoubleTest, compound_addition_and_subtraction) | |
| TEST_F (FeeLevelDoubleTest, increment_and_decrement) | |
| TEST_F (FeeLevelDoubleTest, compound_multiplication_and_division) | |
| TEST_F (FeeLevelDoubleTest, negation) | |
| TEST_F (FeeLevelDoubleTest, truthiness_signum_and_to_string) | |
| TEST (UnitsTest, initial_xrp) | |
| TEST (ByzantineFailureSimTest, DISABLED_byzantine_failure_sim) | |
| TEST (CensorshipDetectorTest, censorship_detector) | |
| TEST (ConsensusTest, should_close_ledger) | |
| TEST (ConsensusTest, check_consensus) | |
| TEST (ConsensusTest, standalone) | |
| TEST (ConsensusTest, peers_agree) | |
| TEST (ConsensusTest, slow_peers) | |
| TEST (ConsensusTest, close_time_disagree) | |
| TEST (ConsensusTest, wrong_lcl) | |
| TEST (ConsensusTest, consensus_close_time_rounding) | |
| TEST (ConsensusTest, fork) | |
| TEST (ConsensusTest, hub_network) | |
| TEST (ConsensusTest, preferred_by_branch) | |
| TEST (ConsensusTest, pause_for_laggards) | |
| TEST (ConsensusTest, disputes) | |
| TEST (DistributedValidatorsTest, DISABLED_distributed_validators) | |
| TEST (LedgerTimingTest, get_next_ledger_time_resolution) | |
| TEST (LedgerTimingTest, round_close_time) | |
| TEST (LedgerTimingTest, eff_close_time) | |
| TEST_F (LedgerTrieTest, insert_single_entry_by_itself) | |
| TEST_F (LedgerTrieTest, insert_suffix_of_existing_extending_tree) | |
| TEST_F (LedgerTrieTest, insert_uncommitted_of_existing_node) | |
| TEST_F (LedgerTrieTest, insert_suffix_uncommitted_of_existing_node) | |
| TEST_F (LedgerTrieTest, insert_suffix_uncommitted_with_existing_child) | |
| TEST_F (LedgerTrieTest, insert_multiple_counts) | |
| TEST_F (LedgerTrieTest, remove_not_in_trie) | |
| TEST_F (LedgerTrieTest, remove_in_trie_but_with_0_tip_support) | |
| TEST_F (LedgerTrieTest, remove_in_trie_with_multiple_tip_support) | |
| TEST_F (LedgerTrieTest, remove_in_trie_with_1_tip_support_no_children) | |
| TEST_F (LedgerTrieTest, remove_in_trie_with_1_tip_support_1_child) | |
| TEST_F (LedgerTrieTest, remove_in_trie_with_1_tip_support_multiple_children) | |
| TEST_F (LedgerTrieTest, remove_in_trie_with_1_tip_support_parent_compaction) | |
| TEST_F (LedgerTrieTest, empty) | |
| TEST_F (LedgerTrieTest, support) | |
| TEST_F (LedgerTrieTest, preferred_empty) | |
| TEST_F (LedgerTrieTest, preferred_genesis_support_is_not_empty) | |
| TEST_F (LedgerTrieTest, preferred_single_node_no_children) | |
| TEST_F (LedgerTrieTest, preferred_single_node_smaller_child_support) | |
| TEST_F (LedgerTrieTest, preferred_single_node_larger_child) | |
| TEST_F (LedgerTrieTest, preferred_single_node_smaller_children_support) | |
| TEST_F (LedgerTrieTest, preferred_single_node_larger_children) | |
| TEST_F (LedgerTrieTest, preferred_tie_breaker_by_id) | |
| TEST_F (LedgerTrieTest, preferred_tie_breaker_not_needed) | |
| TEST_F (LedgerTrieTest, preferred_single_node_larger_grand_child) | |
| TEST_F (LedgerTrieTest, preferred_too_much_uncommitted_support_from_competing_branches) | |
| TEST_F (LedgerTrieTest, preferred_changing_largestseq_perspective_changes_preferred_branch) | |
| TEST_F (LedgerTrieTest, root_related) | |
| TEST_F (LedgerTrieTest, stress) | |
| TEST (ScaleFreeSimTest, DISABLED_scale_free_sim) | |
| TEST (BasicNetworkTest, network) | |
| TEST (BasicNetworkTest, disconnect) | |
| TEST (DigraphTest, digraph) | |
| TEST (HistogramTest, histogram) | |
| TEST (SchedulerTest, scheduler) | |
| FeatureBitset | allFeatures () |
| Returns all testable amendments. | |
| template<std::floating_point T> | |
| XRPAmount | XRP (T xrp) |
| Convert XRP to drops (floating point types). | |
| XRPAmount | XRP (Number const &xrp) |
| Convert XRP to drops (Number type). | |
| constexpr std::uint32_t | asfToLsf (std::uint32_t asf) |
| Convert AccountSet flag (asf) to LedgerState flag (lsf). | |
| TEST (AccountRootEntryTests, constructors) | |
| TEST (AmendmentsEntryTests, constructors) | |
| TEST (AMMEntryTests, constructors) | |
| TEST (CheckEntryTests, constructors) | |
| TEST (CredentialEntryTests, constructors) | |
| TEST (DelegateEntryTests, constructors) | |
| TEST (DepositPreauthEntryTests, constructors) | |
| TEST (DIDEntryTests, constructors) | |
| TEST (DirectoryNodeEntryTests, constructors) | |
| template<template< typename > class Entry, typename... Args> | |
| void | expectKeylet (EntryTestEnv &e, Keylet const &expected, std::string const &what, Args const &... args) |
Assert that both flavors of Entry built from args resolve the ledger object that expected names. | |
| TEST (EscrowEntryTests, constructors) | |
| TEST_F (ExtensionFees, genesis_writes_the_configured_values) | |
| TEST_F (ExtensionFees, absent_fields_resolve_to_the_protocol_constants) | |
| TEST_F (ExtensionFees, present_fields_are_taken_from_the_ledger) | |
| TEST_F (ExtensionFees, an_explicit_zero_is_not_treated_as_absent) | |
| TEST_F (ExtensionFees, gas_settings_before_the_amendment_fail_to_load) | |
| TEST_F (ExtensionFees, gas_settings_after_the_amendment_load) | |
| TEST (FeeSettingsEntryTests, constructors) | |
| TEST (LedgerHashesEntryTests, constructors) | |
| TEST (LoanBrokerEntryTests, constructors) | |
| TEST (LoanEntryTests, constructors) | |
| TEST (MPTokenEntryTests, constructors) | |
| TEST (MPTokenIssuanceEntryTests, constructors) | |
| TEST (NegativeUNLEntryTests, constructors) | |
| TEST (NFTokenOfferEntryTests, constructors) | |
| TEST (NFTokenPageEntryTests, constructors) | |
| TEST (OfferEntryTests, constructors) | |
| TEST (OracleEntryTests, constructors) | |
| TEST (PayChannelEntryTests, constructors) | |
| TEST (PermissionedDomainEntryTests, constructors) | |
| TEST (RippleStateEntryTests, constructors) | |
| TEST (SignerListEntryTests, constructors) | |
| TEST_F (SLEBaseTests, read_only) | |
| TEST_F (SLEBaseTests, adopt_sle) | |
| TEST_F (SLEBaseTests, writable_accessors) | |
| TEST_F (SLEBaseTests, apply_view_context_ctor) | |
| TEST_F (SLEBaseTests, writable_lifecycle) | |
| TEST_F (SLEBaseTests, conversion) | |
| TEST_F (SLEBaseTests, resolve_entry_peeks) | |
| TEST_F (SLEBaseTests, throws_on_missing_entry) | |
| TEST_F (SLEBaseTests, throws_on_missing_writable_entry) | |
| TEST (SponsorshipEntryTests, constructors) | |
| TEST (TicketEntryTests, constructors) | |
| TEST (VaultEntryTests, constructors) | |
| TEST (AccountSet, null_account_set) | |
| TEST (AccountSet, most_flags) | |
| TEST (AccountSet, set_and_reset_account_txn_id) | |
| TEST (AccountSet, set_no_freeze) | |
| TEST (AccountSet, domain) | |
| TEST (AccountSet, message_key) | |
| TEST (AccountSet, wallet_id) | |
| TEST (AccountSet, email_hash) | |
| TEST (AccountSet, transfer_rate) | |
| TEST (AccountSet, bad_inputs) | |
| TEST (AccountSet, require_auth_with_dir) | |
| TEST (AccountSet, ticket) | |
| TEST (AccountSet, bad_signing_key) | |
| TEST (AccountSet, gateway) | |
| TEST_F (ApplyContextTests, discard_drops_pending_state_and_keeps_the_context_usable) | |
| TEST (ProposalHelpers, plain_payment_is_valid) | |
| TEST (ProposalHelpers, typeless_object_is_rejected) | |
| TEST (ProposalHelpers, nested_proposal_is_rejected) | |
| TEST (ProposalHelpers, pseudo_tx_is_rejected) | |
| TEST (ProposalHelpers, inner_batch_flag_is_rejected) | |
| TEST (ProposalHelpers, other_flags_are_accepted) | |
| TEST (ProposalHelpers, batch_with_plain_inner_is_valid) | |
| TEST (ProposalHelpers, batch_with_nested_proposal_inner_is_rejected) | |
| TEST (ProposalHelpers, batch_with_pseudo_inner_is_rejected) | |
| TEST (ProposalHelpers, batch_without_raw_transactions_is_valid) | |
Variables | |
| auto | gDefaultPreVote = [](NegativeUNLVote& vote) {} |
| std::atomic< bool > | gEnvUseIPv4 {false} |
| static constexpr std::uint32_t | kMaxPeers = 10 |
| static constexpr std::uint32_t | kMaxValidators = 10 |
| static constexpr std::uint32_t | kMaxMessages = 200000 |
| static char const * | gBobAccountObjects [] |
| std::vector< std::pair< json::StaticString, FieldType > > | gMappings |
| static RPCCallTestData const | kRpcCallTestArray [] |
| template<std::integral T> | |
| constexpr | XRPAmount |
| Convert XRP to drops (integral types). | |
Definition at line 53 of file reduce_relay_test.cpp.
| using xrpl::test::LinkSPtr = std::shared_ptr<Link> |
Definition at line 54 of file reduce_relay_test.cpp.
| using xrpl::test::PeerSPtr = std::shared_ptr<Peer> |
Definition at line 55 of file reduce_relay_test.cpp.
| using xrpl::test::PeerWPtr = std::weak_ptr<Peer> |
Definition at line 56 of file reduce_relay_test.cpp.
| using xrpl::test::SquelchCB = std::function<void(PublicKey const&, PeerWPtr const&, std::uint32_t)> |
Definition at line 57 of file reduce_relay_test.cpp.
| using xrpl::test::UnsquelchCB = std::function<void(PublicKey const&, PeerWPtr const&)> |
Definition at line 58 of file reduce_relay_test.cpp.
| using xrpl::test::LinkIterCB = std::function<void(Link&, MessageSPtr)> |
Definition at line 59 of file reduce_relay_test.cpp.
| using xrpl::test::SocketType = boost::beast::tcp_stream |
Definition at line 43 of file Server_test.cpp.
| using xrpl::test::StreamType = boost::beast::ssl_stream<SocketType> |
Definition at line 44 of file Server_test.cpp.
Definition at line 71 of file base_uint.cpp.
|
strong |
| Enumerator | |
|---|---|
| Good | |
| DropAll | |
Definition at line 138 of file LedgerReplay_test.cpp.
|
strong |
| Enumerator | |
|---|---|
| LedgerReplayEnabled | |
| None | |
Definition at line 257 of file LedgerReplay_test.cpp.
|
strong |
| Enumerator | |
|---|---|
| Good | |
| DropAlternate | |
| DropAll | |
| DropSkipListReply | |
| DropLedgerDeltaReply | |
| Repeat | |
Definition at line 295 of file LedgerReplay_test.cpp.
|
strong |
| Enumerator | |
|---|---|
| Failed | |
| Completed | |
| NotDone | |
| NotExist | |
Definition at line 527 of file LedgerReplay_test.cpp.
|
strong |
| Enumerator | |
|---|---|
| Freeze | |
| Auth | |
| Noripple | |
Definition at line 53 of file PayStrand_test.cpp.
|
strong |
| Enumerator | |
|---|---|
| AccountField | |
| BlobField | |
| ArrayField | |
| CurrencyField | |
| HashField | |
| HashOrObjectField | |
| FixedHashField | |
| AssetField | |
| ObjectField | |
| StringField | |
| TwoAccountArrayField | |
| UInt32Field | |
| UInt64Field | |
Definition at line 69 of file LedgerEntry_test.cpp.
|
strong |
|
static |
Definition at line 1697 of file BookStep.cpp.
| bool xrpl::test::bookStepEqual | ( | Step const & | step, |
| xrpl::Book const & | book ) |
Definition at line 1705 of file BookStep.cpp.
| bool xrpl::test::directStepEqual | ( | Step const & | step, |
| AccountID const & | src, | ||
| AccountID const & | dst, | ||
| Currency const & | currency ) |
Definition at line 913 of file DirectStep.cpp.
| bool xrpl::test::mptEndpointStepEqual | ( | Step const & | step, |
| AccountID const & | src, | ||
| AccountID const & | dst, | ||
| MPTID const & | mptid ) |
Definition at line 977 of file MPTEndpointStep.cpp.
Definition at line 381 of file XRPEndpointStep.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | AccountDelete | , |
| app | , | ||
| xrpl | , | ||
| 2 | ) |
|
nodiscard |
The given nodes of a chain as a TMLedgerData, so a test can go through the real dispatch.
Not in DeepChain, since the protobuf types are xrpld and that header is shared with the libxrpl-only gtest binary.
| chain | The chain the nodes came from, which names the reply by default. |
| data | The nodes to include, each with its claimed position. |
| type | The reply type, which selects which map the receiver applies it to. |
| ledgerHash | The hash the reply claims to be about, defaulting to the chain root for a TX set. A ledger acquisition wants its header hash here, since the chain root is only that ledger's account hash. |
| ledgerSeq | The sequence to name in the reply. |
Definition at line 287 of file AcquireTestHelpers.h.
|
nodiscard |
Poll until the condition holds, or give up.
An acquisition's own timer and the jobs it hands finished work to both run on other threads.
| condition | What to wait for. |
| deadline | The longest to wait. |
Definition at line 332 of file AcquireTestHelpers.h.
|
nodiscard |
Whether a batch verdict carries exactly the given counts.
The counts, since get() is a log format. It is pinned once, in the SHAMapAddNode tests, and is what to pass BEAST_EXPECTS() as the reason a check here failed.
| san | The verdict to check. |
| good | How many nodes the batch should have hooked in. |
| bad | How many it should have rejected. |
| duplicate | How many it should have already held. |
Definition at line 360 of file AcquireTestHelpers.h.
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL | ( | AMMCalc | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | AMMClawback | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | AMMClawbackMPT | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | AMMExtended | , |
| app | , | ||
| xrpl | , | ||
| 1 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | AMMExtendedMPT | , |
| app | , | ||
| xrpl | , | ||
| 1 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | AMMMPT | , |
| app | , | ||
| xrpl | , | ||
| 1 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | Credentials | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO | ( | CrossingLimits | , |
| app | , | ||
| xrpl | , | ||
| 10 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO | ( | CrossingLimitsMPT | , |
| tx | , | ||
| xrpl | , | ||
| 10 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | Delegate | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | DeliverMin | , |
| app | , | ||
| xrpl | ) |
|
static |
Definition at line 55 of file DepositAuth_test.cpp.
|
static |
Definition at line 62 of file DepositAuth_test.cpp.
|
static |
Definition at line 368 of file DepositAuth_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | DepositAuth | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | DepositPreauth | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | DID | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO | ( | DNS | , |
| app | , | ||
| xrpl | , | ||
| 20 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | Escrow | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | EscrowSmart | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | EscrowToken | , |
| app | , | ||
| xrpl | ) |
| STTx xrpl::test::createFeeTx | ( | Rules const & | rules, |
| std::uint32_t | seq, | ||
| FeeSettingsFields const & | fields, | ||
| bool | forceAllFields = false ) |
Definition at line 56 of file FeeVote_test.cpp.
| STTx xrpl::test::createFeeTxMissingRequiredFields | ( | std::uint32_t | seq | ) |
Definition at line 87 of file FeeVote_test.cpp.
| STTx xrpl::test::createFeeTxWithLegacyFields | ( | std::uint32_t | seq | ) |
Definition at line 99 of file FeeVote_test.cpp.
Definition at line 117 of file FeeVote_test.cpp.
| bool xrpl::test::verifyFeeObject | ( | std::shared_ptr< Ledger const > const & | ledger, |
| Rules const & | rules, | ||
| FeeSettingsFields const & | expected ) |
Definition at line 124 of file FeeVote_test.cpp.
| std::vector< STTx > xrpl::test::getTxs | ( | std::shared_ptr< SHAMap > const & | txSet | ) |
Definition at line 171 of file FeeVote_test.cpp.
| bool xrpl::test::getNoRippleFlag | ( | jtx::Env const & | env, |
| jtx::Account const & | src, | ||
| jtx::Account const & | dst, | ||
| Currency const & | cur ) |
Definition at line 55 of file Flow_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | Flow | , |
| app | , | ||
| xrpl | , | ||
| 2 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO | ( | Flow_manual | , |
| app | , | ||
| xrpl | , | ||
| 4 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | FlowMPT | , |
| app | , | ||
| xrpl | , | ||
| 2 | ) |
| bool xrpl::test::makeTestGRPCCall | ( | std::unique_ptr< org::xrpl::rpc::v1::XRPLedgerAPIService::Stub > const & | stub | ) |
Helper function to make a simple gRPC call to test connectivity.
Returns true if the call succeeded, false otherwise.
Definition at line 340 of file GRPCServerTLS_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | GRPCServerTLS | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | HashRouter | , |
| app | , | ||
| xrpl | ) |
|
staticnodiscard |
The ledger an acquisition is assembling, as a pointer that can modify it.
| acquire | The acquisition to read from. |
Definition at line 104 of file InboundLedger_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | InboundLedger | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | InvariantsAMM | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | InvariantsEscrowNFT | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | InvariantsMisc | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | InvariantsMPT | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | InvariantsPermissioned | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | InvariantsPseudoAccount | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | InvariantsTransactionProposal | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | InvariantsTrustLine | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | InvariantsVault | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LedgerHistory | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LedgerMaster | , |
| app | , | ||
| xrpl | ) |
| void xrpl::test::logAll | ( | LedgerServer & | server, |
| LedgerReplayClient & | client, | ||
| beast::Severity | level = Severity::Trace ) |
Definition at line 784 of file LedgerReplay_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LedgerReplay | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | LedgerReplayer | , |
| app | , | ||
| xrpl | , | ||
| 1 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LedgerReplayerTimeout | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL | ( | LedgerReplayerLong | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LendingBatch | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LendingHelpers | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LoanBroker | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LoanCashBasis | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LoanCoverFreezeAuth | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LoanInvariants | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LoanLifecycle | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LoanMisc | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL | ( | LoanBatch | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL | ( | LoanArbitrary | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LoanPermissionedDomain | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LoanRounding | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LoanSecurity | , |
| tx | , | ||
| xrpl | ) |
| void xrpl::test::checkFixedPrecisionVaultAssetsDeployed | ( | beast::unit_test::Suite & | suite, |
| jtx::Env & | env, | ||
| Keylet const & | vaultKeylet, | ||
| std::vector< Keylet > const & | brokerKeylets, | ||
| std::vector< Keylet > const & | loanKeylets, | ||
| std::string const & | label = {} ) |
Definition at line 94 of file LoanTestBase.h.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LoanValidation | , |
| tx | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LPTokenTransfer | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | MPToken | , |
| app | , | ||
| xrpl | , | ||
| 2 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | MultiSign | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | NetworkID | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | NetworkOPs | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | OfferBaseUtil | , |
| app | , | ||
| xrpl | , | ||
| 2 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | OfferMPT | , |
| tx | , | ||
| xrpl | , | ||
| 2 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO | ( | PlumpBook | , |
| app | , | ||
| xrpl | , | ||
| 5 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | ThinBook | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO | ( | OversizeMeta | , |
| app | , | ||
| xrpl | , | ||
| 3 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO | ( | FindOversizeCross | , |
| app | , | ||
| xrpl | , | ||
| 50 | ) |
| json::Value xrpl::test::rpf | ( | jtx::Account const & | src, |
| jtx::Account const & | dst, | ||
| std::uint32_t | numSrc ) |
Definition at line 71 of file Path_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | PathMPT | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | PayChan | , |
| app | , | ||
| xrpl | ) |
| std::uint32_t xrpl::test::trustFlag | ( | TrustFlag | f, |
| bool | useHigh ) |
Definition at line 56 of file PayStrand_test.cpp.
| bool xrpl::test::getTrustFlag | ( | jtx::Env const & | env, |
| jtx::Account const & | src, | ||
| jtx::Account const & | dst, | ||
| Currency const & | cur, | ||
| TrustFlag | flag ) |
Definition at line 77 of file PayStrand_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | PayStrand | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | PayStrandMPT | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | PermissionedDEX | , |
| app | , | ||
| xrpl | ) |
|
static |
Definition at line 41 of file PermissionedDomains_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | PermissionedDomains | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | PseudoTx | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | RCLValidations | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | ReducedOffer | , |
| app | , | ||
| xrpl | , | ||
| 2 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | Regression | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | SetAuth | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | SHAMapStore | , |
| app | , | ||
| xrpl | ) |
|
static |
Definition at line 76 of file Sponsor_test.cpp.
|
static |
Definition at line 82 of file Sponsor_test.cpp.
|
static |
Definition at line 88 of file Sponsor_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | Sponsor | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | SponsorTxCosigning | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | SponsorTxPrefunded | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | TheoreticalQuality | , |
| app | , | ||
| xrpl | , | ||
| 3 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | Transaction_ordering | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | TransactionAcquire | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | TransactionProposalCancel | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | TransactionProposalCreate | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | TransactionProposalReservedTicket | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | TxQPosNegFlows | , |
| app | , | ||
| xrpl | , | ||
| 1 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | TxQMetaInfo | , |
| app | , | ||
| xrpl | , | ||
| 1 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | ValidatorKeys | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | ValidatorList | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | ValidatorSite | , |
| app | , | ||
| xrpl | , | ||
| 2 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | VaultInvariantPrecision | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | VaultTransactorPrecision | , |
| app | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL | ( | DetectCrash | , |
| basics | , | ||
| beast | ) |
| bool xrpl::test::negUnlSizeTest | ( | std::shared_ptr< Ledger const > const & | l, |
| size_t | size, | ||
| bool | hasToDisable, | ||
| bool | hasToReEnable ) |
Test the size of the negative UNL in a ledger, also test if the ledger has ToDisable and/or ToReEnable.
| l | the ledger |
| size | the expected negative UNL size |
| hasToDisable | if expect ToDisable in ledger |
| hasToReEnable | if expect ToDisable in ledger |
Definition at line 1926 of file NegativeUNL_test.cpp.
Try to apply a ttUNL_MODIFY Tx, and test the apply result.
| env | the test environment |
| view | the OpenView of the ledger |
| tx | the ttUNL_MODIFY Tx |
| pass | if the Tx should be applied successfully |
Definition at line 1940 of file NegativeUNL_test.cpp.
| bool xrpl::test::verifyPubKeyAndSeq | ( | std::shared_ptr< Ledger const > const & | l, |
| HashMap< PublicKey, std::uint32_t > | nUnlLedgerSeq ) |
Verify the content of negative UNL entries (public key and ledger sequence) of a ledger.
| l | the ledger |
| nUnlLedgerSeq | the expected PublicKeys and ledger Sequences |
Definition at line 1952 of file NegativeUNL_test.cpp.
| std::size_t xrpl::test::countTx | ( | std::shared_ptr< SHAMap > const & | txSet | ) |
Count the number of Tx in a TxSet.
| txSet | the TxSet |
Definition at line 1988 of file NegativeUNL_test.cpp.
| std::vector< PublicKey > xrpl::test::createPublicKeys | ( | std::size_t | n | ) |
Create fake public keys.
| n | the number of public keys |
Definition at line 1999 of file NegativeUNL_test.cpp.
| STTx xrpl::test::createTx | ( | bool | disabling, |
| LedgerIndex | seq, | ||
| PublicKey const & | txKey ) |
Create ttUNL_MODIFY Tx.
| disabling | disabling or re-enabling a validator |
| seq | current ledger seq |
| txKey | the public key of the validator |
Definition at line 2015 of file NegativeUNL_test.cpp.
| bool xrpl::test::voteAndCheck | ( | NetworkHistory & | history, |
| NodeID const & | myId, | ||
| std::size_t | expect, | ||
| PreVote const & | pre = gDefaultPreVote ) |
Create a NegativeUNLVote object.
It then creates ttUNL_MODIFY Tx as its vote on negative UNL changes.
| PreVote | a function to be called before vote |
| history | the ledger history |
| myId | the voting validator |
| expect | the number of ttUNL_MODIFY Tx expected |
| pre | the PreVote function |
Definition at line 707 of file NegativeUNL_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | NegativeUNL | , |
| consensus | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | NegativeUNLVoteInternal | , |
| consensus | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL | ( | NegativeUNLVoteScoreTable | , |
| consensus | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | NegativeUNLVoteGoodScore | , |
| consensus | , | ||
| xrpl | , | ||
| 1 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | NegativeUNLVoteOffline | , |
| consensus | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | NegativeUNLVoteMaxListed | , |
| consensus | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO | ( | NegativeUNLVoteRetiredValidator | , |
| consensus | , | ||
| xrpl | , | ||
| 1 | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | NegativeUNLVoteNewValidator | , |
| consensus | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | NegativeUNLVoteFilterValidations | , |
| consensus | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | ClosureCounter | , |
| core | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | Coroutine | , |
| core | , | ||
| xrpl | ) |
| char const * xrpl::test::getEnvLocalhostAddr | ( | ) |
Definition at line 16 of file envconfig.h.
|
extern |
initializes a config object for use with jtx::Env
| config | the configuration object to be initialized |
Definition at line 21 of file envconfig.cpp.
| std::unique_ptr< AbstractClient > xrpl::test::makeJSONRPCClient | ( | Config const & | cfg, |
| unsigned | rpcVersion ) |
Returns a client using JSON-RPC over HTTP/S.
Definition at line 235 of file JSONRPCClient.cpp.
| std::unique_ptr< WSClient > xrpl::test::makeWSClient | ( | Config const & | cfg, |
| bool | v2, | ||
| unsigned | rpcVersion, | ||
| std::unordered_map< std::string, std::string > const & | headers ) |
Returns a client operating through WebSockets/S.
Definition at line 373 of file WSClient.cpp.
| std::size_t xrpl::test::countOffers | ( | jtx::Env const & | env, |
| jtx::Account const & | account, | ||
| Asset const & | takerPays, | ||
| Asset const & | takerGets ) |
| std::size_t xrpl::test::countOffers | ( | jtx::Env const & | env, |
| jtx::Account const & | account, | ||
| STAmount const & | takerPays, | ||
| STAmount const & | takerGets ) |
| bool xrpl::test::isOffer | ( | jtx::Env const & | env, |
| jtx::Account const & | account, | ||
| STAmount const & | takerPays, | ||
| STAmount const & | takerGets ) |
| bool xrpl::test::isOffer | ( | jtx::Env const & | env, |
| jtx::Account const & | account, | ||
| Asset const & | takerPays, | ||
| Asset const & | takerGets ) |
| std::shared_ptr< TrustedPublisherServer > xrpl::test::makeTrustedPublisherServer | ( | boost::asio::io_context & | ioc, |
| std::vector< TrustedPublisherServer::Validator > const & | validators, | ||
| NetClock::time_point | validUntil, | ||
| std::vector< std::pair< NetClock::time_point, NetClock::time_point > > const & | futures, | ||
| bool | useSSL = false, | ||
| int | version = 1, | ||
| bool | immediateStart = true, | ||
| int | sequence = 1 ) |
Definition at line 703 of file TrustedPublisherServer.h.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | PaymentSandbox | , |
| ledger | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | PendingSaves | , |
| ledger | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | SkipList | , |
| ledger | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | View | , |
| ledger | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | GetAmendments | , |
| ledger | , | ||
| xrpl | ) |
| std::shared_ptr< PeerType > xrpl::test::makeCapturePeer | ( | jtx::Env & | env, |
| std::optional< PublicKey > | key = std::nullopt, | ||
| HttpRequestType | request = {} ) |
Build an active CapturePeer and register it with the overlay.
| PeerType | The peer class to build; must derive from CapturePeer and inherit its constructor. |
| env | The environment owning the overlay. |
| key | The peer's node public key, or unseated for a fresh random one. |
| request | The handshake request. PeerImp reads its X-Protocol-Ctl header in the constructor to negotiate features. |
Definition at line 209 of file CapturePeer.h.
|
static |
Definition at line 58 of file compression_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL | ( | compression | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | handshake | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | OverlayLimit | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | ProtocolMessage | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | reduce_relay | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL | ( | reduce_relay_simulate | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | TMGetLedger | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | TMGetObjectByHash | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | TMTransaction | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | TMTransactions | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | traffic_attribution | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | traffic_count | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | tx_reduce_relay | , |
| overlay | , | ||
| xrpl | ) |
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | MultiApiJson | , |
| protocol | , | ||
| xrpl | ) |
| std::ostream & xrpl::test::operator<< | ( | std::ostream & | os, |
| std::chrono::nanoseconds | ns ) |
Definition at line 29 of file Handler_test.cpp.
| FieldType xrpl::test::getFieldType | ( | json::StaticString | fieldName | ) |
Definition at line 106 of file LedgerEntry_test.cpp.
| std::string xrpl::test::getTypeName | ( | FieldType | typeID | ) |
Definition at line 119 of file LedgerEntry_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | LedgerEntry | , |
| rpc | , | ||
| xrpl | ) |
| std::string xrpl::test::updateAPIVersionString | ( | char const *const | req, |
| unsigned | apiVersion ) |
Definition at line 6621 of file RPCCall_test.cpp.
| std::unique_ptr< Config > xrpl::test::makeNetworkConfig | ( | uint32_t | networkID | ) |
Definition at line 6631 of file RPCCall_test.cpp.
| xrpl::test::BEAST_DEFINE_TESTSUITE | ( | ServerStatus | , |
| server | , | ||
| xrpl | ) |
| bool xrpl::test::equal | ( | SecretKey const & | lhs, |
| SecretKey const & | rhs ) |
Compare two SecretKey objects for equality.
SecretKey::operator== is deleted, so a named function is used to avoid member-function lookup shadowing free-function overloads.
Definition at line 15 of file src/test/unit_test/utils.h.
| xrpl::test::TEST_F | ( | BaseUintDeathTest | , |
| from_raw_size_mismatch | ) |
Definition at line 73 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| comparisons | ) |
Definition at line 138 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| from_raw | ) |
Definition at line 205 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| hash_append_writes_the_raw_bytes | ) |
Definition at line 222 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| complement | ) |
Definition at line 234 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| zero | ) |
Definition at line 256 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| the_several_ways_of_spelling_zero_agree | ) |
Definition at line 272 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| increment_and_decrement | ) |
Definition at line 284 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| exclusive_or | ) |
Definition at line 304 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| distinct_values_hash_into_a_set | ) |
Definition at line 310 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| parse_hex_round_trip | ) |
Definition at line 323 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| parse_hex_rejects_an_extra_leading_character | ) |
Definition at line 331 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| parse_hex_rejects_an_extra_trailing_character | ) |
Definition at line 338 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| parse_hex_rejects_a_non_hex_character_at_any_position | ) |
Definition at line 345 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| parse_hex_walking_ones | ) |
Definition at line 357 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| parse_hex_walking_zeroes | ) |
Definition at line 371 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| constexpr_construction | ) |
Definition at line 385 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| constexpr_constructor_throws_on_a_bad_length | ) |
Definition at line 394 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| constexpr_constructor_throws_on_a_bad_character | ) |
Definition at line 408 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BaseUintTest | , |
| constexpr_construction_agrees_with_parse_hex | ) |
Definition at line 420 of file base_uint.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| default_constructed_is_empty | ) |
Definition at line 63 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| zero_sized_construction_is_empty | ) |
Definition at line 72 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| alloc_grows_an_empty_buffer | ) |
Definition at line 80 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| sized_construction_reserves_without_filling | ) |
Definition at line 91 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| construction_copies_raw_memory | ) |
Definition at line 103 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| equality_compares_contents | ) |
Definition at line 113 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| copy_construction | ) |
Definition at line 125 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| copy_assignment | ) |
Definition at line 136 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| self_assignment_preserves_contents | ) |
Definition at line 156 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| move_construct_from_empty | ) |
Definition at line 178 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| move_construct_from_non_empty | ) |
Definition at line 188 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| move_assign_empty_to_empty | ) |
Definition at line 198 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| move_assign_non_empty_to_empty | ) |
Definition at line 210 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| move_assign_empty_to_non_empty | ) |
Definition at line 222 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| move_assign_non_empty_to_non_empty | ) |
Definition at line 234 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| construction_from_slice | ) |
Definition at line 251 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| assignment_from_slice | ) |
Definition at line 262 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| resize_allocates_and_clear_releases | ) |
Definition at line 287 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| fill_sets_every_byte | ) |
Definition at line 324 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| fill_overwrites_and_keeps_size | ) |
Definition at line 334 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | BufferTest | , |
| fill_on_empty_buffer_is_a_noop | ) |
Definition at line 345 of file Buffer.cpp.
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| construction | ) |
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| construction_from_zero | ) |
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| construction_from_an_unsigned_literal | ) |
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| conversion_from_the_same_unit | ) |
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| conversion_from_a_narrower_unit | ) |
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| assignment_from_raw_integers | ) |
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| assignment_from_units | ) |
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| multiplication_and_division | ) |
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| compound_addition_and_subtraction | ) |
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| increment_and_decrement | ) |
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| compound_multiplication_division_and_modulo | ) |
| xrpl::test::TEST_F | ( | FeeLevel64Test | , |
| truthiness_signum_and_to_string | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| construction | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| construction_from_zero | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| construction_from_a_floating_literal | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| conversion_from_the_same_unit | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| assignment_from_an_integral_unit | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| assignment_from_raw_numbers | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| assignment_from_units | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| multiplication_and_division | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| compound_addition_and_subtraction | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| increment_and_decrement | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| compound_multiplication_and_division | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| negation | ) |
| xrpl::test::TEST_F | ( | FeeLevelDoubleTest | , |
| truthiness_signum_and_to_string | ) |
| xrpl::test::TEST | ( | ByzantineFailureSimTest | , |
| DISABLED_byzantine_failure_sim | ) |
Definition at line 17 of file ByzantineFailureSim.cpp.
| xrpl::test::TEST | ( | CensorshipDetectorTest | , |
| censorship_detector | ) |
Definition at line 53 of file CensorshipDetector.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| should_close_ledger | ) |
Definition at line 193 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| check_consensus | ) |
Definition at line 222 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| standalone | ) |
Definition at line 291 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| peers_agree | ) |
Definition at line 315 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| slow_peers | ) |
Definition at line 352 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| close_time_disagree | ) |
Definition at line 507 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| wrong_lcl | ) |
Definition at line 572 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| consensus_close_time_rounding | ) |
Definition at line 743 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| fork | ) |
Definition at line 842 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| hub_network | ) |
Definition at line 898 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| preferred_by_branch | ) |
Definition at line 932 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| pause_for_laggards | ) |
Definition at line 1037 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | ConsensusTest | , |
| disputes | ) |
Definition at line 1115 of file tests/libxrpl/consensus/Consensus.cpp.
| xrpl::test::TEST | ( | DistributedValidatorsTest | , |
| DISABLED_distributed_validators | ) |
Definition at line 216 of file DistributedValidatorsSim.cpp.
| xrpl::test::TEST | ( | LedgerTimingTest | , |
| get_next_ledger_time_resolution | ) |
Definition at line 13 of file LedgerTiming.cpp.
| xrpl::test::TEST | ( | LedgerTimingTest | , |
| round_close_time | ) |
Definition at line 66 of file LedgerTiming.cpp.
| xrpl::test::TEST | ( | LedgerTimingTest | , |
| eff_close_time | ) |
Definition at line 85 of file LedgerTiming.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| insert_single_entry_by_itself | ) |
Definition at line 28 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| insert_suffix_of_existing_extending_tree | ) |
Definition at line 43 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| insert_uncommitted_of_existing_node | ) |
Definition at line 68 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| insert_suffix_uncommitted_of_existing_node | ) |
Definition at line 95 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| insert_suffix_uncommitted_with_existing_child | ) |
Definition at line 112 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| insert_multiple_counts | ) |
Definition at line 135 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| remove_not_in_trie | ) |
Definition at line 154 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| remove_in_trie_but_with_0_tip_support | ) |
Definition at line 166 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| remove_in_trie_with_multiple_tip_support | ) |
Definition at line 181 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| remove_in_trie_with_1_tip_support_no_children | ) |
Definition at line 205 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| remove_in_trie_with_1_tip_support_1_child | ) |
Definition at line 225 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| remove_in_trie_with_1_tip_support_multiple_children | ) |
Definition at line 246 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| remove_in_trie_with_1_tip_support_parent_compaction | ) |
Definition at line 264 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| empty | ) |
Definition at line 286 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| support | ) |
Definition at line 304 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_empty | ) |
Definition at line 348 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_genesis_support_is_not_empty | ) |
Definition at line 355 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_single_node_no_children | ) |
Definition at line 369 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_single_node_smaller_child_support | ) |
Definition at line 379 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_single_node_larger_child | ) |
Definition at line 393 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_single_node_smaller_children_support | ) |
Definition at line 407 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_single_node_larger_children | ) |
Definition at line 426 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_tie_breaker_by_id | ) |
Definition at line 445 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_tie_breaker_not_needed | ) |
Definition at line 464 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_single_node_larger_grand_child | ) |
Definition at line 487 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_too_much_uncommitted_support_from_competing_branches | ) |
Definition at line 502 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| preferred_changing_largestseq_perspective_changes_preferred_branch | ) |
Build the tree below with initial tip support annotated A / \ B(1) C(1) / | | H D F(1) | E(2) | G
One of E advancing to G doesn't change anything A / \ B(1) C(1) / | | H D F(1) | E(1) | G(1)
C advancing to H does advance the seq 3 preferred ledger A / \ B(1) C / | | H(1)D F(1) | E(1) | G(1)
F advancing to E also moves the preferred ledger forward A / \ B(1) C / | | H(1)D F | E(2) | G(1)
Definition at line 529 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| root_related | ) |
Definition at line 631 of file LedgerTrie.cpp.
| xrpl::test::TEST_F | ( | LedgerTrieTest | , |
| stress | ) |
Definition at line 658 of file LedgerTrie.cpp.
| xrpl::test::TEST | ( | ScaleFreeSimTest | , |
| DISABLED_scale_free_sim | ) |
Definition at line 19 of file ScaleFreeSim.cpp.
| xrpl::test::TEST | ( | BasicNetworkTest | , |
| network | ) |
Definition at line 64 of file BasicNetwork.cpp.
| xrpl::test::TEST | ( | BasicNetworkTest | , |
| disconnect | ) |
Definition at line 100 of file BasicNetwork.cpp.
| xrpl::test::TEST | ( | DigraphTest | , |
| digraph | ) |
Definition at line 12 of file Digraph.cpp.
| xrpl::test::TEST | ( | HistogramTest | , |
| histogram | ) |
Definition at line 7 of file Histogram.cpp.
| xrpl::test::TEST | ( | SchedulerTest | , |
| scheduler | ) |
Definition at line 9 of file Scheduler.cpp.
| FeatureBitset xrpl::test::allFeatures | ( | ) |
Returns all testable amendments.
Definition at line 41 of file TxTest.cpp.
| XRPAmount xrpl::test::XRP | ( | T | xrp | ) |
| XRPAmount xrpl::test::XRP | ( | Number const & | xrp | ) |
|
constexpr |
Convert AccountSet flag (asf) to LedgerState flag (lsf).
| asf | The AccountSet flag value. |
| std::runtime_error | if the flag is not supported. |
Supported flags: asfRequireDest, asfRequireAuth, asfDisallowXRP, asfDisableMaster, asfNoFreeze, asfGlobalFreeze, asfDefaultRipple, asfDepositAuth, asfAllowTrustLineClawback, asfDisallowIncomingCheck, asfDisallowIncomingNFTokenOffer, asfDisallowIncomingPayChan, asfDisallowIncomingTrustline, asfAllowTrustLineLocking
| xrpl::test::TEST | ( | AccountRootEntryTests | , |
| constructors | ) |
Definition at line 11 of file AccountRootEntry.cpp.
| xrpl::test::TEST | ( | AmendmentsEntryTests | , |
| constructors | ) |
Definition at line 10 of file AmendmentsEntry.cpp.
| xrpl::test::TEST | ( | AMMEntryTests | , |
| constructors | ) |
Definition at line 13 of file AMMEntry.cpp.
| xrpl::test::TEST | ( | CheckEntryTests | , |
| constructors | ) |
Definition at line 11 of file CheckEntry.cpp.
| xrpl::test::TEST | ( | CredentialEntryTests | , |
| constructors | ) |
Definition at line 14 of file CredentialEntry.cpp.
| xrpl::test::TEST | ( | DelegateEntryTests | , |
| constructors | ) |
Definition at line 11 of file DelegateEntry.cpp.
| xrpl::test::TEST | ( | DepositPreauthEntryTests | , |
| constructors | ) |
Definition at line 17 of file DepositPreauthEntry.cpp.
| xrpl::test::TEST | ( | DIDEntryTests | , |
| constructors | ) |
Definition at line 10 of file DIDEntry.cpp.
| xrpl::test::TEST | ( | DirectoryNodeEntryTests | , |
| constructors | ) |
Definition at line 13 of file DirectoryNodeEntry.cpp.
| void xrpl::test::expectKeylet | ( | EntryTestEnv & | e, |
| Keylet const & | expected, | ||
| std::string const & | what, | ||
| Args const &... | args ) |
Assert that both flavors of Entry built from args resolve the ledger object that expected names.
The entry classes are near identical, so the defect they invite is a copy-paste one: a constructor that reaches the wrong keylet:: function, or that transposes two same-typed arguments. Comparing against an independently spelled-out keylet at the call site catches exactly that.
what names the overload under test, so a failure says which one broke.
Definition at line 96 of file EntryTestHelpers.h.
| xrpl::test::TEST | ( | EscrowEntryTests | , |
| constructors | ) |
Definition at line 11 of file EscrowEntry.cpp.
| xrpl::test::TEST_F | ( | ExtensionFees | , |
| genesis_writes_the_configured_values | ) |
Definition at line 97 of file ExtensionFees.cpp.
| xrpl::test::TEST_F | ( | ExtensionFees | , |
| absent_fields_resolve_to_the_protocol_constants | ) |
Definition at line 108 of file ExtensionFees.cpp.
| xrpl::test::TEST_F | ( | ExtensionFees | , |
| present_fields_are_taken_from_the_ledger | ) |
Definition at line 130 of file ExtensionFees.cpp.
| xrpl::test::TEST_F | ( | ExtensionFees | , |
| an_explicit_zero_is_not_treated_as_absent | ) |
Definition at line 150 of file ExtensionFees.cpp.
| xrpl::test::TEST_F | ( | ExtensionFees | , |
| gas_settings_before_the_amendment_fail_to_load | ) |
Definition at line 164 of file ExtensionFees.cpp.
| xrpl::test::TEST_F | ( | ExtensionFees | , |
| gas_settings_after_the_amendment_load | ) |
Definition at line 175 of file ExtensionFees.cpp.
| xrpl::test::TEST | ( | FeeSettingsEntryTests | , |
| constructors | ) |
Definition at line 10 of file FeeSettingsEntry.cpp.
| xrpl::test::TEST | ( | LedgerHashesEntryTests | , |
| constructors | ) |
Definition at line 10 of file LedgerHashesEntry.cpp.
| xrpl::test::TEST | ( | LoanBrokerEntryTests | , |
| constructors | ) |
Definition at line 11 of file LoanBrokerEntry.cpp.
| xrpl::test::TEST | ( | LoanEntryTests | , |
| constructors | ) |
Definition at line 12 of file LoanEntry.cpp.
| xrpl::test::TEST | ( | MPTokenEntryTests | , |
| constructors | ) |
Definition at line 11 of file MPTokenEntry.cpp.
| xrpl::test::TEST | ( | MPTokenIssuanceEntryTests | , |
| constructors | ) |
Definition at line 13 of file MPTokenIssuanceEntry.cpp.
| xrpl::test::TEST | ( | NegativeUNLEntryTests | , |
| constructors | ) |
Definition at line 10 of file NegativeUNLEntry.cpp.
| xrpl::test::TEST | ( | NFTokenOfferEntryTests | , |
| constructors | ) |
Definition at line 11 of file NFTokenOfferEntry.cpp.
| xrpl::test::TEST | ( | NFTokenPageEntryTests | , |
| constructors | ) |
Definition at line 11 of file NFTokenPageEntry.cpp.
| xrpl::test::TEST | ( | OfferEntryTests | , |
| constructors | ) |
Definition at line 11 of file OfferEntry.cpp.
| xrpl::test::TEST | ( | OracleEntryTests | , |
| constructors | ) |
Definition at line 12 of file OracleEntry.cpp.
| xrpl::test::TEST | ( | PayChannelEntryTests | , |
| constructors | ) |
Definition at line 12 of file PayChannelEntry.cpp.
| xrpl::test::TEST | ( | PermissionedDomainEntryTests | , |
| constructors | ) |
Definition at line 11 of file PermissionedDomainEntry.cpp.
| xrpl::test::TEST | ( | RippleStateEntryTests | , |
| constructors | ) |
Definition at line 13 of file RippleStateEntry.cpp.
| xrpl::test::TEST | ( | SignerListEntryTests | , |
| constructors | ) |
Definition at line 10 of file SignerListEntry.cpp.
| xrpl::test::TEST_F | ( | SLEBaseTests | , |
| read_only | ) |
Definition at line 161 of file SLEBase.cpp.
| xrpl::test::TEST_F | ( | SLEBaseTests | , |
| adopt_sle | ) |
Definition at line 180 of file SLEBase.cpp.
| xrpl::test::TEST_F | ( | SLEBaseTests | , |
| writable_accessors | ) |
Definition at line 213 of file SLEBase.cpp.
| xrpl::test::TEST_F | ( | SLEBaseTests | , |
| apply_view_context_ctor | ) |
Definition at line 248 of file SLEBase.cpp.
| xrpl::test::TEST_F | ( | SLEBaseTests | , |
| writable_lifecycle | ) |
Definition at line 272 of file SLEBase.cpp.
| xrpl::test::TEST_F | ( | SLEBaseTests | , |
| conversion | ) |
Definition at line 330 of file SLEBase.cpp.
| xrpl::test::TEST_F | ( | SLEBaseTests | , |
| resolve_entry_peeks | ) |
Definition at line 348 of file SLEBase.cpp.
| xrpl::test::TEST_F | ( | SLEBaseTests | , |
| throws_on_missing_entry | ) |
Definition at line 380 of file SLEBase.cpp.
| xrpl::test::TEST_F | ( | SLEBaseTests | , |
| throws_on_missing_writable_entry | ) |
Definition at line 401 of file SLEBase.cpp.
| xrpl::test::TEST | ( | SponsorshipEntryTests | , |
| constructors | ) |
Definition at line 11 of file SponsorshipEntry.cpp.
| xrpl::test::TEST | ( | TicketEntryTests | , |
| constructors | ) |
Definition at line 11 of file TicketEntry.cpp.
| xrpl::test::TEST | ( | VaultEntryTests | , |
| constructors | ) |
Definition at line 11 of file VaultEntry.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| null_account_set | ) |
Definition at line 46 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| most_flags | ) |
Definition at line 63 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| set_and_reset_account_txn_id | ) |
Definition at line 178 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| set_no_freeze | ) |
Definition at line 209 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| domain | ) |
Definition at line 252 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| message_key | ) |
Definition at line 320 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| wallet_id | ) |
Definition at line 361 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| email_hash | ) |
Definition at line 394 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| transfer_rate | ) |
Definition at line 425 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| bad_inputs | ) |
Definition at line 476 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| require_auth_with_dir | ) |
Definition at line 556 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| ticket | ) |
Definition at line 604 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| bad_signing_key | ) |
Definition at line 663 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST | ( | AccountSet | , |
| gateway | ) |
Definition at line 687 of file tests/libxrpl/tx/AccountSet.cpp.
| xrpl::test::TEST_F | ( | ApplyContextTests | , |
| discard_drops_pending_state_and_keeps_the_context_usable | ) |
Definition at line 64 of file tests/libxrpl/tx/ApplyContext.cpp.
| xrpl::test::TEST | ( | ProposalHelpers | , |
| plain_payment_is_valid | ) |
Definition at line 46 of file tests/libxrpl/tx/ProposalHelpers.cpp.
| xrpl::test::TEST | ( | ProposalHelpers | , |
| typeless_object_is_rejected | ) |
Definition at line 53 of file tests/libxrpl/tx/ProposalHelpers.cpp.
| xrpl::test::TEST | ( | ProposalHelpers | , |
| nested_proposal_is_rejected | ) |
Definition at line 62 of file tests/libxrpl/tx/ProposalHelpers.cpp.
| xrpl::test::TEST | ( | ProposalHelpers | , |
| pseudo_tx_is_rejected | ) |
Definition at line 69 of file tests/libxrpl/tx/ProposalHelpers.cpp.
| xrpl::test::TEST | ( | ProposalHelpers | , |
| inner_batch_flag_is_rejected | ) |
Definition at line 80 of file tests/libxrpl/tx/ProposalHelpers.cpp.
| xrpl::test::TEST | ( | ProposalHelpers | , |
| other_flags_are_accepted | ) |
Definition at line 89 of file tests/libxrpl/tx/ProposalHelpers.cpp.
| xrpl::test::TEST | ( | ProposalHelpers | , |
| batch_with_plain_inner_is_valid | ) |
Definition at line 98 of file tests/libxrpl/tx/ProposalHelpers.cpp.
| xrpl::test::TEST | ( | ProposalHelpers | , |
| batch_with_nested_proposal_inner_is_rejected | ) |
Definition at line 104 of file tests/libxrpl/tx/ProposalHelpers.cpp.
| xrpl::test::TEST | ( | ProposalHelpers | , |
| batch_with_pseudo_inner_is_rejected | ) |
Definition at line 111 of file tests/libxrpl/tx/ProposalHelpers.cpp.
| xrpl::test::TEST | ( | ProposalHelpers | , |
| batch_without_raw_transactions_is_valid | ) |
Definition at line 119 of file tests/libxrpl/tx/ProposalHelpers.cpp.
| auto xrpl::test::gDefaultPreVote = [](NegativeUNLVote& vote) {} |
Definition at line 693 of file NegativeUNL_test.cpp.
| std::atomic< bool > xrpl::test::gEnvUseIPv4 {false} |
Definition at line 18 of file envconfig.cpp.
|
staticconstexpr |
Definition at line 61 of file reduce_relay_test.cpp.
|
staticconstexpr |
Definition at line 62 of file reduce_relay_test.cpp.
|
staticconstexpr |
Definition at line 63 of file reduce_relay_test.cpp.
|
static |
Definition at line 47 of file AccountObjects_test.cpp.
| std::vector<std::pair<json::StaticString, FieldType> > xrpl::test::gMappings |
Definition at line 85 of file LedgerEntry_test.cpp.
|
static |
Definition at line 74 of file RPCCall_test.cpp.
|
constexpr |
Convert XRP to drops (integral types).
| xrp | The amount in XRP. |