Bitcoin Core 31.99.0
P2P Digital Currency
Functions
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)
 

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:

◆ FailFmtWithError()

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

Definition at line 40 of file util_string_tests.cpp.

◆ PassFmt()

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

Definition at line 28 of file util_string_tests.cpp.

◆ 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: