MCPcopy Create free account
hub / github.com/catchorg/Catch2 / tryTranslators

Function tryTranslators

extras/catch_amalgamated.cpp:4166–4175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4164#if !defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)
4165 namespace {
4166 static std::string tryTranslators(
4167 std::vector<
4168 Detail::unique_ptr<IExceptionTranslator const>> const& translators ) {
4169 if ( translators.empty() ) {
4170 std::rethrow_exception( std::current_exception() );
4171 } else {
4172 return translators[0]->translate( translators.begin() + 1,
4173 translators.end() );
4174 }
4175 }
4176
4177 }
4178#endif //!defined(CATCH_CONFIG_DISABLE_EXCEPTIONS)

Callers 1

Calls 4

emptyMethod · 0.45
translateMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected