xrpld
Loading...
Searching...
No Matches
xrpl::test Namespace Reference

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
 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 &currency)
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).

Typedef Documentation

◆ MessageSPtr

◆ LinkSPtr

Definition at line 54 of file reduce_relay_test.cpp.

◆ PeerSPtr

Definition at line 55 of file reduce_relay_test.cpp.

◆ PeerWPtr

Definition at line 56 of file reduce_relay_test.cpp.

◆ SquelchCB

Definition at line 57 of file reduce_relay_test.cpp.

◆ UnsquelchCB

Definition at line 58 of file reduce_relay_test.cpp.

◆ LinkIterCB

Definition at line 59 of file reduce_relay_test.cpp.

◆ SocketType

using xrpl::test::SocketType = boost::beast::tcp_stream

Definition at line 43 of file Server_test.cpp.

◆ StreamType

using xrpl::test::StreamType = boost::beast::ssl_stream<SocketType>

Definition at line 44 of file Server_test.cpp.

◆ BaseUintDeathTest

Definition at line 71 of file base_uint.cpp.

Enumeration Type Documentation

◆ InboundLedgersBehavior

Enumerator
Good 
DropAll 

Definition at line 138 of file LedgerReplay_test.cpp.

◆ PeerFeature

enum class xrpl::test::PeerFeature
strong
Enumerator
LedgerReplayEnabled 
None 

Definition at line 257 of file LedgerReplay_test.cpp.

◆ PeerSetBehavior

enum class xrpl::test::PeerSetBehavior
strong
Enumerator
Good 
DropAlternate 
DropAll 
DropSkipListReply 
DropLedgerDeltaReply 
Repeat 

Definition at line 295 of file LedgerReplay_test.cpp.

◆ TaskStatus

enum class xrpl::test::TaskStatus
strong
Enumerator
Failed 
Completed 
NotDone 
NotExist 

Definition at line 527 of file LedgerReplay_test.cpp.

◆ TrustFlag

enum class xrpl::test::TrustFlag
strong
Enumerator
Freeze 
Auth 
Noripple 

Definition at line 53 of file PayStrand_test.cpp.

◆ FieldType

enum class xrpl::test::FieldType
strong
Enumerator
AccountField 
BlobField 
ArrayField 
CurrencyField 
HashField 
HashOrObjectField 
FixedHashField 
AssetField 
ObjectField 
StringField 
TwoAccountArrayField 
UInt32Field 
UInt64Field 

Definition at line 69 of file LedgerEntry_test.cpp.

◆ Severity

enum class beast::Severity : std::uint8_t
strong

Severity level / threshold of a Journal message.

Definition at line 16 of file Journal.h.

Function Documentation

◆ equalHelper()

template<class TIn, class TOut, class TDerived>
bool xrpl::test::equalHelper ( Step const & step,
xrpl::Book const & book )
static

Definition at line 1697 of file BookStep.cpp.

◆ bookStepEqual()

bool xrpl::test::bookStepEqual ( Step const & step,
xrpl::Book const & book )

Definition at line 1705 of file BookStep.cpp.

◆ directStepEqual()

bool xrpl::test::directStepEqual ( Step const & step,
AccountID const & src,
AccountID const & dst,
Currency const & currency )

Definition at line 913 of file DirectStep.cpp.

◆ mptEndpointStepEqual()

bool xrpl::test::mptEndpointStepEqual ( Step const & step,
AccountID const & src,
AccountID const & dst,
MPTID const & mptid )

Definition at line 977 of file MPTEndpointStep.cpp.

◆ xrpEndpointStepEqual()

bool xrpl::test::xrpEndpointStepEqual ( Step const & step,
AccountID const & acc )

Definition at line 381 of file XRPEndpointStep.cpp.

◆ BEAST_DEFINE_TESTSUITE_PRIO() [1/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( AccountDelete ,
app ,
xrpl ,
2  )

◆ packetFor()

std::shared_ptr< protocol::TMLedgerData > xrpl::test::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 )
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.

Parameters
chainThe chain the nodes came from, which names the reply by default.
dataThe nodes to include, each with its claimed position.
typeThe reply type, which selects which map the receiver applies it to.
ledgerHashThe 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.
ledgerSeqThe sequence to name in the reply.
Returns
The reply packet.

Definition at line 287 of file AcquireTestHelpers.h.

◆ waitFor()

bool xrpl::test::waitFor ( std::function< bool()> const & condition,
std::chrono::steady_clock::duration deadline = std::chrono::seconds{10} )
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.

Parameters
conditionWhat to wait for.
deadlineThe longest to wait.
Returns
Whether the condition held before the deadline.

Definition at line 332 of file AcquireTestHelpers.h.

◆ tallyIs()

bool xrpl::test::tallyIs ( SHAMapAddNode const & san,
int good,
int bad,
int duplicate )
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.

Parameters
sanThe verdict to check.
goodHow many nodes the batch should have hooked in.
badHow many it should have rejected.
duplicateHow many it should have already held.
Returns
Whether the verdict matches.

Definition at line 360 of file AcquireTestHelpers.h.

◆ BEAST_DEFINE_TESTSUITE_PRIO() [2/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( AMM ,
app ,
xrpl ,
1  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL() [1/9]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL ( AMMCalc ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [1/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( AMMClawback ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [2/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( AMMClawbackMPT ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [3/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( AMMExtended ,
app ,
xrpl ,
1  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [4/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( AMMExtendedMPT ,
app ,
xrpl ,
1  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [5/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( AMMMPT ,
app ,
xrpl ,
1  )

◆ BEAST_DEFINE_TESTSUITE() [3/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Batch ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [4/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Credentials ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL_PRIO() [1/7]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO ( CrossingLimits ,
app ,
xrpl ,
10  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL_PRIO() [2/7]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO ( CrossingLimitsMPT ,
tx ,
xrpl ,
10  )

◆ BEAST_DEFINE_TESTSUITE() [5/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Delegate ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [6/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( DeliverMin ,
app ,
xrpl  )

◆ reserve() [1/2]

XRPAmount xrpl::test::reserve ( jtx::Env const & env,
std::uint32_t count )
static

Definition at line 55 of file DepositAuth_test.cpp.

◆ hasDepositAuth()

bool xrpl::test::hasDepositAuth ( jtx::Env const & env,
jtx::Account const & acct )
static

Definition at line 62 of file DepositAuth_test.cpp.

◆ ledgerEntryDepositPreauth()

json::Value xrpl::test::ledgerEntryDepositPreauth ( jtx::Env & env,
jtx::Account const & acc,
std::vector< jtx::deposit::AuthorizeCredentials > const & auth )
static

Definition at line 368 of file DepositAuth_test.cpp.

◆ BEAST_DEFINE_TESTSUITE() [7/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( DepositAuth ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [8/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( DepositPreauth ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [9/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( DID ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL_PRIO() [3/7]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO ( DNS ,
app ,
xrpl ,
20  )

◆ BEAST_DEFINE_TESTSUITE() [10/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Escrow ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [11/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( EscrowSmart ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [12/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( EscrowToken ,
app ,
xrpl  )

◆ createFeeTx()

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.

◆ createFeeTxMissingRequiredFields()

STTx xrpl::test::createFeeTxMissingRequiredFields ( std::uint32_t seq)

Definition at line 87 of file FeeVote_test.cpp.

◆ createFeeTxWithLegacyFields()

STTx xrpl::test::createFeeTxWithLegacyFields ( std::uint32_t seq)

Definition at line 99 of file FeeVote_test.cpp.

◆ applyFeeAndTestResult()

TER xrpl::test::applyFeeAndTestResult ( jtx::Env & env,
OpenView & view,
STTx const & tx )

Definition at line 117 of file FeeVote_test.cpp.

◆ verifyFeeObject()

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.

◆ getTxs()

std::vector< STTx > xrpl::test::getTxs ( std::shared_ptr< SHAMap > const & txSet)

Definition at line 171 of file FeeVote_test.cpp.

◆ BEAST_DEFINE_TESTSUITE() [13/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( FeeVote ,
app ,
xrpl  )

◆ getNoRippleFlag()

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.

◆ BEAST_DEFINE_TESTSUITE_PRIO() [6/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( Flow ,
app ,
xrpl ,
2  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL_PRIO() [4/7]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO ( Flow_manual ,
app ,
xrpl ,
4  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [7/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( FlowMPT ,
app ,
xrpl ,
2  )

◆ makeTestGRPCCall()

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.

◆ BEAST_DEFINE_TESTSUITE() [14/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( GRPCServerTLS ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [15/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( HashRouter ,
app ,
xrpl  )

◆ mutableLedger()

std::shared_ptr< Ledger > xrpl::test::mutableLedger ( InboundLedger const & acquire)
staticnodiscard

The ledger an acquisition is assembling, as a pointer that can modify it.

Parameters
acquireThe acquisition to read from.
Returns
The ledger, or nullptr if there is none to report.

Definition at line 104 of file InboundLedger_test.cpp.

◆ BEAST_DEFINE_TESTSUITE() [16/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( InboundLedger ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [17/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( InvariantsAMM ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [18/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( InvariantsEscrowNFT ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [19/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( InvariantsMisc ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [20/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( InvariantsMPT ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [21/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( InvariantsPermissioned ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [22/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( InvariantsPseudoAccount ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [23/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( InvariantsTransactionProposal ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [24/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( InvariantsTrustLine ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [25/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( InvariantsVault ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [26/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LedgerHistory ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [27/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LedgerMaster ,
app ,
xrpl  )

◆ logAll()

void xrpl::test::logAll ( LedgerServer & server,
LedgerReplayClient & client,
beast::Severity level = Severity::Trace )

Definition at line 784 of file LedgerReplay_test.cpp.

◆ BEAST_DEFINE_TESTSUITE() [28/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LedgerReplay ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [8/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( LedgerReplayer ,
app ,
xrpl ,
1  )

◆ BEAST_DEFINE_TESTSUITE() [29/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LedgerReplayerTimeout ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL() [2/9]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL ( LedgerReplayerLong ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [30/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LendingBatch ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [31/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LendingHelpers ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [32/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanBroker ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [33/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanCashBasis ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [34/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanCoverFreezeAuth ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [35/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanInvariants ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [36/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanLifecycle ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [37/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanMisc ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL() [3/9]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL ( LoanBatch ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL() [4/9]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL ( LoanArbitrary ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [38/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanPay ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [39/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanPermissionedDomain ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [40/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanRounding ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [41/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanSecurity ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [42/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanSet ,
tx ,
xrpl  )

◆ checkFixedPrecisionVaultAssetsDeployed()

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.

◆ BEAST_DEFINE_TESTSUITE() [43/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LoanValidation ,
tx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [44/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LPTokenTransfer ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [45/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Manifest ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [9/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( MPToken ,
app ,
xrpl ,
2  )

◆ BEAST_DEFINE_TESTSUITE() [46/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( MultiSign ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [47/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( NetworkID ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [48/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( NetworkOPs ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [10/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( OfferBaseUtil ,
app ,
xrpl ,
2  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [11/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( OfferMPT ,
tx ,
xrpl ,
2  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL_PRIO() [5/7]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO ( PlumpBook ,
app ,
xrpl ,
5  )

◆ BEAST_DEFINE_TESTSUITE() [49/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( ThinBook ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL_PRIO() [6/7]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO ( OversizeMeta ,
app ,
xrpl ,
3  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL_PRIO() [7/7]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL_PRIO ( FindOversizeCross ,
app ,
xrpl ,
50  )

◆ rpf()

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.

◆ BEAST_DEFINE_TESTSUITE() [50/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Path ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [51/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( PathMPT ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [52/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( PayChan ,
app ,
xrpl  )

◆ trustFlag()

std::uint32_t xrpl::test::trustFlag ( TrustFlag f,
bool useHigh )

Definition at line 56 of file PayStrand_test.cpp.

◆ getTrustFlag()

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.

◆ BEAST_DEFINE_TESTSUITE() [53/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( PayStrand ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [54/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( PayStrandMPT ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [55/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( PermissionedDEX ,
app ,
xrpl  )

◆ exceptionExpected()

std::string xrpl::test::exceptionExpected ( Env & env,
json::Value const & jv )
static

Definition at line 41 of file PermissionedDomains_test.cpp.

◆ BEAST_DEFINE_TESTSUITE() [56/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( PermissionedDomains ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [57/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( PseudoTx ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [58/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( RCLValidations ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [12/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( ReducedOffer ,
app ,
xrpl ,
2  )

◆ BEAST_DEFINE_TESTSUITE() [59/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Regression ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [60/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( SetAuth ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [61/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( SHAMapStore ,
app ,
xrpl  )

◆ accountReserve()

STAmount xrpl::test::accountReserve ( jtx::Env const & env,
std::uint32_t count = 1 )
static

Definition at line 76 of file Sponsor_test.cpp.

◆ reserve() [2/2]

STAmount xrpl::test::reserve ( jtx::Env const & env,
std::uint32_t count )
static

Definition at line 82 of file Sponsor_test.cpp.

◆ adjustAccountXRPBalance()

void xrpl::test::adjustAccountXRPBalance ( jtx::Env & env,
jtx::Account const & account,
STAmount const & balanceTo )
static

Definition at line 88 of file Sponsor_test.cpp.

◆ BEAST_DEFINE_TESTSUITE() [62/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Sponsor ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [63/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( SponsorTxCosigning ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [64/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( SponsorTxPrefunded ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [13/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( TheoreticalQuality ,
app ,
xrpl ,
3  )

◆ BEAST_DEFINE_TESTSUITE() [65/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Transaction_ordering ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [66/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( TransactionAcquire ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [67/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( TransactionProposalCancel ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [68/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( TransactionProposalCreate ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [69/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( TransactionProposalReservedTicket ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [70/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( TrustSet ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [14/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( TxQPosNegFlows ,
app ,
xrpl ,
1  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [15/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( TxQMetaInfo ,
app ,
xrpl ,
1  )

◆ BEAST_DEFINE_TESTSUITE() [71/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( ValidatorKeys ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [72/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( ValidatorList ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [16/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( ValidatorSite ,
app ,
xrpl ,
2  )

◆ BEAST_DEFINE_TESTSUITE() [73/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( VaultInvariantPrecision ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [74/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( VaultTransactorPrecision ,
app ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL() [5/9]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL ( DetectCrash ,
basics ,
beast  )

◆ BEAST_DEFINE_TESTSUITE() [75/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( CurrentThreadName ,
beast ,
beast  )

◆ negUnlSizeTest()

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.

Parameters
lthe ledger
sizethe expected negative UNL size
hasToDisableif expect ToDisable in ledger
hasToReEnableif expect ToDisable in ledger
Returns
true if meet all three expectation

Definition at line 1926 of file NegativeUNL_test.cpp.

◆ applyAndTestResult()

bool xrpl::test::applyAndTestResult ( jtx::Env & env,
OpenView & view,
STTx const & tx,
bool pass )

Try to apply a ttUNL_MODIFY Tx, and test the apply result.

Parameters
envthe test environment
viewthe OpenView of the ledger
txthe ttUNL_MODIFY Tx
passif the Tx should be applied successfully
Returns
true if meet the expectation of apply result

Definition at line 1940 of file NegativeUNL_test.cpp.

◆ verifyPubKeyAndSeq()

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.

Parameters
lthe ledger
nUnlLedgerSeqthe expected PublicKeys and ledger Sequences
Note
nUnlLedgerSeq is copied so that it can be modified.
Returns
true if meet the expectation

Definition at line 1952 of file NegativeUNL_test.cpp.

◆ countTx()

std::size_t xrpl::test::countTx ( std::shared_ptr< SHAMap > const & txSet)

Count the number of Tx in a TxSet.

Parameters
txSetthe TxSet
Returns
the number of Tx

Definition at line 1988 of file NegativeUNL_test.cpp.

◆ createPublicKeys()

std::vector< PublicKey > xrpl::test::createPublicKeys ( std::size_t n)

Create fake public keys.

Parameters
nthe number of public keys
Returns
a vector of public keys created

Definition at line 1999 of file NegativeUNL_test.cpp.

◆ createTx()

STTx xrpl::test::createTx ( bool disabling,
LedgerIndex seq,
PublicKey const & txKey )

Create ttUNL_MODIFY Tx.

Parameters
disablingdisabling or re-enabling a validator
seqcurrent ledger seq
txKeythe public key of the validator
Returns
the ttUNL_MODIFY Tx

Definition at line 2015 of file NegativeUNL_test.cpp.

◆ voteAndCheck()

template<typename PreVote = decltype(gDefaultPreVote)>
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.

Template Parameters
PreVotea function to be called before vote
Parameters
historythe ledger history
myIdthe voting validator
expectthe number of ttUNL_MODIFY Tx expected
prethe PreVote function
Returns
true if the number of ttUNL_MODIFY Txes created meet expectation

Definition at line 707 of file NegativeUNL_test.cpp.

◆ BEAST_DEFINE_TESTSUITE() [76/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( NegativeUNL ,
consensus ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [77/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( NegativeUNLVoteInternal ,
consensus ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL() [6/9]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL ( NegativeUNLVoteScoreTable ,
consensus ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [17/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( NegativeUNLVoteGoodScore ,
consensus ,
xrpl ,
1  )

◆ BEAST_DEFINE_TESTSUITE() [78/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( NegativeUNLVoteOffline ,
consensus ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [79/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( NegativeUNLVoteMaxListed ,
consensus ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [18/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( NegativeUNLVoteRetiredValidator ,
consensus ,
xrpl ,
1  )

◆ BEAST_DEFINE_TESTSUITE() [80/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( NegativeUNLVoteNewValidator ,
consensus ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [81/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( NegativeUNLVoteFilterValidations ,
consensus ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [82/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( ClosureCounter ,
core ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [83/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Coroutine ,
core ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [84/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( JobQueue ,
core ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [85/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Env ,
jtx ,
xrpl  )

◆ getEnvLocalhostAddr()

char const * xrpl::test::getEnvLocalhostAddr ( )

Definition at line 16 of file envconfig.h.

◆ setupConfigForUnitTests()

void xrpl::test::setupConfigForUnitTests ( Config & config)
extern

initializes a config object for use with jtx::Env

Parameters
configthe configuration object to be initialized

Definition at line 21 of file envconfig.cpp.

◆ makeJSONRPCClient()

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.

◆ makeWSClient()

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.

◆ countOffers() [1/2]

std::size_t xrpl::test::countOffers ( jtx::Env const & env,
jtx::Account const & account,
Asset const & takerPays,
Asset const & takerGets )

Count offer.

Definition at line 25 of file PathSet.h.

◆ countOffers() [2/2]

std::size_t xrpl::test::countOffers ( jtx::Env const & env,
jtx::Account const & account,
STAmount const & takerPays,
STAmount const & takerGets )

Definition at line 41 of file PathSet.h.

◆ isOffer() [1/2]

bool xrpl::test::isOffer ( jtx::Env const & env,
jtx::Account const & account,
STAmount const & takerPays,
STAmount const & takerGets )

An offer exists.

Definition at line 60 of file PathSet.h.

◆ isOffer() [2/2]

bool xrpl::test::isOffer ( jtx::Env const & env,
jtx::Account const & account,
Asset const & takerPays,
Asset const & takerGets )

An offer exists.

Definition at line 73 of file PathSet.h.

◆ makeTrustedPublisherServer()

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.

◆ BEAST_DEFINE_TESTSUITE() [86/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( WSClient ,
jtx ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [19/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( Directory ,
ledger ,
xrpl ,
1  )

◆ BEAST_DEFINE_TESTSUITE() [87/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( PaymentSandbox ,
ledger ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [88/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( PendingSaves ,
ledger ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [89/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( SkipList ,
ledger ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [90/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( View ,
ledger ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [91/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( GetAmendments ,
ledger ,
xrpl  )

◆ makeCapturePeer()

template<class PeerType = CapturePeer>
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.

Template Parameters
PeerTypeThe peer class to build; must derive from CapturePeer and inherit its constructor.
Parameters
envThe environment owning the overlay.
keyThe peer's node public key, or unseated for a fresh random one.
requestThe handshake request. PeerImp reads its X-Protocol-Ctl header in the constructor to negotiate features.
Returns
The peer, already registered with the overlay. Throws if the peer finder refused a slot.

Definition at line 209 of file CapturePeer.h.

◆ ledgerHash()

UInt256 xrpl::test::ledgerHash ( LedgerHeader const & info)
static

Definition at line 58 of file compression_test.cpp.

◆ BEAST_DEFINE_TESTSUITE_MANUAL() [7/9]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL ( compression ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [92/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( handshake ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [93/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( OverlayLimit ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [94/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( ProtocolMessage ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [95/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( reduce_relay ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_MANUAL() [8/9]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL ( reduce_relay_simulate ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [96/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( TMGetLedger ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [97/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( TMGetObjectByHash ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [98/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( TMTransaction ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [99/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( TMTransactions ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [100/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( traffic_attribution ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [101/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( traffic_count ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [102/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( tx_reduce_relay ,
overlay ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [103/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( MultiApiJson ,
protocol ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [104/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( STIssue ,
protocol ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [105/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( AccountInfo ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [106/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( AccountObjects ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [107/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( AccountOffers ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [108/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( AccountTx ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [109/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( AMMInfo ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE_PRIO() [20/20]

xrpl::test::BEAST_DEFINE_TESTSUITE_PRIO ( Book ,
rpc ,
xrpl ,
1  )

◆ BEAST_DEFINE_TESTSUITE() [110/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( BookChanges ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [111/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( DeliveredAmount ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [112/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( DepositAuthorized ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [113/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( GatewayBalances ,
rpc ,
xrpl  )

◆ operator<<()

std::ostream & xrpl::test::operator<< ( std::ostream & os,
std::chrono::nanoseconds ns )

Definition at line 29 of file Handler_test.cpp.

◆ BEAST_DEFINE_TESTSUITE_MANUAL() [9/9]

xrpl::test::BEAST_DEFINE_TESTSUITE_MANUAL ( Handler ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [114/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( HandlerLookup ,
rpc ,
xrpl  )

◆ getFieldType()

FieldType xrpl::test::getFieldType ( json::StaticString fieldName)

Definition at line 106 of file LedgerEntry_test.cpp.

◆ getTypeName()

std::string xrpl::test::getTypeName ( FieldType typeID)

Definition at line 119 of file LedgerEntry_test.cpp.

◆ BEAST_DEFINE_TESTSUITE() [115/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LedgerEntry ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [116/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( LedgerRPC ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [117/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( ManifestRPC ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [118/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( NoRipple ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [119/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( RobustTransaction ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [120/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Roles ,
rpc ,
xrpl  )

◆ updateAPIVersionString()

std::string xrpl::test::updateAPIVersionString ( char const *const req,
unsigned apiVersion )

Definition at line 6621 of file RPCCall_test.cpp.

◆ makeNetworkConfig()

std::unique_ptr< Config > xrpl::test::makeNetworkConfig ( uint32_t networkID)

Definition at line 6631 of file RPCCall_test.cpp.

◆ BEAST_DEFINE_TESTSUITE() [121/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( RPCCall ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [122/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( RPCHelpers ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [123/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( RPCOverload ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [124/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( ServerDefinitions ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [125/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( ServerInfo ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [126/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Simulate ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [127/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Submit ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [128/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Subscribe ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [129/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( ValidatorInfo ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [130/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( ValidatorRPC ,
rpc ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [131/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( Server ,
server ,
xrpl  )

◆ BEAST_DEFINE_TESTSUITE() [132/132]

xrpl::test::BEAST_DEFINE_TESTSUITE ( ServerStatus ,
server ,
xrpl  )

◆ equal()

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.

◆ TEST_F() [1/112]

xrpl::test::TEST_F ( BaseUintDeathTest ,
from_raw_size_mismatch  )

Definition at line 73 of file base_uint.cpp.

◆ TEST_F() [2/112]

xrpl::test::TEST_F ( BaseUintTest ,
comparisons  )

Definition at line 138 of file base_uint.cpp.

◆ TEST_F() [3/112]

xrpl::test::TEST_F ( BaseUintTest ,
from_raw  )

Definition at line 205 of file base_uint.cpp.

◆ TEST_F() [4/112]

xrpl::test::TEST_F ( BaseUintTest ,
hash_append_writes_the_raw_bytes  )

Definition at line 222 of file base_uint.cpp.

◆ TEST_F() [5/112]

xrpl::test::TEST_F ( BaseUintTest ,
complement  )

Definition at line 234 of file base_uint.cpp.

◆ TEST_F() [6/112]

xrpl::test::TEST_F ( BaseUintTest ,
zero  )

Definition at line 256 of file base_uint.cpp.

◆ TEST_F() [7/112]

xrpl::test::TEST_F ( BaseUintTest ,
the_several_ways_of_spelling_zero_agree  )

Definition at line 272 of file base_uint.cpp.

◆ TEST_F() [8/112]

xrpl::test::TEST_F ( BaseUintTest ,
increment_and_decrement  )

Definition at line 284 of file base_uint.cpp.

◆ TEST_F() [9/112]

xrpl::test::TEST_F ( BaseUintTest ,
exclusive_or  )

Definition at line 304 of file base_uint.cpp.

◆ TEST_F() [10/112]

xrpl::test::TEST_F ( BaseUintTest ,
distinct_values_hash_into_a_set  )

Definition at line 310 of file base_uint.cpp.

◆ TEST_F() [11/112]

xrpl::test::TEST_F ( BaseUintTest ,
parse_hex_round_trip  )

Definition at line 323 of file base_uint.cpp.

◆ TEST_F() [12/112]

xrpl::test::TEST_F ( BaseUintTest ,
parse_hex_rejects_an_extra_leading_character  )

Definition at line 331 of file base_uint.cpp.

◆ TEST_F() [13/112]

xrpl::test::TEST_F ( BaseUintTest ,
parse_hex_rejects_an_extra_trailing_character  )

Definition at line 338 of file base_uint.cpp.

◆ TEST_F() [14/112]

xrpl::test::TEST_F ( BaseUintTest ,
parse_hex_rejects_a_non_hex_character_at_any_position  )

Definition at line 345 of file base_uint.cpp.

◆ TEST_F() [15/112]

xrpl::test::TEST_F ( BaseUintTest ,
parse_hex_walking_ones  )

Definition at line 357 of file base_uint.cpp.

◆ TEST_F() [16/112]

xrpl::test::TEST_F ( BaseUintTest ,
parse_hex_walking_zeroes  )

Definition at line 371 of file base_uint.cpp.

◆ TEST_F() [17/112]

xrpl::test::TEST_F ( BaseUintTest ,
constexpr_construction  )

Definition at line 385 of file base_uint.cpp.

◆ TEST_F() [18/112]

xrpl::test::TEST_F ( BaseUintTest ,
constexpr_constructor_throws_on_a_bad_length  )

Definition at line 394 of file base_uint.cpp.

◆ TEST_F() [19/112]

xrpl::test::TEST_F ( BaseUintTest ,
constexpr_constructor_throws_on_a_bad_character  )

Definition at line 408 of file base_uint.cpp.

◆ TEST_F() [20/112]

xrpl::test::TEST_F ( BaseUintTest ,
constexpr_construction_agrees_with_parse_hex  )

Definition at line 420 of file base_uint.cpp.

◆ TEST_F() [21/112]

xrpl::test::TEST_F ( BufferTest ,
default_constructed_is_empty  )

Definition at line 63 of file Buffer.cpp.

◆ TEST_F() [22/112]

xrpl::test::TEST_F ( BufferTest ,
zero_sized_construction_is_empty  )

Definition at line 72 of file Buffer.cpp.

◆ TEST_F() [23/112]

xrpl::test::TEST_F ( BufferTest ,
alloc_grows_an_empty_buffer  )

Definition at line 80 of file Buffer.cpp.

◆ TEST_F() [24/112]

xrpl::test::TEST_F ( BufferTest ,
sized_construction_reserves_without_filling  )

Definition at line 91 of file Buffer.cpp.

◆ TEST_F() [25/112]

xrpl::test::TEST_F ( BufferTest ,
construction_copies_raw_memory  )

Definition at line 103 of file Buffer.cpp.

◆ TEST_F() [26/112]

xrpl::test::TEST_F ( BufferTest ,
equality_compares_contents  )

Definition at line 113 of file Buffer.cpp.

◆ TEST_F() [27/112]

xrpl::test::TEST_F ( BufferTest ,
copy_construction  )

Definition at line 125 of file Buffer.cpp.

◆ TEST_F() [28/112]

xrpl::test::TEST_F ( BufferTest ,
copy_assignment  )

Definition at line 136 of file Buffer.cpp.

◆ TEST_F() [29/112]

xrpl::test::TEST_F ( BufferTest ,
self_assignment_preserves_contents  )

Definition at line 156 of file Buffer.cpp.

◆ TEST_F() [30/112]

xrpl::test::TEST_F ( BufferTest ,
move_construct_from_empty  )

Definition at line 178 of file Buffer.cpp.

◆ TEST_F() [31/112]

xrpl::test::TEST_F ( BufferTest ,
move_construct_from_non_empty  )

Definition at line 188 of file Buffer.cpp.

◆ TEST_F() [32/112]

xrpl::test::TEST_F ( BufferTest ,
move_assign_empty_to_empty  )

Definition at line 198 of file Buffer.cpp.

◆ TEST_F() [33/112]

xrpl::test::TEST_F ( BufferTest ,
move_assign_non_empty_to_empty  )

Definition at line 210 of file Buffer.cpp.

◆ TEST_F() [34/112]

xrpl::test::TEST_F ( BufferTest ,
move_assign_empty_to_non_empty  )

Definition at line 222 of file Buffer.cpp.

◆ TEST_F() [35/112]

xrpl::test::TEST_F ( BufferTest ,
move_assign_non_empty_to_non_empty  )

Definition at line 234 of file Buffer.cpp.

◆ TEST_F() [36/112]

xrpl::test::TEST_F ( BufferTest ,
construction_from_slice  )

Definition at line 251 of file Buffer.cpp.

◆ TEST_F() [37/112]

xrpl::test::TEST_F ( BufferTest ,
assignment_from_slice  )

Definition at line 262 of file Buffer.cpp.

◆ TEST_F() [38/112]

xrpl::test::TEST_F ( BufferTest ,
resize_allocates_and_clear_releases  )

Definition at line 287 of file Buffer.cpp.

◆ TEST_F() [39/112]

xrpl::test::TEST_F ( BufferTest ,
fill_sets_every_byte  )

Definition at line 324 of file Buffer.cpp.

◆ TEST_F() [40/112]

xrpl::test::TEST_F ( BufferTest ,
fill_overwrites_and_keeps_size  )

Definition at line 334 of file Buffer.cpp.

◆ TEST_F() [41/112]

xrpl::test::TEST_F ( BufferTest ,
fill_on_empty_buffer_is_a_noop  )

Definition at line 345 of file Buffer.cpp.

◆ TEST_F() [42/112]

xrpl::test::TEST_F ( JoinTest ,
join  )

Definition at line 20 of file join.cpp.

◆ TEST() [1/80]

xrpl::test::TEST ( UnitsTest ,
types  )

Definition at line 16 of file Units.cpp.

◆ TEST() [2/80]

xrpl::test::TEST ( UnitsTest ,
json  )

Definition at line 85 of file Units.cpp.

◆ TEST_F() [43/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
construction  )

Definition at line 171 of file Units.cpp.

◆ TEST_F() [44/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
construction_from_zero  )

Definition at line 180 of file Units.cpp.

◆ TEST_F() [45/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
construction_from_an_unsigned_literal  )

Definition at line 191 of file Units.cpp.

◆ TEST_F() [46/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
conversion_from_the_same_unit  )

Definition at line 197 of file Units.cpp.

◆ TEST_F() [47/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
conversion_from_a_narrower_unit  )

Definition at line 207 of file Units.cpp.

◆ TEST_F() [48/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
assignment_from_raw_integers  )

Definition at line 215 of file Units.cpp.

◆ TEST_F() [49/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
assignment_from_units  )

Definition at line 226 of file Units.cpp.

◆ TEST_F() [50/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
multiplication_and_division  )

Definition at line 238 of file Units.cpp.

◆ TEST_F() [51/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
compound_addition_and_subtraction  )

Definition at line 252 of file Units.cpp.

◆ TEST_F() [52/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
increment_and_decrement  )

Definition at line 263 of file Units.cpp.

◆ TEST_F() [53/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
compound_multiplication_division_and_modulo  )

Definition at line 277 of file Units.cpp.

◆ TEST_F() [54/112]

xrpl::test::TEST_F ( FeeLevel64Test ,
truthiness_signum_and_to_string  )

Definition at line 292 of file Units.cpp.

◆ TEST_F() [55/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
construction  )

Definition at line 324 of file Units.cpp.

◆ TEST_F() [56/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
construction_from_zero  )

Definition at line 333 of file Units.cpp.

◆ TEST_F() [57/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
construction_from_a_floating_literal  )

Definition at line 344 of file Units.cpp.

◆ TEST_F() [58/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
conversion_from_the_same_unit  )

Definition at line 350 of file Units.cpp.

◆ TEST_F() [59/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
assignment_from_an_integral_unit  )

Definition at line 360 of file Units.cpp.

◆ TEST_F() [60/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
assignment_from_raw_numbers  )

Definition at line 369 of file Units.cpp.

◆ TEST_F() [61/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
assignment_from_units  )

Definition at line 380 of file Units.cpp.

◆ TEST_F() [62/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
multiplication_and_division  )

Definition at line 388 of file Units.cpp.

◆ TEST_F() [63/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
compound_addition_and_subtraction  )

Definition at line 402 of file Units.cpp.

◆ TEST_F() [64/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
increment_and_decrement  )

Definition at line 413 of file Units.cpp.

◆ TEST_F() [65/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
compound_multiplication_and_division  )

Definition at line 427 of file Units.cpp.

◆ TEST_F() [66/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
negation  )

Definition at line 439 of file Units.cpp.

◆ TEST_F() [67/112]

xrpl::test::TEST_F ( FeeLevelDoubleTest ,
truthiness_signum_and_to_string  )

Definition at line 450 of file Units.cpp.

◆ TEST() [3/80]

xrpl::test::TEST ( UnitsTest ,
initial_xrp  )

Definition at line 464 of file Units.cpp.

◆ TEST() [4/80]

xrpl::test::TEST ( ByzantineFailureSimTest ,
DISABLED_byzantine_failure_sim  )

Definition at line 17 of file ByzantineFailureSim.cpp.

◆ TEST() [5/80]

xrpl::test::TEST ( CensorshipDetectorTest ,
censorship_detector  )

Definition at line 53 of file CensorshipDetector.cpp.

◆ TEST() [6/80]

xrpl::test::TEST ( ConsensusTest ,
should_close_ledger  )

Definition at line 193 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [7/80]

xrpl::test::TEST ( ConsensusTest ,
check_consensus  )

Definition at line 222 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [8/80]

xrpl::test::TEST ( ConsensusTest ,
standalone  )

Definition at line 291 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [9/80]

xrpl::test::TEST ( ConsensusTest ,
peers_agree  )

Definition at line 315 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [10/80]

xrpl::test::TEST ( ConsensusTest ,
slow_peers  )

Definition at line 352 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [11/80]

xrpl::test::TEST ( ConsensusTest ,
close_time_disagree  )

Definition at line 507 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [12/80]

xrpl::test::TEST ( ConsensusTest ,
wrong_lcl  )

Definition at line 572 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [13/80]

xrpl::test::TEST ( ConsensusTest ,
consensus_close_time_rounding  )

Definition at line 743 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [14/80]

xrpl::test::TEST ( ConsensusTest ,
fork  )

Definition at line 842 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [15/80]

xrpl::test::TEST ( ConsensusTest ,
hub_network  )

Definition at line 898 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [16/80]

xrpl::test::TEST ( ConsensusTest ,
preferred_by_branch  )

Definition at line 932 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [17/80]

xrpl::test::TEST ( ConsensusTest ,
pause_for_laggards  )

Definition at line 1037 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [18/80]

xrpl::test::TEST ( ConsensusTest ,
disputes  )

Definition at line 1115 of file tests/libxrpl/consensus/Consensus.cpp.

◆ TEST() [19/80]

xrpl::test::TEST ( DistributedValidatorsTest ,
DISABLED_distributed_validators  )

Definition at line 216 of file DistributedValidatorsSim.cpp.

◆ TEST() [20/80]

xrpl::test::TEST ( LedgerTimingTest ,
get_next_ledger_time_resolution  )

Definition at line 13 of file LedgerTiming.cpp.

◆ TEST() [21/80]

xrpl::test::TEST ( LedgerTimingTest ,
round_close_time  )

Definition at line 66 of file LedgerTiming.cpp.

◆ TEST() [22/80]

xrpl::test::TEST ( LedgerTimingTest ,
eff_close_time  )

Definition at line 85 of file LedgerTiming.cpp.

◆ TEST_F() [68/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
insert_single_entry_by_itself  )

Definition at line 28 of file LedgerTrie.cpp.

◆ TEST_F() [69/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
insert_suffix_of_existing_extending_tree  )

Definition at line 43 of file LedgerTrie.cpp.

◆ TEST_F() [70/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
insert_uncommitted_of_existing_node  )

Definition at line 68 of file LedgerTrie.cpp.

◆ TEST_F() [71/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
insert_suffix_uncommitted_of_existing_node  )

Definition at line 95 of file LedgerTrie.cpp.

◆ TEST_F() [72/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
insert_suffix_uncommitted_with_existing_child  )

Definition at line 112 of file LedgerTrie.cpp.

◆ TEST_F() [73/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
insert_multiple_counts  )

Definition at line 135 of file LedgerTrie.cpp.

◆ TEST_F() [74/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
remove_not_in_trie  )

Definition at line 154 of file LedgerTrie.cpp.

◆ TEST_F() [75/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
remove_in_trie_but_with_0_tip_support  )

Definition at line 166 of file LedgerTrie.cpp.

◆ TEST_F() [76/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
remove_in_trie_with_multiple_tip_support  )

Definition at line 181 of file LedgerTrie.cpp.

◆ TEST_F() [77/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
remove_in_trie_with_1_tip_support_no_children  )

Definition at line 205 of file LedgerTrie.cpp.

◆ TEST_F() [78/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
remove_in_trie_with_1_tip_support_1_child  )

Definition at line 225 of file LedgerTrie.cpp.

◆ TEST_F() [79/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
remove_in_trie_with_1_tip_support_multiple_children  )

Definition at line 246 of file LedgerTrie.cpp.

◆ TEST_F() [80/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
remove_in_trie_with_1_tip_support_parent_compaction  )

Definition at line 264 of file LedgerTrie.cpp.

◆ TEST_F() [81/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
empty  )

Definition at line 286 of file LedgerTrie.cpp.

◆ TEST_F() [82/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
support  )

Definition at line 304 of file LedgerTrie.cpp.

◆ TEST_F() [83/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
preferred_empty  )

Definition at line 348 of file LedgerTrie.cpp.

◆ TEST_F() [84/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
preferred_genesis_support_is_not_empty  )

Definition at line 355 of file LedgerTrie.cpp.

◆ TEST_F() [85/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
preferred_single_node_no_children  )

Definition at line 369 of file LedgerTrie.cpp.

◆ TEST_F() [86/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
preferred_single_node_smaller_child_support  )

Definition at line 379 of file LedgerTrie.cpp.

◆ TEST_F() [87/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
preferred_single_node_larger_child  )

Definition at line 393 of file LedgerTrie.cpp.

◆ TEST_F() [88/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
preferred_single_node_smaller_children_support  )

Definition at line 407 of file LedgerTrie.cpp.

◆ TEST_F() [89/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
preferred_single_node_larger_children  )

Definition at line 426 of file LedgerTrie.cpp.

◆ TEST_F() [90/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
preferred_tie_breaker_by_id  )

Definition at line 445 of file LedgerTrie.cpp.

◆ TEST_F() [91/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
preferred_tie_breaker_not_needed  )

Definition at line 464 of file LedgerTrie.cpp.

◆ TEST_F() [92/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
preferred_single_node_larger_grand_child  )

Definition at line 487 of file LedgerTrie.cpp.

◆ TEST_F() [93/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
preferred_too_much_uncommitted_support_from_competing_branches  )

Definition at line 502 of file LedgerTrie.cpp.

◆ TEST_F() [94/112]

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.

◆ TEST_F() [95/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
root_related  )

Definition at line 631 of file LedgerTrie.cpp.

◆ TEST_F() [96/112]

xrpl::test::TEST_F ( LedgerTrieTest ,
stress  )

Definition at line 658 of file LedgerTrie.cpp.

◆ TEST() [23/80]

xrpl::test::TEST ( ScaleFreeSimTest ,
DISABLED_scale_free_sim  )

Definition at line 19 of file ScaleFreeSim.cpp.

◆ TEST() [24/80]

xrpl::test::TEST ( BasicNetworkTest ,
network  )

Definition at line 64 of file BasicNetwork.cpp.

◆ TEST() [25/80]

xrpl::test::TEST ( BasicNetworkTest ,
disconnect  )

Definition at line 100 of file BasicNetwork.cpp.

◆ TEST() [26/80]

xrpl::test::TEST ( DigraphTest ,
digraph  )

Definition at line 12 of file Digraph.cpp.

◆ TEST() [27/80]

xrpl::test::TEST ( HistogramTest ,
histogram  )

Definition at line 7 of file Histogram.cpp.

◆ TEST() [28/80]

xrpl::test::TEST ( SchedulerTest ,
scheduler  )

Definition at line 9 of file Scheduler.cpp.

◆ allFeatures()

FeatureBitset xrpl::test::allFeatures ( )

Returns all testable amendments.

Note
This is similar to jtx::testable_amendments() but for the TxTest framework.

Definition at line 41 of file TxTest.cpp.

◆ XRP() [1/2]

template<std::floating_point T>
XRPAmount xrpl::test::XRP ( T xrp)

Convert XRP to drops (floating point types).

Parameters
xrpThe amount in XRP (may be fractional).
Returns
The equivalent amount in drops as XRPAmount.

Definition at line 64 of file TxTest.h.

◆ XRP() [2/2]

Convert XRP to drops (Number type).

Parameters
xrpThe amount in XRP as a Number.
Returns
The equivalent amount in drops as XRPAmount.

Definition at line 75 of file TxTest.h.

◆ asfToLsf()

std::uint32_t xrpl::test::asfToLsf ( std::uint32_t asf)
constexpr

Convert AccountSet flag (asf) to LedgerState flag (lsf).

Parameters
asfThe AccountSet flag value.
Returns
The corresponding LedgerState flag.
Exceptions
std::runtime_errorif the flag is not supported.

Supported flags: asfRequireDest, asfRequireAuth, asfDisallowXRP, asfDisableMaster, asfNoFreeze, asfGlobalFreeze, asfDefaultRipple, asfDepositAuth, asfAllowTrustLineClawback, asfDisallowIncomingCheck, asfDisallowIncomingNFTokenOffer, asfDisallowIncomingPayChan, asfDisallowIncomingTrustline, asfAllowTrustLineLocking

Definition at line 98 of file TxTest.h.

◆ TEST() [29/80]

xrpl::test::TEST ( AccountRootEntryTests ,
constructors  )

Definition at line 11 of file AccountRootEntry.cpp.

◆ TEST() [30/80]

xrpl::test::TEST ( AmendmentsEntryTests ,
constructors  )

Definition at line 10 of file AmendmentsEntry.cpp.

◆ TEST() [31/80]

xrpl::test::TEST ( AMMEntryTests ,
constructors  )

Definition at line 13 of file AMMEntry.cpp.

◆ TEST() [32/80]

xrpl::test::TEST ( CheckEntryTests ,
constructors  )

Definition at line 11 of file CheckEntry.cpp.

◆ TEST() [33/80]

xrpl::test::TEST ( CredentialEntryTests ,
constructors  )

Definition at line 14 of file CredentialEntry.cpp.

◆ TEST() [34/80]

xrpl::test::TEST ( DelegateEntryTests ,
constructors  )

Definition at line 11 of file DelegateEntry.cpp.

◆ TEST() [35/80]

xrpl::test::TEST ( DepositPreauthEntryTests ,
constructors  )

Definition at line 17 of file DepositPreauthEntry.cpp.

◆ TEST() [36/80]

xrpl::test::TEST ( DIDEntryTests ,
constructors  )

Definition at line 10 of file DIDEntry.cpp.

◆ TEST() [37/80]

xrpl::test::TEST ( DirectoryNodeEntryTests ,
constructors  )

Definition at line 13 of file DirectoryNodeEntry.cpp.

◆ expectKeylet()

template<template< typename > class Entry, typename... Args>
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.

◆ TEST() [38/80]

xrpl::test::TEST ( EscrowEntryTests ,
constructors  )

Definition at line 11 of file EscrowEntry.cpp.

◆ TEST_F() [97/112]

xrpl::test::TEST_F ( ExtensionFees ,
genesis_writes_the_configured_values  )

Definition at line 97 of file ExtensionFees.cpp.

◆ TEST_F() [98/112]

xrpl::test::TEST_F ( ExtensionFees ,
absent_fields_resolve_to_the_protocol_constants  )

Definition at line 108 of file ExtensionFees.cpp.

◆ TEST_F() [99/112]

xrpl::test::TEST_F ( ExtensionFees ,
present_fields_are_taken_from_the_ledger  )

Definition at line 130 of file ExtensionFees.cpp.

◆ TEST_F() [100/112]

xrpl::test::TEST_F ( ExtensionFees ,
an_explicit_zero_is_not_treated_as_absent  )

Definition at line 150 of file ExtensionFees.cpp.

◆ TEST_F() [101/112]

xrpl::test::TEST_F ( ExtensionFees ,
gas_settings_before_the_amendment_fail_to_load  )

Definition at line 164 of file ExtensionFees.cpp.

◆ TEST_F() [102/112]

xrpl::test::TEST_F ( ExtensionFees ,
gas_settings_after_the_amendment_load  )

Definition at line 175 of file ExtensionFees.cpp.

◆ TEST() [39/80]

xrpl::test::TEST ( FeeSettingsEntryTests ,
constructors  )

Definition at line 10 of file FeeSettingsEntry.cpp.

◆ TEST() [40/80]

xrpl::test::TEST ( LedgerHashesEntryTests ,
constructors  )

Definition at line 10 of file LedgerHashesEntry.cpp.

◆ TEST() [41/80]

xrpl::test::TEST ( LoanBrokerEntryTests ,
constructors  )

Definition at line 11 of file LoanBrokerEntry.cpp.

◆ TEST() [42/80]

xrpl::test::TEST ( LoanEntryTests ,
constructors  )

Definition at line 12 of file LoanEntry.cpp.

◆ TEST() [43/80]

xrpl::test::TEST ( MPTokenEntryTests ,
constructors  )

Definition at line 11 of file MPTokenEntry.cpp.

◆ TEST() [44/80]

xrpl::test::TEST ( MPTokenIssuanceEntryTests ,
constructors  )

Definition at line 13 of file MPTokenIssuanceEntry.cpp.

◆ TEST() [45/80]

xrpl::test::TEST ( NegativeUNLEntryTests ,
constructors  )

Definition at line 10 of file NegativeUNLEntry.cpp.

◆ TEST() [46/80]

xrpl::test::TEST ( NFTokenOfferEntryTests ,
constructors  )

Definition at line 11 of file NFTokenOfferEntry.cpp.

◆ TEST() [47/80]

xrpl::test::TEST ( NFTokenPageEntryTests ,
constructors  )

Definition at line 11 of file NFTokenPageEntry.cpp.

◆ TEST() [48/80]

xrpl::test::TEST ( OfferEntryTests ,
constructors  )

Definition at line 11 of file OfferEntry.cpp.

◆ TEST() [49/80]

xrpl::test::TEST ( OracleEntryTests ,
constructors  )

Definition at line 12 of file OracleEntry.cpp.

◆ TEST() [50/80]

xrpl::test::TEST ( PayChannelEntryTests ,
constructors  )

Definition at line 12 of file PayChannelEntry.cpp.

◆ TEST() [51/80]

xrpl::test::TEST ( PermissionedDomainEntryTests ,
constructors  )

Definition at line 11 of file PermissionedDomainEntry.cpp.

◆ TEST() [52/80]

xrpl::test::TEST ( RippleStateEntryTests ,
constructors  )

Definition at line 13 of file RippleStateEntry.cpp.

◆ TEST() [53/80]

xrpl::test::TEST ( SignerListEntryTests ,
constructors  )

Definition at line 10 of file SignerListEntry.cpp.

◆ TEST_F() [103/112]

xrpl::test::TEST_F ( SLEBaseTests ,
read_only  )

Definition at line 161 of file SLEBase.cpp.

◆ TEST_F() [104/112]

xrpl::test::TEST_F ( SLEBaseTests ,
adopt_sle  )

Definition at line 180 of file SLEBase.cpp.

◆ TEST_F() [105/112]

xrpl::test::TEST_F ( SLEBaseTests ,
writable_accessors  )

Definition at line 213 of file SLEBase.cpp.

◆ TEST_F() [106/112]

xrpl::test::TEST_F ( SLEBaseTests ,
apply_view_context_ctor  )

Definition at line 248 of file SLEBase.cpp.

◆ TEST_F() [107/112]

xrpl::test::TEST_F ( SLEBaseTests ,
writable_lifecycle  )

Definition at line 272 of file SLEBase.cpp.

◆ TEST_F() [108/112]

xrpl::test::TEST_F ( SLEBaseTests ,
conversion  )

Definition at line 330 of file SLEBase.cpp.

◆ TEST_F() [109/112]

xrpl::test::TEST_F ( SLEBaseTests ,
resolve_entry_peeks  )

Definition at line 348 of file SLEBase.cpp.

◆ TEST_F() [110/112]

xrpl::test::TEST_F ( SLEBaseTests ,
throws_on_missing_entry  )

Definition at line 380 of file SLEBase.cpp.

◆ TEST_F() [111/112]

xrpl::test::TEST_F ( SLEBaseTests ,
throws_on_missing_writable_entry  )

Definition at line 401 of file SLEBase.cpp.

◆ TEST() [54/80]

xrpl::test::TEST ( SponsorshipEntryTests ,
constructors  )

Definition at line 11 of file SponsorshipEntry.cpp.

◆ TEST() [55/80]

xrpl::test::TEST ( TicketEntryTests ,
constructors  )

Definition at line 11 of file TicketEntry.cpp.

◆ TEST() [56/80]

xrpl::test::TEST ( VaultEntryTests ,
constructors  )

Definition at line 11 of file VaultEntry.cpp.

◆ TEST() [57/80]

xrpl::test::TEST ( AccountSet ,
null_account_set  )

Definition at line 46 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [58/80]

xrpl::test::TEST ( AccountSet ,
most_flags  )

Definition at line 63 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [59/80]

xrpl::test::TEST ( AccountSet ,
set_and_reset_account_txn_id  )

Definition at line 178 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [60/80]

xrpl::test::TEST ( AccountSet ,
set_no_freeze  )

Definition at line 209 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [61/80]

xrpl::test::TEST ( AccountSet ,
domain  )

Definition at line 252 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [62/80]

xrpl::test::TEST ( AccountSet ,
message_key  )

Definition at line 320 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [63/80]

xrpl::test::TEST ( AccountSet ,
wallet_id  )

Definition at line 361 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [64/80]

xrpl::test::TEST ( AccountSet ,
email_hash  )

Definition at line 394 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [65/80]

xrpl::test::TEST ( AccountSet ,
transfer_rate  )

Definition at line 425 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [66/80]

xrpl::test::TEST ( AccountSet ,
bad_inputs  )

Definition at line 476 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [67/80]

xrpl::test::TEST ( AccountSet ,
require_auth_with_dir  )

Definition at line 556 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [68/80]

xrpl::test::TEST ( AccountSet ,
ticket  )

Definition at line 604 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [69/80]

xrpl::test::TEST ( AccountSet ,
bad_signing_key  )

Definition at line 663 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST() [70/80]

xrpl::test::TEST ( AccountSet ,
gateway  )

Definition at line 687 of file tests/libxrpl/tx/AccountSet.cpp.

◆ TEST_F() [112/112]

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.

◆ TEST() [71/80]

xrpl::test::TEST ( ProposalHelpers ,
plain_payment_is_valid  )

Definition at line 46 of file tests/libxrpl/tx/ProposalHelpers.cpp.

◆ TEST() [72/80]

xrpl::test::TEST ( ProposalHelpers ,
typeless_object_is_rejected  )

Definition at line 53 of file tests/libxrpl/tx/ProposalHelpers.cpp.

◆ TEST() [73/80]

xrpl::test::TEST ( ProposalHelpers ,
nested_proposal_is_rejected  )

Definition at line 62 of file tests/libxrpl/tx/ProposalHelpers.cpp.

◆ TEST() [74/80]

xrpl::test::TEST ( ProposalHelpers ,
pseudo_tx_is_rejected  )

Definition at line 69 of file tests/libxrpl/tx/ProposalHelpers.cpp.

◆ TEST() [75/80]

xrpl::test::TEST ( ProposalHelpers ,
inner_batch_flag_is_rejected  )

Definition at line 80 of file tests/libxrpl/tx/ProposalHelpers.cpp.

◆ TEST() [76/80]

xrpl::test::TEST ( ProposalHelpers ,
other_flags_are_accepted  )

Definition at line 89 of file tests/libxrpl/tx/ProposalHelpers.cpp.

◆ TEST() [77/80]

xrpl::test::TEST ( ProposalHelpers ,
batch_with_plain_inner_is_valid  )

Definition at line 98 of file tests/libxrpl/tx/ProposalHelpers.cpp.

◆ TEST() [78/80]

xrpl::test::TEST ( ProposalHelpers ,
batch_with_nested_proposal_inner_is_rejected  )

Definition at line 104 of file tests/libxrpl/tx/ProposalHelpers.cpp.

◆ TEST() [79/80]

xrpl::test::TEST ( ProposalHelpers ,
batch_with_pseudo_inner_is_rejected  )

Definition at line 111 of file tests/libxrpl/tx/ProposalHelpers.cpp.

◆ TEST() [80/80]

xrpl::test::TEST ( ProposalHelpers ,
batch_without_raw_transactions_is_valid  )

Definition at line 119 of file tests/libxrpl/tx/ProposalHelpers.cpp.

Variable Documentation

◆ gDefaultPreVote

auto xrpl::test::gDefaultPreVote = [](NegativeUNLVote& vote) {}

Definition at line 693 of file NegativeUNL_test.cpp.

◆ gEnvUseIPv4

std::atomic< bool > xrpl::test::gEnvUseIPv4 {false}

Definition at line 18 of file envconfig.cpp.

◆ kMaxPeers

std::uint32_t xrpl::test::kMaxPeers = 10
staticconstexpr

Definition at line 61 of file reduce_relay_test.cpp.

◆ kMaxValidators

std::uint32_t xrpl::test::kMaxValidators = 10
staticconstexpr

Definition at line 62 of file reduce_relay_test.cpp.

◆ kMaxMessages

std::uint32_t xrpl::test::kMaxMessages = 200000
staticconstexpr

Definition at line 63 of file reduce_relay_test.cpp.

◆ gBobAccountObjects

char const* xrpl::test::gBobAccountObjects[]
static

Definition at line 47 of file AccountObjects_test.cpp.

◆ gMappings

Initial value:

Definition at line 85 of file LedgerEntry_test.cpp.

◆ kRpcCallTestArray

RPCCallTestData const xrpl::test::kRpcCallTestArray[]
static

Definition at line 74 of file RPCCall_test.cpp.

◆ XRPAmount

template<std::integral T>
xrpl::test::XRPAmount
constexpr
Initial value:
{
return XRPAmount{static_cast<std::int64_t>(xrp) * kDropsPerXrp.drops()}
constexpr XRPAmount
Convert XRP to drops (integral types).
Definition TxTest.h:53
constexpr XRPAmount kDropsPerXrp
Number of drops per 1 XRP.
Definition XRPAmount.h:247

Convert XRP to drops (integral types).

Parameters
xrpThe amount in XRP.
Returns
The equivalent amount in drops as XRPAmount.

Definition at line 51 of file TxTest.h.