Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
logging_tests.cpp File Reference
#include <init/common.h>
#include <logging.h>
#include <logging/timer.h>
#include <scheduler.h>
#include <test/util/common.h>
#include <test/util/logging.h>
#include <test/util/setup_common.h>
#include <tinyformat.h>
#include <util/fs.h>
#include <util/fs_helpers.h>
#include <util/string.h>
#include <chrono>
#include <fstream>
#include <future>
#include <ios>
#include <iostream>
#include <source_location>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include <boost/test/unit_test.hpp>
Include dependency graph for logging_tests.cpp:

Go to the source code of this file.

Classes

struct  LogSetup
struct  ScopedScheduler

Functions

static void ResetLogger ()
static std::vector< std::string > ReadDebugLogLines ()
 BOOST_AUTO_TEST_CASE (logging_timer)
 BOOST_FIXTURE_TEST_CASE (logging_LogPrintStr, LogSetup)
 BOOST_FIXTURE_TEST_CASE (logging_LogPrintMacros, LogSetup)
 BOOST_FIXTURE_TEST_CASE (logging_LogPrintMacros_CategoryName, LogSetup)
 BOOST_FIXTURE_TEST_CASE (logging_SeverityLevels, LogSetup)
 BOOST_FIXTURE_TEST_CASE (logging_Conf, LogSetup)
 BOOST_AUTO_TEST_CASE (logging_log_rate_limiter)
 BOOST_AUTO_TEST_CASE (logging_log_limit_stats)
 BOOST_FIXTURE_TEST_CASE (logging_filesize_rate_limit, LogSetup)
std::vector< std::string > SplitString (std::string_view str, char sep)
std::string TrimString (std::string_view str, std::string_view pattern=" \f\n\r\t\v")

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( logging_log_limit_stats )

Definition at line 342 of file logging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( logging_log_rate_limiter )

Definition at line 301 of file logging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( logging_timer )

Definition at line 106 of file logging_tests.cpp.

◆ BOOST_FIXTURE_TEST_CASE() [1/6]

BOOST_FIXTURE_TEST_CASE ( logging_Conf ,
LogSetup  )

Definition at line 213 of file logging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [2/6]

BOOST_FIXTURE_TEST_CASE ( logging_filesize_rate_limit ,
LogSetup  )

Definition at line 427 of file logging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [3/6]

BOOST_FIXTURE_TEST_CASE ( logging_LogPrintMacros ,
LogSetup  )

Definition at line 143 of file logging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [4/6]

BOOST_FIXTURE_TEST_CASE ( logging_LogPrintMacros_CategoryName ,
LogSetup  )

Definition at line 161 of file logging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [5/6]

BOOST_FIXTURE_TEST_CASE ( logging_LogPrintStr ,
LogSetup  )

Definition at line 113 of file logging_tests.cpp.

Here is the call graph for this function:

◆ BOOST_FIXTURE_TEST_CASE() [6/6]

BOOST_FIXTURE_TEST_CASE ( logging_SeverityLevels ,
LogSetup  )

Definition at line 187 of file logging_tests.cpp.

Here is the call graph for this function:

◆ ReadDebugLogLines()

std::vector< std::string > ReadDebugLogLines ( )
static

Definition at line 41 of file logging_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResetLogger()

void ResetLogger ( )
static

Definition at line 35 of file logging_tests.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SplitString()

std::vector< std::string > util::SplitString ( std::string_view str,
char sep )
inlinenodiscard

Definition at line 149 of file string.h.

Here is the caller graph for this function:

◆ TrimString()

std::string util::TrimString ( std::string_view str,
std::string_view pattern = " \f\n\r\t\v" )
inlinenodiscard

Definition at line 169 of file string.h.

Here is the caller graph for this function: