xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
tests
libxrpl
ledger
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
9
namespace
xrpl::test
{
10
11
TEST
(NFTokenPageEntryTests, constructors)
12
{
13
EntryTestEnv
e;
14
15
Keylet
const
pageMin =
keylet::nftokenPageMin
(e.
alice
.
id
());
16
17
expectKeylet<NFTokenPageEntry>
(
18
e,
19
keylet::nftokenPage
(pageMin, e.
someID
()),
20
"nftokenPage(page, token)"
,
21
pageMin,
22
e.
someID
());
23
}
24
25
}
// namespace xrpl::test
xrpl::test::EntryTestEnv
Scaffolding shared by the per-entry-type suites.
Definition
EntryTestHelpers.h:28
xrpl::test::EntryTestEnv::alice
Account const alice
Definition
EntryTestHelpers.h:31
xrpl::test::EntryTestEnv::someID
UInt256 someID() const
An arbitrary but stable UInt256, for the entry constructors that take an object ID directly.
Definition
EntryTestHelpers.h:62
xrpl::test::jtx::Account::id
AccountID id() const
Returns the Account ID.
Definition
jtx/Account.h:104
xrpl::keylet::nftokenPage
Keylet nftokenPage(Keylet const &k, UInt256 const &token)
Definition
Indexes.cpp:446
xrpl::keylet::nftokenPageMin
Keylet nftokenPageMin(AccountID const &owner)
NFT page keylets.
Definition
Indexes.cpp:430
xrpl::test
Definition
STLedgerEntry.h:21
xrpl::test::TEST
TEST(UnitsTest, types)
Definition
Units.cpp:16
xrpl::test::expectKeylet
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.
Definition
EntryTestHelpers.h:96
xrpl::Keylet
A pair of SHAMap key and LedgerEntryType.
Definition
Keylet.h:20
Generated by
1.17.0