| 9981 | } |
| 9982 | |
| 9983 | std::string extractClassName(StringRef const &classOrQualifiedMethodName) { |
| 9984 | std::string className = classOrQualifiedMethodName; |
| 9985 | if (startsWith(className, '&')) { |
| 9986 | std::size_t lastColons = className.rfind("::"); |
| 9987 | std::size_t penultimateColons = className.rfind("::", lastColons - 1); |
| 9988 | if (penultimateColons == std::string::npos) |
| 9989 | penultimateColons = 1; |
| 9990 | className = className.substr(penultimateColons, lastColons - penultimateColons); |
| 9991 | } |
| 9992 | return className; |
| 9993 | } |
| 9994 | |
| 9995 | } // end namespace Catch |
| 9996 | // end catch_test_case_registry_impl.cpp |
no test coverage detected