Skip to content

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.

test(extract): bind the URL-builder language-gate test to a real URL shape

Martin Vogel8f94ae69d76d
diff --git a/tests/test_extraction.c b/tests/test_extraction.c
index e9f44e113..2eed984ad 100644
--- a/tests/test_extraction.c
+++ b/tests/test_extraction.c
@@ -3444,7 +3444,7 @@ static bool any_call_arg_resolves_to(CBMFileResult *r, const char *url) {
TEST(extract_c_url_builder_gated_issue1009) {
CBMFileResult *r = extract("static const char *cfg_path(void) {\n"
- " return \"/etc/myapp/conf.d\";\n"
+ " return \"/srv/myapp/conf.d\";\n"
"}\n"
"void init(void) {\n"
" parse_config(cfg_path());\n"
@@ -3452,7 +3452,7 @@ TEST(extract_c_url_builder_gated_issue1009) {
CBM_LANG_C, "t", "conf.c");
ASSERT_NOT_NULL(r);
ASSERT_FALSE(r->has_error);
- ASSERT_FALSE(any_call_arg_resolves_to(r, "/etc/myapp/conf.d"));
+ ASSERT_FALSE(any_call_arg_resolves_to(r, "/srv/myapp/conf.d"));
cbm_free_result(r);
PASS();
}