xrpld
Loading...
Searching...
No Matches
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
10namespace xrpl::test {
11
12TEST(OracleEntryTests, constructors)
13{
15
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
Scaffolding shared by the per-entry-type suites.
AccountID id() const
Returns the Account ID.
Keylet oracle(AccountID const &account, std::uint32_t const documentID) noexcept
Definition Indexes.cpp:561
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.