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.

style: clang-format the new bare-call tests

Martin Vogel8bcfa2915fa0
diff --git a/tests/test_extraction.c b/tests/test_extraction.c
index 7657835eb..0bfcaf552 100644
--- a/tests/test_extraction.c
+++ b/tests/test_extraction.c
@@ -4656,13 +4656,13 @@ TEST(extract_python_bare_call_flags_locally_bound_callee) {
bool expect_bound;
int seen;
} cases[] = {
- {"run", true, 0}, /* closure over an ENCLOSING function's parameter */
- {"rest", true, 0}, /* *args -> list_splat_pattern */
- {"timeout", true, 0}, /* default_parameter */
- {"label", true, 0}, /* typed_default_parameter (keyword-only) */
- {"opts", true, 0}, /* **kwargs -> dictionary_splat_pattern */
- {"cb", true, 0}, /* typed_parameter, no default */
- {"fn", true, 0}, /* lambda parameter */
+ {"run", true, 0}, /* closure over an ENCLOSING function's parameter */
+ {"rest", true, 0}, /* *args -> list_splat_pattern */
+ {"timeout", true, 0}, /* default_parameter */
+ {"label", true, 0}, /* typed_default_parameter (keyword-only) */
+ {"opts", true, 0}, /* **kwargs -> dictionary_splat_pattern */
+ {"cb", true, 0}, /* typed_parameter, no default */
+ {"fn", true, 0}, /* lambda parameter */
{"module_level", false, 0}, /* unbound: the true cross-file edge */
{"helper", false, 0}, /* imported name, not a parameter */
{"inner", false, 0}, /* nested def: a real target, keep the edge */
diff --git a/tests/test_registry.c b/tests/test_registry.c
index 3747501ab..2fd966948 100644
--- a/tests/test_registry.c
+++ b/tests/test_registry.c
@@ -896,11 +896,22 @@ TEST(weak_call_guards_share_one_drop_list) {
* someone re-inlines one of the lists and edits only that copy, the two
* guards start disagreeing and this test catches it at the contract level
* rather than in a corpus months later. */
- static const char *const strategies[] = {
- "suffix_match", "unique_name", "field_type_hint", "fuzzy", "same_module",
- "import_map", "import_map_suffix", "qualified_suffix", "callee_suffix",
- "service_pattern", "lsp_cross", "lsp_ts_method", "lsp_py_method", "lsp_direct",
- "", NULL};
+ static const char *const strategies[] = {"suffix_match",
+ "unique_name",
+ "field_type_hint",
+ "fuzzy",
+ "same_module",
+ "import_map",
+ "import_map_suffix",
+ "qualified_suffix",
+ "callee_suffix",
+ "service_pattern",
+ "lsp_cross",
+ "lsp_ts_method",
+ "lsp_py_method",
+ "lsp_direct",
+ "",
+ NULL};
for (int i = 0; strategies[i] != NULL; i++) {
bool member = cbm_suppress_weak_member_match(true, true, strategies[i]);
bool binding = cbm_suppress_weak_local_binding_call(true, true, strategies[i]);