1#include <test/jtx/owners.h>
3#include <test/jtx/Env.h>
5#include <xrpl/core/ServiceRegistry.h>
6#include <xrpl/ledger/ReadView.h>
7#include <xrpl/ledger/helpers/DirectoryHelpers.h>
8#include <xrpl/protocol/AccountID.h>
9#include <xrpl/protocol/LedgerFormats.h>
10#include <xrpl/protocol/SField.h>
21 if (sle->getType() == type)
bool expect(Condition const &shouldBeTrue)
Evaluate a test condition.
std::shared_ptr< STLedgerEntry const > const & const_ref
A transaction testing environment.
SLE::const_pointer le(Account const &account) const
Return an account root.
beast::unit_test::Suite & test
std::shared_ptr< OpenView const > current() const
Returns the current ledger.
void operator()(Env &env) const
std::uint32_t ownedCountOf(ReadView const &view, AccountID const &id, LedgerEntryType type)
void ownedCountHelper(test::jtx::Env &env, AccountID const &id, LedgerEntryType type, std::uint32_t value)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
BaseUInt< 160, detail::AccountIDTag > AccountID
A 160-bit unsigned that uniquely identifies an account.
void forEachItem(ReadView const &view, Keylet const &root, std::function< void(SLE::const_ref)> const &f)
Iterate all items in the given directory.
LedgerEntryType
Identifiers for on-ledger objects.