xrpld
Loading...
Searching...
No Matches
NFTokenPageEntry.cpp
1#include <xrpl/ledger/entries/NFTokenPageEntry.h>
2
3#include <xrpl/protocol/Indexes.h>
4#include <xrpl/protocol/Keylet.h>
5
6#include <gtest/gtest.h>
7#include <ledger/EntryTestHelpers.h>
8
9namespace xrpl::test {
10
11TEST(NFTokenPageEntryTests, constructors)
12{
14
15 Keylet const pageMin = keylet::nftokenPageMin(e.alice.id());
16
18 e,
19 keylet::nftokenPage(pageMin, e.someID()),
20 "nftokenPage(page, token)",
21 pageMin,
22 e.someID());
23}
24
25} // namespace xrpl::test
Scaffolding shared by the per-entry-type suites.
UInt256 someID() const
An arbitrary but stable UInt256, for the entry constructors that take an object ID directly.
AccountID id() const
Returns the Account ID.
Keylet nftokenPage(Keylet const &k, UInt256 const &token)
Definition Indexes.cpp:446
Keylet nftokenPageMin(AccountID const &owner)
NFT page keylets.
Definition Indexes.cpp:430
TEST(UnitsTest, types)
Definition Units.cpp:16
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.
A pair of SHAMap key and LedgerEntryType.
Definition Keylet.h:20