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

Function decorators_contain

tests/test_extraction.c:4762–4772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4760}
4761
4762static int decorators_contain(const CBMDefinition *d, const char *needle) {
4763 if (!d || !d->decorators) {
4764 return 0;
4765 }
4766 for (int i = 0; d->decorators[i]; i++) {
4767 if (strstr(d->decorators[i], needle)) {
4768 return 1;
4769 }
4770 }
4771 return 0;
4772}
4773
4774/* Issue #382: Java Method nodes had empty decorators / signature. */
4775TEST(extract_java_method_annotations_issue382) {

Callers 1

test_extraction.cFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected