MCPcopy Create free account
hub / github.com/apache/thrift / getAnnotation

Function getAnnotation

compiler/cpp/tests/catch/catch.hpp:3338–3348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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() {

Callers 1

registerTestMethodsFunction · 0.85

Calls 2

arcSafeReleaseFunction · 0.85
performOptionalSelectorFunction · 0.85

Tested by

no test coverage detected