| 3336 | namespace Detail{ |
| 3337 | |
| 3338 | inline std::string getAnnotation( Class cls, |
| 3339 | std::string const& annotationName, |
| 3340 | std::string const& testCaseName ) { |
| 3341 | NSString* selStr = [[NSString alloc] initWithFormat:@"Catch_%s_%s", annotationName.c_str(), testCaseName.c_str()]; |
| 3342 | SEL sel = NSSelectorFromString( selStr ); |
| 3343 | arcSafeRelease( selStr ); |
| 3344 | id value = performOptionalSelector( cls, sel ); |
| 3345 | if( value ) |
| 3346 | return [(NSString*)value UTF8String]; |
| 3347 | return ""; |
| 3348 | } |
| 3349 | } |
| 3350 | |
| 3351 | inline size_t registerTestMethods() { |
no test coverage detected