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

Function tc_resolved_foo

tests/test_test_conventions.c:565–580  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565static bool tc_resolved_foo(const CBMResolvedCallArray *out,
566 const char *caller, const char *callee) {
567 int matches = 0;
568 const char *source = TC_OWNER_SOURCE;
569 const char *site = strstr(source, "foo (bar)");
570 uint32_t start = (uint32_t)(site - source);
571 for (int i = 0; i < out->count; i++) {
572 const CBMResolvedCall *call = &out->items[i];
573 if (!tc_text(call->callee_qn, callee) || call->kind != CBM_RESOLVED_INVOCATION) continue;
574 if (!tc_text(call->caller_qn, caller) || call->source_origin != CBM_SOURCE_ORIGIN_RAW ||
575 call->site_start_byte != start || call->site_end_byte <= start ||
576 call->site_end_byte > start + 9) return false;
577 matches++;
578 }
579 return matches == 1;
580}
581
582static bool tc_owner_cross(tc_owner_fixture_t *f, CBMArena *arena,
583 CBMResolvedCallArray *out, CBMTypeRegistry *registry,

Callers 1

Calls 1

tc_textFunction · 0.85

Tested by

no test coverage detected