| 11883 | } |
| 11884 | |
| 11885 | std::string extractClassName( StringRef const& classOrQualifiedMethodName ) { |
| 11886 | std::string className = classOrQualifiedMethodName; |
| 11887 | if( startsWith( className, '&' ) ) |
| 11888 | { |
| 11889 | std::size_t lastColons = className.rfind( "::" ); |
| 11890 | std::size_t penultimateColons = className.rfind( "::", lastColons-1 ); |
| 11891 | if( penultimateColons == std::string::npos ) |
| 11892 | penultimateColons = 1; |
| 11893 | className = className.substr( penultimateColons, lastColons-penultimateColons ); |
| 11894 | } |
| 11895 | return className; |
| 11896 | } |
| 11897 | |
| 11898 | } // end namespace Catch |
| 11899 | // end catch_test_case_registry_impl.cpp |
no test coverage detected