xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
tests
libxrpl
ledger
AccountRootEntry.cpp
1
#include <xrpl/ledger/entries/AccountRootEntry.h>
2
3
#include <xrpl/protocol/Indexes.h>
4
5
#include <gtest/gtest.h>
6
#include <helpers/Account.h>
7
#include <ledger/EntryTestHelpers.h>
8
9
namespace
xrpl::test
{
10
11
TEST
(AccountRootEntryTests, constructors)
12
{
13
EntryTestEnv
e;
14
15
expectKeylet<AccountRootEntry>
(e,
keylet::account
(e.
alice
.
id
()),
"account(id)"
, e.
alice
.
id
());
16
17
expectKeylet<AccountRootEntry>
(
18
e,
keylet::account
(
Account
(
"nobody"
).
id
()),
"account(id) absent"
,
Account
(
"nobody"
).
id
());
19
}
20
21
}
// 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::jtx::Account::id
AccountID id() const
Returns the Account ID.
Definition
jtx/Account.h:104
xrpl::keylet::account
Keylet account(AccountID const &id) noexcept
AccountID root.
Definition
Indexes.cpp:220
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::FeePayerType::Account
@ Account
Definition
Transactor.h:145
Generated by
1.17.0