| 2925 | namespace Detail{ |
| 2926 | |
| 2927 | inline std::string getAnnotation( Class cls, |
| 2928 | std::string const& annotationName, |
| 2929 | std::string const& testCaseName ) { |
| 2930 | NSString* selStr = [[NSString alloc] initWithFormat:@"Catch_%s_%s", annotationName.c_str(), testCaseName.c_str()]; |
| 2931 | SEL sel = NSSelectorFromString( selStr ); |
| 2932 | arcSafeRelease( selStr ); |
| 2933 | id value = performOptionalSelector( cls, sel ); |
| 2934 | if( value ) |
| 2935 | return [(NSString*)value UTF8String]; |
| 2936 | return ""; |
| 2937 | } |
| 2938 | } |
| 2939 | |
| 2940 | inline size_t registerTestMethods() { |
no test coverage detected