| 4309 | namespace Detail{ |
| 4310 | |
| 4311 | inline std::string getAnnotation( Class cls, |
| 4312 | std::string const& annotationName, |
| 4313 | std::string const& testCaseName ) { |
| 4314 | NSString* selStr = [[NSString alloc] initWithFormat:@"Catch_%s_%s", annotationName.c_str(), testCaseName.c_str()]; |
| 4315 | SEL sel = NSSelectorFromString( selStr ); |
| 4316 | arcSafeRelease( selStr ); |
| 4317 | id value = performOptionalSelector( cls, sel ); |
| 4318 | if( value ) |
| 4319 | return [(NSString*)value UTF8String]; |
| 4320 | return ""; |
| 4321 | } |
| 4322 | } |
| 4323 | |
| 4324 | inline std::size_t registerTestMethods() { |
no test coverage detected