xrpld
Loading...
Searching...
No Matches
DIDEntry.cpp
1#include <xrpl/ledger/entries/DIDEntry.h>
2
3#include <xrpl/protocol/Indexes.h>
4
5#include <gtest/gtest.h>
6#include <ledger/EntryTestHelpers.h>
7
8namespace xrpl::test {
9
10TEST(DIDEntryTests, constructors)
11{
13
14 expectKeylet<DIDEntry>(e, keylet::did(e.alice.id()), "did(account)", e.alice.id());
15}
16
17} // namespace xrpl::test
Scaffolding shared by the per-entry-type suites.
AccountID id() const
Returns the Account ID.
Keylet did(AccountID const &account) noexcept
Definition Indexes.cpp:555
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.