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

Function imp_has

tests/test_extraction_imports.c:89–96  ·  view source on GitHub ↗

Return 1 if any extracted import has module_path containing path_substr. */

Source from the content-addressed store, hash-verified

87
88/* Return 1 if any extracted import has module_path containing path_substr. */
89static int imp_has(CBMFileResult *r, const char *path_substr) {
90 for (int i = 0; i < r->imports.count; i++) {
91 if (r->imports.items[i].module_path &&
92 strstr(r->imports.items[i].module_path, path_substr) != NULL)
93 return 1;
94 }
95 return 0;
96}
97
98/* Return 1 if any extracted import has local_name equal to local. */
99static int imp_local(CBMFileResult *r, const char *local) {

Callers 1

run_import_caseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected