Bitcoin Core 30.99.0
P2P Digital Currency
Functions
util_string_tests.cpp File Reference
#include <util/strencodings.h>
#include <util/string.h>
#include <vector>
#include <boost/test/unit_test.hpp>
#include <test/util/setup_common.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)
 
std::vector< std::byte > StringToBuffer (const std::string &str)
 
 BOOST_AUTO_TEST_CASE (ConstevalFormatString_NumSpec)
 
 BOOST_AUTO_TEST_CASE (ascii_case_insensitive_key_equal_test)
 
 BOOST_AUTO_TEST_CASE (ascii_case_insensitive_hash_test)
 
 BOOST_AUTO_TEST_CASE (line_reader_test)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/4]

BOOST_AUTO_TEST_CASE ( ascii_case_insensitive_hash_test  )

Definition at line 181 of file util_string_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/4]

BOOST_AUTO_TEST_CASE ( ascii_case_insensitive_key_equal_test  )

Definition at line 157 of file util_string_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/4]

BOOST_AUTO_TEST_CASE ( ConstevalFormatString_NumSpec  )

Definition at line 51 of file util_string_tests.cpp.

Here is the call graph for this function:

◆ BOOST_AUTO_TEST_CASE() [4/4]

BOOST_AUTO_TEST_CASE ( line_reader_test  )

Definition at line 191 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.

◆ StringToBuffer()

std::vector< std::byte > StringToBuffer ( const std::string &  str)

Definition at line 45 of file util_string_tests.cpp.

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: