MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / decorators_contain

Function decorators_contain

tests/test_extraction.c:2701–2711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2699}
2700
2701static int decorators_contain(const CBMDefinition *d, const char *needle) {
2702 if (!d || !d->decorators) {
2703 return 0;
2704 }
2705 for (int i = 0; d->decorators[i]; i++) {
2706 if (strstr(d->decorators[i], needle)) {
2707 return 1;
2708 }
2709 }
2710 return 0;
2711}
2712
2713/* Issue #382: Java Method nodes had empty decorators / signature. */
2714TEST(extract_java_method_annotations_issue382) {

Callers 1

test_extraction.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected