MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / getAnnotation

Function getAnnotation

unittests/catch.hpp:2898–2908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

registerTestMethodsFunction · 0.85

Calls 2

arcSafeReleaseFunction · 0.85
performOptionalSelectorFunction · 0.85

Tested by

no test coverage detected