| 14318 | } |
| 14319 | |
| 14320 | std::string extractClassName( StringRef const& classOrQualifiedMethodName ) { |
| 14321 | std::string className(classOrQualifiedMethodName); |
| 14322 | if( startsWith( className, '&' ) ) |
| 14323 | { |
| 14324 | std::size_t lastColons = className.rfind( "::" ); |
| 14325 | std::size_t penultimateColons = className.rfind( "::", lastColons-1 ); |
| 14326 | if( penultimateColons == std::string::npos ) |
| 14327 | penultimateColons = 1; |
| 14328 | className = className.substr( penultimateColons, lastColons-penultimateColons ); |
| 14329 | } |
| 14330 | return className; |
| 14331 | } |
| 14332 | |
| 14333 | } // end namespace Catch |
| 14334 | // end catch_test_case_registry_impl.cpp |
no test coverage detected