C++Spec 1.0.0
BDD testing for C++
Loading...
Searching...
No Matches
pretty_matchers.hpp File Reference
#include <algorithm>
#include <regex>
#include <string>
#include <utility>
#include <vector>
#include "prettyprint.hpp"
#include "util.hpp"
Include dependency graph for pretty_matchers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CppSpec::Pretty
 A helper base class that assists in pretty-printing various objects. More...
 

Functions

template<>
std::string CppSpec::Pretty::to_word< std::true_type > (const std::true_type &)
 
template<>
std::string CppSpec::Pretty::to_word< std::false_type > (const std::false_type &)
 
template<>
std::string CppSpec::Pretty::inspect_object< std::string > (const std::string &o)
 Specialization for C++ STL strings.
 
template<>
std::string CppSpec::Pretty::inspect_object< std::string_view > (const std::string_view &o)
 

Function Documentation

◆ Pretty::inspect_object< std::string >()

template<>
std::string CppSpec::Pretty::inspect_object< std::string > ( const std::string & o)
inline

Specialization for C++ STL strings.

Parameters
othe input string
Returns
the generated string