rippled
Classes | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
ripple::PerfLog_test Class Reference
Inheritance diagram for ripple::PerfLog_test:
Inheritance graph
[legend]
Collaboration diagram for ripple::PerfLog_test:
Collaboration graph
[legend]

Classes

struct  Cur
 
struct  PerfLogParent
 

Public Member Functions

void testFileCreation ()
 
void testRPC (WithFile withFile)
 
void testJobs (WithFile withFile)
 
void testInvalidID (WithFile withFile)
 
void testRotate (WithFile withFile)
 
void run () override
 

Private Types

enum  WithFile : bool { WithFile::no = false, WithFile::yes = true }
 
using path = boost::filesystem::path
 

Private Member Functions

std::unique_ptr< perf::PerfLoggetPerfLog (PerfLogParent &parent, WithFile withFile)
 

Static Private Member Functions

static std::uint64_t jsonToUint64 (Json::Value const &jsonUintAsString)
 
static std::vector< CurgetSortedCurrent (Json::Value const &currentJson)
 
static void waitForFileUpdate (PerfLogParent const &parent)
 

Private Attributes

test::jtx::Env env_ {*this}
 
beast::Journal j_ {env_.app().journal("PerfLog_test")}
 

Detailed Description

Definition at line 37 of file PerfLog_test.cpp.

Member Typedef Documentation

◆ path

using ripple::PerfLog_test::path = boost::filesystem::path
private

Definition at line 41 of file PerfLog_test.cpp.

Member Enumeration Documentation

◆ WithFile

enum ripple::PerfLog_test::WithFile : bool
strongprivate
Enumerator
no 
yes 

Definition at line 39 of file PerfLog_test.cpp.

Member Function Documentation

◆ getPerfLog()

std::unique_ptr<perf::PerfLog> ripple::PerfLog_test::getPerfLog ( PerfLogParent parent,
WithFile  withFile 
)
private

Definition at line 168 of file PerfLog_test.cpp.

◆ jsonToUint64()

static std::uint64_t ripple::PerfLog_test::jsonToUint64 ( Json::Value const &  jsonUintAsString)
staticprivate

Definition at line 181 of file PerfLog_test.cpp.

◆ getSortedCurrent()

static std::vector<Cur> ripple::PerfLog_test::getSortedCurrent ( Json::Value const &  currentJson)
staticprivate

Definition at line 205 of file PerfLog_test.cpp.

◆ waitForFileUpdate()

static void ripple::PerfLog_test::waitForFileUpdate ( PerfLogParent const &  parent)
staticprivate

Definition at line 237 of file PerfLog_test.cpp.

◆ testFileCreation()

void ripple::PerfLog_test::testFileCreation ( )

Definition at line 265 of file PerfLog_test.cpp.

◆ testRPC()

void ripple::PerfLog_test::testRPC ( WithFile  withFile)

Definition at line 374 of file PerfLog_test.cpp.

◆ testJobs()

void ripple::PerfLog_test::testJobs ( WithFile  withFile)

Definition at line 578 of file PerfLog_test.cpp.

◆ testInvalidID()

void ripple::PerfLog_test::testInvalidID ( WithFile  withFile)

Definition at line 924 of file PerfLog_test.cpp.

◆ testRotate()

void ripple::PerfLog_test::testRotate ( WithFile  withFile)

Definition at line 1066 of file PerfLog_test.cpp.

◆ run()

void ripple::PerfLog_test::run ( )
override

Definition at line 1125 of file PerfLog_test.cpp.

Member Data Documentation

◆ env_

test::jtx::Env ripple::PerfLog_test::env_ {*this}
private

Definition at line 45 of file PerfLog_test.cpp.

◆ j_

beast::Journal ripple::PerfLog_test::j_ {env_.app().journal("PerfLog_test")}
private

Definition at line 46 of file PerfLog_test.cpp.