xrpld
Loading...
Searching...
No Matches
tests
libxrpl
shamap
FetchPack.cpp
1
#include <xrpl/beast/utility/Journal.h>
2
#include <xrpl/shamap/SHAMap.h>
3
#include <xrpl/shamap/SHAMapMissingNode.h>
4
5
#include <gtest/gtest.h>
6
#include <helpers/TestSink.h>
7
#include <shamap/common.h>
8
9
#include <
memory
>
10
11
namespace
xrpl::tests
{
12
13
TEST
(FetchPackTest, construct_table)
14
{
15
beast::Journal
const
j{
TestSink::instance
()};
16
TestNodeFamily
f{j};
17
std::shared_ptr<SHAMap>
const
t1{
std::make_shared<SHAMap>
(
SHAMapType::FREE
, f)};
18
19
EXPECT_NE(t1,
nullptr
);
20
}
21
22
}
// namespace xrpl::tests
beast::Journal
A generic endpoint for log messages.
Definition
Journal.h:44
xrpl::TestSink::instance
static TestSink & instance()
Definition
TestSink.h:12
xrpl::tests::TestNodeFamily
Definition
common.h:25
std::make_shared
T make_shared(T... args)
memory
xrpl::tests
Definition
LedgerNodeHelpers_test.cpp:20
xrpl::tests::TEST
TEST(IntrusiveSharedTest, basics)
Definition
IntrusiveShared.cpp:193
xrpl::SHAMapType::FREE
@ FREE
Definition
SHAMapMissingNode.h:16
std::shared_ptr
Generated by
1.16.1