| 4887 | namespace Detail{ |
| 4888 | |
| 4889 | inline std::string getAnnotation( Class cls, |
| 4890 | std::string const& annotationName, |
| 4891 | std::string const& testCaseName ) { |
| 4892 | NSString* selStr = [[NSString alloc] initWithFormat:@"Catch_%s_%s", annotationName.c_str(), testCaseName.c_str()]; |
| 4893 | SEL sel = NSSelectorFromString( selStr ); |
| 4894 | arcSafeRelease( selStr ); |
| 4895 | id value = performOptionalSelector( cls, sel ); |
| 4896 | if( value ) |
| 4897 | return [(NSString*)value UTF8String]; |
| 4898 | return ""; |
| 4899 | } |
| 4900 | } |
| 4901 | |
| 4902 | inline std::size_t registerTestMethods() { |
no test coverage detected