| 3978 | namespace Detail{ |
| 3979 | |
| 3980 | inline std::string getAnnotation( Class cls, |
| 3981 | std::string const& annotationName, |
| 3982 | std::string const& testCaseName ) { |
| 3983 | NSString* selStr = [[NSString alloc] initWithFormat:@"Catch_%s_%s", annotationName.c_str(), testCaseName.c_str()]; |
| 3984 | SEL sel = NSSelectorFromString( selStr ); |
| 3985 | arcSafeRelease( selStr ); |
| 3986 | id value = performOptionalSelector( cls, sel ); |
| 3987 | if( value ) |
| 3988 | return [(NSString*)value UTF8String]; |
| 3989 | return ""; |
| 3990 | } |
| 3991 | } |
| 3992 | |
| 3993 | inline std::size_t registerTestMethods() { |
no test coverage detected