Skip to content

Commit b897d5d

Browse files
committed
test(repro): deep invariant dives — enclosing-func drift, LSP rescue, discovery/FQN
Comprehensively reproduce the remaining QUALITY_ANALYSIS gaps: - repro_invariant_enclosing_parity (gap #3): cbm_find_enclosing_func's hardcoded func_kinds_for_lang switch has drifted from lang_specs.function_node_types. Languages absent from the switch whose function nodes aren't in func_kinds_generic silently attribute every in-function call to Module. Full drift table + per-language reproductions (fortran/scss/sql/verilog/julia/nix RED via Module source; commonlisp/emacslisp/dart/cobol RED, some compounded by a callee- extraction gap). - repro_invariant_lsp_rescue (gap #5/#5a): cbm_pipeline_find_lsp_resolution (lsp_resolve.h:65) joins LSP results to tree-sitter calls by EXACT caller_qn==enclosing_func_qn; when tree-sitter says Module, the LSP rescue is discarded. C++ out-of-line fixture asserts the edge is LSP-callable-sourced AND that properties_json preserves the lsp_* strategy/confidence (both RED today). - repro_invariant_discovery_fqn (gaps #1,#4): comprehensive 50+ skip-dir table (.claude-worktrees RED, the rest GREEN guards) + 6 FQN same-stem collision cases (api.h/api.c + svc.h/svc.cpp RED; cross-dir/.d.ts/cross-package GREEN guards). Signed-off-by: Martin Vogel <[email protected]>
1 parent 010318e commit b897d5d

5 files changed

Lines changed: 1404 additions & 1 deletion

File tree

‎Makefile.cbm‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,10 @@ TEST_REPRO_SRCS = \
426426
tests/repro/repro_issue581.c \
427427
tests/repro/repro_invariant_calls.c \
428428
tests/repro/repro_invariant_graph.c \
429-
tests/repro/repro_invariant_breadth.c
429+
tests/repro/repro_invariant_breadth.c \
430+
tests/repro/repro_invariant_enclosing_parity.c \
431+
tests/repro/repro_invariant_lsp_rescue.c \
432+
tests/repro/repro_invariant_discovery_fqn.c
430433

431434
ALL_TEST_SRCS =$(TEST_FOUNDATION_SRCS) $(TEST_EXTRACTION_SRCS) $(TEST_STORE_SRCS) $(TEST_CYPHER_SRCS) $(TEST_MCP_SRCS) $(TEST_DISCOVER_SRCS) $(TEST_GRAPH_BUFFER_SRCS) $(TEST_PIPELINE_SRCS) $(TEST_WATCHER_SRCS) $(TEST_LZ4_SRCS) $(TEST_ZSTD_SRCS) $(TEST_ARTIFACT_SRCS) $(TEST_SQLITE_WRITER_SRCS) $(TEST_GO_LSP_SRCS) $(TEST_C_LSP_SRCS) $(TEST_PHP_LSP_SRCS) $(TEST_CS_LSP_SRCS) $(TEST_CS_LSP_BENCH_SRCS) $(TEST_SCOPE_SRCS) $(TEST_TYPE_REP_SRCS) $(TEST_PY_LSP_SRCS) $(TEST_PY_LSP_BENCH_SRCS) $(TEST_PY_LSP_STRESS_SRCS) $(TEST_PY_LSP_SCALE_SRCS) $(TEST_TS_LSP_SRCS) $(TEST_JAVA_LSP_SRCS) $(TEST_KOTLIN_LSP_SRCS) $(TEST_RUST_LSP_SRCS) $(TEST_TRACES_SRCS) $(TEST_CLI_SRCS) $(TEST_MEM_SRCS) $(TEST_UI_SRCS) $(TEST_HTTPD_SRCS) $(TEST_SECURITY_SRCS) $(TEST_YAML_SRCS) $(TEST_SIMHASH_SRCS) $(TEST_STACK_OVERFLOW_SRCS) $(TEST_INTEGRATION_SRCS)
432435

0 commit comments

Comments
 (0)