xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
tests
libxrpl
ledger
SignerListEntry.cpp
1
#include <xrpl/ledger/entries/SignerListEntry.h>
2
3
#include <xrpl/protocol/Indexes.h>
4
5
#include <gtest/gtest.h>
6
#include <ledger/EntryTestHelpers.h>
7
8
namespace
xrpl::test
{
9
10
TEST
(SignerListEntryTests, constructors)
11
{
12
EntryTestEnv
e;
13
14
expectKeylet<SignerListEntry>
(
15
e,
keylet::signerList
(e.
alice
.
id
()),
"signerList(account)"
, e.
alice
.
id
());
16
}
17
18
}
// 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::signerList
Keylet signerList(AccountID const &account) noexcept
A SignerList.
Definition
Indexes.cpp:348
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
Generated by
1.17.0