Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
util_string_tests.cpp File Reference
#include <util/strencodings.h>
#include <util/string.h>
#include <boost/test/unit_test.hpp>
#include <test/util/common.h>
#include <tinyformat.h>
Include dependency graph for util_string_tests.cpp:

Go to the source code of this file.

Functions

template<unsigned NumArgs>
void TfmFormatZeroes (const std::string &fmt)
template<unsigned NumArgs>
void PassFmt (ConstevalFormatString< NumArgs > fmt)
template<unsigned WrongNumArgs>
void FailFmtWithError (const char *wrong_fmt, std::string_view error)
 BOOST_AUTO_TEST_CASE (ConstevalFormatString_NumSpec)
 BOOST_AUTO_TEST_CASE (case_insensitive_equal_test)
 BOOST_AUTO_TEST_CASE (line_reader_test)
template<unsigned num_params>
constexpr void CheckNumFormatSpecifiers (const char *str)

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/3]

BOOST_AUTO_TEST_CASE ( case_insensitive_equal_test )

Definition at line 151 of file util_string_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [2/3]

BOOST_AUTO_TEST_CASE ( ConstevalFormatString_NumSpec )

Definition at line 45 of file util_string_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [3/3]

BOOST_AUTO_TEST_CASE ( line_reader_test )

Definition at line 174 of file util_string_tests.cpp.

Here is the call graph for this function:

◆ CheckNumFormatSpecifiers()

template<unsigned num_params>
void util::detail::CheckNumFormatSpecifiers ( const char * str)
constexpr

Definition at line 26 of file string.h.

Here is the caller graph for this function:

◆ FailFmtWithError()

template<unsigned WrongNumArgs>
void FailFmtWithError ( const char * wrong_fmt,
std::string_view error )

Definition at line 40 of file util_string_tests.cpp.

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

◆ PassFmt()

template<unsigned NumArgs>
void PassFmt ( ConstevalFormatString< NumArgs > fmt)

Definition at line 28 of file util_string_tests.cpp.

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

◆ TfmFormatZeroes()

template<unsigned NumArgs>
void TfmFormatZeroes ( const std::string & fmt)

Definition at line 18 of file util_string_tests.cpp.

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