| 11606 | } |
| 11607 | |
| 11608 | std::string extractClassName( StringRef const& classOrQualifiedMethodName ) { |
| 11609 | std::string className = classOrQualifiedMethodName; |
| 11610 | if( startsWith( className, '&' ) ) |
| 11611 | { |
| 11612 | std::size_t lastColons = className.rfind( "::" ); |
| 11613 | std::size_t penultimateColons = className.rfind( "::", lastColons-1 ); |
| 11614 | if( penultimateColons == std::string::npos ) |
| 11615 | penultimateColons = 1; |
| 11616 | className = className.substr( penultimateColons, lastColons-penultimateColons ); |
| 11617 | } |
| 11618 | return className; |
| 11619 | } |
| 11620 | |
| 11621 | } // end namespace Catch |
| 11622 | // end catch_test_case_registry_impl.cpp |
no test coverage detected