Classes | |
struct | conjunction |
struct | conjunction< B1 > |
struct | conjunction< B1, Bn... > |
struct | disjunction |
struct | disjunction< B1 > |
struct | disjunction< B1, Bn... > |
struct | EnumInfo |
struct | is_range_impl |
struct | is_range_impl< T, void_t< decltype(begin(std::declval< T >()))> > |
class | IsStreamInsertable |
struct | make_void |
struct | negation |
class | NonCopyable |
Deriving classes become noncopyable and nonmovable. More... | |
class | unique_ptr |
Typedefs | |
template<typename... Ts> | |
using | void_t = typename make_void<Ts...>::type |
template<typename T> | |
using | RemoveCVRef_t = std::remove_cv_t<std::remove_reference_t<T>> |
Functions | |
std::string | convertIntoString (StringRef string, bool escapeInvisibles) |
Encases `string in quotes, and optionally escapes invisibles. | |
std::string | convertIntoString (StringRef string) |
Encases string in quotes, and escapes invisibles if user requested it via CLI. | |
std::string | rawMemoryToString (const void *object, std::size_t size) |
void | registerTranslatorImpl (Detail::unique_ptr< IExceptionTranslator > &&translator) |
std::vector< StringRef > | parseEnums (StringRef enums) |
Catch::Detail::unique_ptr< EnumInfo > | makeEnumInfo (StringRef enumName, StringRef allValueNames, std::vector< int > const &values) |
uint32_t | convertToBits (float f) |
uint64_t | convertToBits (double d) |
bool | directCompare (float lhs, float rhs) |
bool | directCompare (double lhs, double rhs) |
char const * | getEnv (char const *varName) |
std::vector< std::string > | splitReporterSpec (StringRef reporterSpec) |
Splits the reporter spec into reporter name and kv-pair options. | |
Optional< ColourMode > | stringToColourMode (StringRef colourMode) |
void | registerReporterImpl (std::string const &name, IReporterFactoryPtr reporterPtr) |
void | registerListenerImpl (Detail::unique_ptr< EventListenerFactory > listenerFactory) |
template<typename T, typename... Args> | |
unique_ptr< T > | make_unique (Args &&... args) |
std::size_t | catch_strnlen (const char *str, std::size_t n) |
template<typename T> | |
std::string | rawMemoryToString (const T &object) |
template<typename E> | |
std::string | convertUnknownEnumToString (E e) |
template<typename T> | |
std::enable_if_t< !std::is_enum< T >::value &&!std::is_base_of< std::exception, T >::value, std::string > | convertUnstreamable (T const &) |
template<typename T> | |
std::enable_if_t< !std::is_enum< T >::value &&std::is_base_of< std::exception, T >::value, std::string > | convertUnstreamable (T const &ex) |
template<typename T> | |
std::enable_if_t< std::is_enum< T >::value, std::string > | convertUnstreamable (T const &value) |
template<typename T> | |
std::string | stringify (const T &e) |
template<typename InputIterator, typename Sentinel = InputIterator> | |
std::string | rangeToString (InputIterator first, Sentinel last) |
Variables | |
constexpr StringRef | unprintableString = "{?}"_sr |
using Catch::Detail::RemoveCVRef_t = std::remove_cv_t<std::remove_reference_t<T>> |
using Catch::Detail::void_t = typename make_void<Ts...>::type |
|
inline |
std::string Catch::Detail::convertIntoString | ( | StringRef | string | ) |
Encases string
in quotes, and escapes invisibles if user requested it via CLI.
std::string Catch::Detail::convertIntoString | ( | StringRef | string, |
bool | escapeInvisibles ) |
Encases `string in quotes, and optionally escapes invisibles.
uint64_t Catch::Detail::convertToBits | ( | double | d | ) |
uint32_t Catch::Detail::convertToBits | ( | float | f | ) |
std::string Catch::Detail::convertUnknownEnumToString | ( | E | e | ) |
std::enable_if_t< !std::is_enum< T >::value &&!std::is_base_of< std::exception, T >::value, std::string > Catch::Detail::convertUnstreamable | ( | T const & | ) |
std::enable_if_t< !std::is_enum< T >::value &&std::is_base_of< std::exception, T >::value, std::string > Catch::Detail::convertUnstreamable | ( | T const & | ex | ) |
std::enable_if_t< std::is_enum< T >::value, std::string > Catch::Detail::convertUnstreamable | ( | T const & | value | ) |
bool Catch::Detail::directCompare | ( | double | lhs, |
double | rhs ) |
bool Catch::Detail::directCompare | ( | float | lhs, |
float | rhs ) |
char const * Catch::Detail::getEnv | ( | char const * | varName | ) |
unique_ptr< T > Catch::Detail::make_unique | ( | Args &&... | args | ) |
Catch::Detail::unique_ptr< EnumInfo > Catch::Detail::makeEnumInfo | ( | StringRef | enumName, |
StringRef | allValueNames, | ||
std::vector< int > const & | values ) |
std::string Catch::Detail::rangeToString | ( | InputIterator | first, |
Sentinel | last ) |
std::string Catch::Detail::rawMemoryToString | ( | const T & | object | ) |
std::string Catch::Detail::rawMemoryToString | ( | const void * | object, |
std::size_t | size ) |
void Catch::Detail::registerListenerImpl | ( | Detail::unique_ptr< EventListenerFactory > | listenerFactory | ) |
void Catch::Detail::registerReporterImpl | ( | std::string const & | name, |
IReporterFactoryPtr | reporterPtr ) |
void Catch::Detail::registerTranslatorImpl | ( | Detail::unique_ptr< IExceptionTranslator > && | translator | ) |
std::vector< std::string > Catch::Detail::splitReporterSpec | ( | StringRef | reporterSpec | ) |
Splits the reporter spec into reporter name and kv-pair options.
std::string Catch::Detail::stringify | ( | const T & | e | ) |
Optional< ColourMode > Catch::Detail::stringToColourMode | ( | StringRef | colourMode | ) |
|
constexpr |