| 14037 | } |
| 14038 | |
| 14039 | std::string extractClassName( StringRef const& classOrQualifiedMethodName ) { |
| 14040 | std::string className(classOrQualifiedMethodName); |
| 14041 | if( startsWith( className, '&' ) ) |
| 14042 | { |
| 14043 | std::size_t lastColons = className.rfind( "::" ); |
| 14044 | std::size_t penultimateColons = className.rfind( "::", lastColons-1 ); |
| 14045 | if( penultimateColons == std::string::npos ) |
| 14046 | penultimateColons = 1; |
| 14047 | className = className.substr( penultimateColons, lastColons-penultimateColons ); |
| 14048 | } |
| 14049 | return className; |
| 14050 | } |
| 14051 | |
| 14052 | } // end namespace Catch |
| 14053 | // end catch_test_case_registry_impl.cpp |
no test coverage detected