| 2896 | namespace Detail{ |
| 2897 | |
| 2898 | inline std::string getAnnotation( Class cls, |
| 2899 | std::string const& annotationName, |
| 2900 | std::string const& testCaseName ) { |
| 2901 | NSString* selStr = [[NSString alloc] initWithFormat:@"Catch_%s_%s", annotationName.c_str(), testCaseName.c_str()]; |
| 2902 | SEL sel = NSSelectorFromString( selStr ); |
| 2903 | arcSafeRelease( selStr ); |
| 2904 | id value = performOptionalSelector( cls, sel ); |
| 2905 | if( value ) |
| 2906 | return [(NSString*)value UTF8String]; |
| 2907 | return ""; |
| 2908 | } |
| 2909 | } |
| 2910 | |
| 2911 | inline std::size_t registerTestMethods() { |
no test coverage detected