Namespaces | |
| namespace | Benchmark |
| namespace | Clara |
| namespace | Detail |
| namespace | Generators |
| namespace | literals |
| namespace | Matchers |
| namespace | TestCaseTracking |
| namespace | TextFlow |
Typedefs | |
| using | RegistryHubSingleton = Singleton<RegistryHub, IRegistryHub, IMutableRegistryHub> |
| using | IReporterFactoryPtr = Detail::unique_ptr<IReporterFactory> |
| template<typename Func, typename... U> | |
| using | FunctionReturnType = std::remove_reference_t<std::remove_cv_t<std::result_of_t<Func(U...)>>> |
| using | exceptionTranslateFunction = std::string(*)() |
| using | ExceptionTranslators = std::vector<Detail::unique_ptr<IExceptionTranslator const>> |
Enumerations | |
| enum class | Justification : uint8_t { Left , Right } |
| enum class | Verbosity { Quiet = 0 , Normal , High } |
| enum class | ShowDurations { DefaultForReporter , Always , Never } |
| enum class | TestRunOrder { Declared , LexicographicallySorted , Randomized } |
| enum class | ColourMode : std::uint8_t { PlatformDefault , ANSI , Win32 , None } |
| enum class | CaseSensitive { Yes , No } |
| enum class | GenerateFrom { Time , RandomDevice , Default } |
| enum class | TestCaseProperties : uint8_t { None = 0 , IsHidden = 1 << 1 , ShouldFail = 1 << 2 , MayFail = 1 << 3 , Throws = 1 << 4 , NonPortable = 1 << 5 , Benchmark = 1 << 6 } |
Functions | |
| bool | operator== (ProcessedReporterSpec const &lhs, ProcessedReporterSpec const &rhs) |
| std::uint32_t | getSeed () |
| Returns Catch2's current RNG seed. | |
| IRegistryHub const & | getRegistryHub () |
| IMutableRegistryHub & | getMutableRegistryHub () |
| void | cleanUp () |
| std::string | translateActiveException () |
| bool | operator< (Tag const &lhs, Tag const &rhs) |
| bool | operator== (Tag const &lhs, Tag const &rhs) |
| Detail::unique_ptr< TestCaseInfo > | makeTestCaseInfo (StringRef _className, NameAndTags const &nameAndTags, SourceLineInfo const &_lineInfo) |
| bool | operator< (TestCaseInfo const &lhs, TestCaseInfo const &rhs) |
| std::ostream & | operator<< (std::ostream &os, Version const &version) |
| Version const & | libraryVersion () |
| void | handleExceptionMatchExpr (AssertionHandler &handler, std::string const &str) |
| Clara::Parser | makeCommandLineParser (ConfigData &config) |
| Detail::unique_ptr< ColourImpl > | makeColourImpl (ColourMode colourSelection, IStream *stream) |
| bool | isColourImplAvailable (ColourMode colourSelection) |
| void | cleanUpContext () |
| Context & | getCurrentMutableContext () |
| SimplePcg32 & | sharedRng () |
| void | writeToDebugConsole (std::string const &text) |
| bool | isDebuggerActive () |
| void | formatReconstructedExpression (std::ostream &os, std::string const &lhs, StringRef op, std::string const &rhs) |
| void | throw_exception (std::exception const &e) |
| void | throw_logic_error (std::string const &msg) |
| void | throw_domain_error (std::string const &msg) |
| void | throw_runtime_error (std::string const &msg) |
| static void | restorePreviousSignalHandlers () noexcept |
| static void | handleSignal (int sig) |
| auto | makeStream (std::string const &filename) -> Detail::unique_ptr< IStream > |
| auto | operator<< (std::ostream &os, LazyExpression const &lazyExpr) -> std::ostream & |
| bool | list (IEventListener &reporter, Config const &config) |
| bool | isRedirectAvailable (OutputRedirect::Kind kind) |
| Detail::unique_ptr< OutputRedirect > | makeOutputRedirect (bool actual) |
| RedirectGuard | scopedActivate (OutputRedirect &redirectImpl) |
| RedirectGuard | scopedDeactivate (OutputRedirect &redirectImpl) |
| Optional< unsigned int > | parseUInt (std::string const &input, int base) |
| bool | isnan (float f) |
| bool | isnan (double d) |
| float | nextafter (float x, float y) |
| double | nextafter (double x, double y) |
| bool | operator== (SimplePcg32 const &lhs, SimplePcg32 const &rhs) |
| bool | operator!= (SimplePcg32 const &lhs, SimplePcg32 const &rhs) |
| std::uint32_t | generateRandomSeed (GenerateFrom from) |
| bool | operator== (ReporterSpec const &lhs, ReporterSpec const &rhs) |
| Optional< ReporterSpec > | parseReporterSpec (StringRef reporterSpec) |
| IResultCapture & | getResultCapture () |
| void | seedRng (IConfig const &config) |
| unsigned int | rngSeed () |
| void | addSingleton (ISingleton *singleton) |
| void | cleanupSingletons () |
| std::ostream & | operator<< (std::ostream &os, SourceLineInfo const &info) |
| std::ostream & | cout () |
| std::ostream & | cerr () |
| std::ostream & | clog () |
| bool | startsWith (std::string const &s, std::string const &prefix) |
| bool | startsWith (StringRef s, char prefix) |
| bool | endsWith (std::string const &s, std::string const &suffix) |
| bool | endsWith (std::string const &s, char suffix) |
| bool | contains (std::string const &s, std::string const &infix) |
| void | toLowerInPlace (std::string &s) |
| std::string | toLower (std::string const &s) |
| char | toLower (char c) |
| std::string | trim (std::string const &str) |
| StringRef | trim (StringRef ref) |
| bool | replaceInPlace (std::string &str, std::string const &replaceThis, std::string const &withThis) |
| std::vector< StringRef > | splitStringRef (StringRef str, char delimiter) |
| std::ostream & | operator<< (std::ostream &os, pluralise const &pluraliser) |
| auto | operator<< (std::ostream &os, StringRef str) -> std::ostream & |
| std::string | operator+ (StringRef lhs, StringRef rhs) |
| auto | operator+= (std::string &lhs, StringRef rhs) -> std::string & |
| std::vector< TestCaseHandle > | sortTests (IConfig const &config, std::vector< TestCaseHandle > const &unsortedTestCases) |
| bool | isThrowSafe (TestCaseHandle const &testCase, IConfig const &config) |
| std::vector< TestCaseHandle > | filterTests (std::vector< TestCaseHandle > const &testCases, TestSpec const &testSpec, IConfig const &config) |
| std::vector< TestCaseHandle > const & | getAllTestCasesSorted (IConfig const &config) |
| void | throw_test_failure_exception () |
| void | throw_test_skip_exception () |
| Detail::unique_ptr< ITestInvoker > | makeTestInvoker (void(*testAsFunction)()) |
| bool | uncaught_exceptions () |
| std::ostream & | operator<< (std::ostream &os, XmlEncode const &xmlEncode) |
| void | handleExceptionMatchExpr (AssertionHandler &handler, StringMatcher const &matcher) |
| std::string | getFormattedDuration (double duration) |
| bool | shouldShowDuration (IConfig const &config, double duration) |
| std::string | serializeFilters (std::vector< std::string > const &filters) |
| std::ostream & | operator<< (std::ostream &out, lineOfChars value) |
| void | defaultListReporters (std::ostream &out, std::vector< ReporterDescription > const &descriptions, Verbosity verbosity) |
| void | defaultListListeners (std::ostream &out, std::vector< ListenerDescription > const &descriptions) |
| void | defaultListTags (std::ostream &out, std::vector< TagInfo > const &tags, bool isFiltered) |
| void | defaultListTests (std::ostream &out, ColourImpl *streamColour, std::vector< TestCaseHandle > const &tests, bool isFiltered, Verbosity verbosity) |
| void | printTestRunTotals (std::ostream &stream, ColourImpl &streamColour, Totals const &totals) |
| static void | writeCounts (JsonObjectWriter &&writer, Counts const &counts) |
| Context const & | getCurrentContext () |
| constexpr auto | operator""_sr (char const *rawChars, std::size_t size) noexcept -> StringRef |
| constexpr bool | isOk (ResultWas::OfType resultType) |
| constexpr bool | isJustInfo (int flags) |
| constexpr ResultDisposition::Flags | operator| (ResultDisposition::Flags lhs, ResultDisposition::Flags rhs) |
| constexpr bool | isFalseTest (int flags) |
| constexpr bool | shouldSuppressFailure (int flags) |
| template<typename Range> | |
| std::string | rangeToString (Range const &range) |
| template<typename Allocator> | |
| std::string | rangeToString (std::vector< bool, Allocator > const &v) |
| template<typename C> | |
| Detail::unique_ptr< ITestInvoker > | makeTestInvoker (void(C::*testAsMethod)()) |
| template<typename C> | |
| Detail::unique_ptr< ITestInvoker > | makeTestInvokerFixture (void(C::*testAsMethod)() const) |
Variables | |
| int | StringMaker< float >::precision = std::numeric_limits<float>::max_digits10 |
| int | StringMaker< double >::precision = std::numeric_limits<double>::max_digits10 |
| static SignalDefs | signalDefs [] |
| static char * | altStackMem = nullptr |
| static std::size_t | altStackSize = 0 |
| static stack_t | oldSigStack {} |
| static struct sigaction | oldSigActions [sizeof(signalDefs)/sizeof(SignalDefs)] {} |
| CATCH_INTERNAL_START_WARNINGS_SUPPRESSION static CATCH_INTERNAL_SUPPRESS_GLOBALS_WARNINGS LeakDetector | leakDetector |
| using Catch::exceptionTranslateFunction = std::string(*)() |
| using Catch::ExceptionTranslators = std::vector<Detail::unique_ptr<IExceptionTranslator const>> |
| using Catch::FunctionReturnType = std::remove_reference_t<std::remove_cv_t<std::result_of_t<Func(U...)>>> |
| using Catch::IReporterFactoryPtr = Detail::unique_ptr<IReporterFactory> |
| using Catch::RegistryHubSingleton = Singleton<RegistryHub, IRegistryHub, IMutableRegistryHub> |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
| void Catch::addSingleton | ( | ISingleton * | singleton | ) |
| std::ostream & Catch::cerr | ( | ) |

| void Catch::cleanUp | ( | ) |


| void Catch::cleanUpContext | ( | ) |

| void Catch::cleanupSingletons | ( | ) |

| std::ostream & Catch::clog | ( | ) |
| bool Catch::contains | ( | std::string const & | s, |
| std::string const & | infix ) |

| std::ostream & Catch::cout | ( | ) |

| void Catch::defaultListListeners | ( | std::ostream & | out, |
| std::vector< ListenerDescription > const & | descriptions ) |
| void Catch::defaultListReporters | ( | std::ostream & | out, |
| std::vector< ReporterDescription > const & | descriptions, | ||
| Verbosity | verbosity ) |
| void Catch::defaultListTags | ( | std::ostream & | out, |
| std::vector< TagInfo > const & | tags, | ||
| bool | isFiltered ) |

| void Catch::defaultListTests | ( | std::ostream & | out, |
| ColourImpl * | streamColour, | ||
| std::vector< TestCaseHandle > const & | tests, | ||
| bool | isFiltered, | ||
| Verbosity | verbosity ) |

| bool Catch::endsWith | ( | std::string const & | s, |
| char | suffix ) |
| bool Catch::endsWith | ( | std::string const & | s, |
| std::string const & | suffix ) |


| std::vector< TestCaseHandle > Catch::filterTests | ( | std::vector< TestCaseHandle > const & | testCases, |
| TestSpec const & | testSpec, | ||
| IConfig const & | config ) |


| void Catch::formatReconstructedExpression | ( | std::ostream & | os, |
| std::string const & | lhs, | ||
| StringRef | op, | ||
| std::string const & | rhs ) |

| std::uint32_t Catch::generateRandomSeed | ( | GenerateFrom | from | ) |

| std::vector< TestCaseHandle > const & Catch::getAllTestCasesSorted | ( | IConfig const & | config | ) |


|
inline |

| Context & Catch::getCurrentMutableContext | ( | ) |

| std::string Catch::getFormattedDuration | ( | double | duration | ) |
| IMutableRegistryHub & Catch::getMutableRegistryHub | ( | ) |

| IRegistryHub const & Catch::getRegistryHub | ( | ) |

| IResultCapture & Catch::getResultCapture | ( | ) |


| std::uint32_t Catch::getSeed | ( | ) |
Returns Catch2's current RNG seed.

| void Catch::handleExceptionMatchExpr | ( | AssertionHandler & | handler, |
| std::string const & | str ) |


| void Catch::handleExceptionMatchExpr | ( | AssertionHandler & | handler, |
| StringMatcher const & | matcher ) |

|
static |

| bool Catch::isColourImplAvailable | ( | ColourMode | colourSelection | ) |

| bool Catch::isDebuggerActive | ( | ) |
|
constexpr |

|
constexpr |
| bool Catch::isnan | ( | double | d | ) |
| bool Catch::isnan | ( | float | f | ) |
|
constexpr |

| bool Catch::isRedirectAvailable | ( | OutputRedirect::Kind | kind | ) |
| bool Catch::isThrowSafe | ( | TestCaseHandle const & | testCase, |
| IConfig const & | config ) |


| Version const & Catch::libraryVersion | ( | ) |

| bool Catch::list | ( | IEventListener & | reporter, |
| Config const & | config ) |


| Detail::unique_ptr< ColourImpl > Catch::makeColourImpl | ( | ColourMode | colourSelection, |
| IStream * | stream ) |


| Clara::Parser Catch::makeCommandLineParser | ( | ConfigData & | config | ) |


| Detail::unique_ptr< OutputRedirect > Catch::makeOutputRedirect | ( | bool | actual | ) |

| auto Catch::makeStream | ( | std::string const & | filename | ) | -> Detail::unique_ptr<IStream> |


| Detail::unique_ptr< TestCaseInfo > Catch::makeTestCaseInfo | ( | StringRef | _className, |
| NameAndTags const & | nameAndTags, | ||
| SourceLineInfo const & | _lineInfo ) |


| Detail::unique_ptr< ITestInvoker > Catch::makeTestInvoker | ( | void(* | testAsFunction )() | ) |


| Detail::unique_ptr< ITestInvoker > Catch::makeTestInvoker | ( | void(C::* | testAsMethod )() | ) |

| Detail::unique_ptr< ITestInvoker > Catch::makeTestInvokerFixture | ( | void(C::* | testAsMethod )() const | ) |


| double Catch::nextafter | ( | double | x, |
| double | y ) |
| float Catch::nextafter | ( | float | x, |
| float | y ) |
| bool Catch::operator!= | ( | SimplePcg32 const & | lhs, |
| SimplePcg32 const & | rhs ) |
|
constexprnoexcept |
| auto Catch::operator+= | ( | std::string & | lhs, |
| StringRef | rhs ) -> std::string& |
| bool Catch::operator< | ( | TestCaseInfo const & | lhs, |
| TestCaseInfo const & | rhs ) |
| auto Catch::operator<< | ( | std::ostream & | os, |
| LazyExpression const & | lazyExpr ) -> std::ostream& |
| std::ostream & Catch::operator<< | ( | std::ostream & | os, |
| pluralise const & | pluraliser ) |
| std::ostream & Catch::operator<< | ( | std::ostream & | os, |
| SourceLineInfo const & | info ) |
| auto Catch::operator<< | ( | std::ostream & | os, |
| StringRef | str ) -> std::ostream& |
| std::ostream & Catch::operator<< | ( | std::ostream & | os, |
| Version const & | version ) |
| std::ostream & Catch::operator<< | ( | std::ostream & | os, |
| XmlEncode const & | xmlEncode ) |
| std::ostream & Catch::operator<< | ( | std::ostream & | out, |
| lineOfChars | value ) |
| bool Catch::operator== | ( | ProcessedReporterSpec const & | lhs, |
| ProcessedReporterSpec const & | rhs ) |
| bool Catch::operator== | ( | ReporterSpec const & | lhs, |
| ReporterSpec const & | rhs ) |
| bool Catch::operator== | ( | SimplePcg32 const & | lhs, |
| SimplePcg32 const & | rhs ) |
|
constexpr |
| Optional< ReporterSpec > Catch::parseReporterSpec | ( | StringRef | reporterSpec | ) |
Parses provided reporter spec string into
Returns empty optional on errors, e.g.


| Optional< unsigned int > Catch::parseUInt | ( | std::string const & | input, |
| int | base ) |


| void Catch::printTestRunTotals | ( | std::ostream & | stream, |
| ColourImpl & | streamColour, | ||
| Totals const & | totals ) |

| std::string Catch::rangeToString | ( | Range const & | range | ) |


| std::string Catch::rangeToString | ( | std::vector< bool, Allocator > const & | v | ) |

| bool Catch::replaceInPlace | ( | std::string & | str, |
| std::string const & | replaceThis, | ||
| std::string const & | withThis ) |
|
staticnoexcept |

| unsigned int Catch::rngSeed | ( | ) |

| RedirectGuard Catch::scopedActivate | ( | OutputRedirect & | redirectImpl | ) |
| RedirectGuard Catch::scopedDeactivate | ( | OutputRedirect & | redirectImpl | ) |
| void Catch::seedRng | ( | IConfig const & | config | ) |


| std::string Catch::serializeFilters | ( | std::vector< std::string > const & | filters | ) |
| SimplePcg32 & Catch::sharedRng | ( | ) |

| bool Catch::shouldShowDuration | ( | IConfig const & | config, |
| double | duration ) |

|
constexpr |

| std::vector< TestCaseHandle > Catch::sortTests | ( | IConfig const & | config, |
| std::vector< TestCaseHandle > const & | unsortedTestCases ) |



| bool Catch::startsWith | ( | std::string const & | s, |
| std::string const & | prefix ) |

| bool Catch::startsWith | ( | StringRef | s, |
| char | prefix ) |

| void Catch::throw_domain_error | ( | std::string const & | msg | ) |

| void Catch::throw_exception | ( | std::exception const & | e | ) |


| void Catch::throw_logic_error | ( | std::string const & | msg | ) |

| void Catch::throw_runtime_error | ( | std::string const & | msg | ) |

| void Catch::throw_test_failure_exception | ( | ) |
Outlines throwing of TestFailureException into a single TU
Also handles CATCH_CONFIG_DISABLE_EXCEPTIONS for callers.

| void Catch::throw_test_skip_exception | ( | ) |
Outlines throwing of TestSkipException into a single TU
Also handles CATCH_CONFIG_DISABLE_EXCEPTIONS for callers.

| char Catch::toLower | ( | char | c | ) |
| std::string Catch::toLower | ( | std::string const & | s | ) |


| void Catch::toLowerInPlace | ( | std::string & | s | ) |


| std::string Catch::translateActiveException | ( | ) |


| std::string Catch::trim | ( | std::string const & | str | ) |

| bool Catch::uncaught_exceptions | ( | ) |

|
static |


| void Catch::writeToDebugConsole | ( | std::string const & | text | ) |

|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| int Catch::StringMaker< double >::precision = std::numeric_limits<double>::max_digits10 |
| int Catch::StringMaker< float >::precision = std::numeric_limits<float>::max_digits10 |