| 2759 | namespace Detail { |
| 2760 | |
| 2761 | inline std::string getAnnotation(Class cls, std::string const &annotationName, std::string const &testCaseName) { |
| 2762 | NSString *selStr = [[NSString alloc] initWithFormat:@"Catch_%s_%s", annotationName.c_str(), testCaseName.c_str()]; |
| 2763 | SEL sel = NSSelectorFromString(selStr); |
| 2764 | arcSafeRelease(selStr); |
| 2765 | id value = performOptionalSelector(cls, sel); |
| 2766 | if (value) |
| 2767 | return [(NSString *)value UTF8String]; |
| 2768 | return ""; |
| 2769 | } |
| 2770 | } // namespace Detail |
| 2771 | |
| 2772 | inline std::size_t registerTestMethods() { |
no test coverage detected