MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / getAnnotation

Function getAnnotation

Bcore/src/main/cpp/Dobby/tests/catch.hpp:2761–2769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2759namespace Detail {
2760
2761inline std::string getAnnotation(Class cls, std::string const &annotationName, std::string const &testCaseName) {
2762 NSString *selStr = [[NSString alloc] initWithFormat:@"Catch_%s_%s", annotationName.c_str(), testCaseName.c_str()];
2763 SEL sel = NSSelectorFromString(selStr);
2764 arcSafeRelease(selStr);
2765 id value = performOptionalSelector(cls, sel);
2766 if (value)
2767 return [(NSString *)value UTF8String];
2768 return "";
2769}
2770} // namespace Detail
2771
2772inline std::size_t registerTestMethods() {

Callers 1

registerTestMethodsFunction · 0.85

Calls 2

arcSafeReleaseFunction · 0.85
performOptionalSelectorFunction · 0.85

Tested by

no test coverage detected