Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
test(lsp): count only invocation rows in the issue-1527 C resolver tests
Martin Vogel244067b0a5eb
diff --git a/tests/test_c_lsp.c b/tests/test_c_lsp.cindex 2f6bcfab0..0dc3abb80 100644--- a/tests/test_c_lsp.c+++ b/tests/test_c_lsp.c@@ -16540,14 +16540,15 @@ TEST(clsp_preprocessed_destructor_rewrite_respects_origin_during_rewrite) {/* ── #1527: no per-file eval budget; cost fixed at the root ────────────── */-/* Resolved rows that name a real target (not an lsp_unresolved marker) whose- * callee QN contains sub. */+/* Resolved invocations that name a real target (not an lsp_unresolved marker)+ * whose callee QN contains sub. Member-access rows (one per function, type and+ * member) are a different kind and are not counted. */static int count_real_resolved(const CBMFileResult *r, const char *sub) {int n = 0;for (int i = 0; i < r->resolved_calls.count; i++) {const CBMResolvedCall *rc = &r->resolved_calls.items[i];- if (rc->callee_qn && strstr(rc->callee_qn, sub) && rc->confidence > 0.0f &&- !(rc->strategy && strcmp(rc->strategy, "lsp_unresolved") == 0))+ if (rc->kind == CBM_RESOLVED_INVOCATION && rc->callee_qn && strstr(rc->callee_qn, sub) &&+ rc->confidence > 0.0f && !(rc->strategy && strcmp(rc->strategy, "lsp_unresolved") == 0))n++;}return n;