xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
tests
libxrpl
ledger
OracleEntry.cpp
1
#include <xrpl/ledger/entries/OracleEntry.h>
2
3
#include <xrpl/protocol/Indexes.h>
4
5
#include <gtest/gtest.h>
6
#include <ledger/EntryTestHelpers.h>
7
8
#include <
cstdint
>
9
10
namespace
xrpl::test
{
11
12
TEST
(OracleEntryTests, constructors)
13
{
14
EntryTestEnv
e;
15
16
expectKeylet<OracleEntry>
(
17
e,
18
keylet::oracle
(e.
alice
.
id
(), 7u),
19
"oracle(account, documentID)"
,
20
e.
alice
.
id
(),
21
std::uint32_t
{7});
22
}
23
24
}
// 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
cstdint
std::uint32_t
xrpl::keylet::oracle
Keylet oracle(AccountID const &account, std::uint32_t const documentID) noexcept
Definition
Indexes.cpp:561
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