Skip to content

Commit 8bcfa29

Browse files
committed
style: clang-format the new bare-call tests
Changed-range clang-format (Homebrew LLVM 22.1.8, the build CI's lint-ci uses) flagged two alignment violations in the tests added by the previous commit. Whitespace only; 805 passed / 0 failed re-run after the reformat. Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
1 parent 95689b5 commit 8bcfa29

2 files changed

Lines changed: 23 additions & 12 deletions

File tree

‎tests/test_extraction.c‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4656,13 +4656,13 @@ TEST(extract_python_bare_call_flags_locally_bound_callee) {
46564656
bool expect_bound;
46574657
int seen;
46584658
} cases[] = {
4659-
{"run", true, 0}, /* closure over an ENCLOSING function's parameter */
4660-
{"rest", true, 0}, /* *args -> list_splat_pattern */
4661-
{"timeout", true, 0}, /* default_parameter */
4662-
{"label", true, 0}, /* typed_default_parameter (keyword-only) */
4663-
{"opts", true, 0}, /* **kwargs -> dictionary_splat_pattern */
4664-
{"cb", true, 0}, /* typed_parameter, no default */
4665-
{"fn", true, 0}, /* lambda parameter */
4659+
{"run", true, 0}, /* closure over an ENCLOSING function's parameter */
4660+
{"rest", true, 0}, /* *args -> list_splat_pattern */
4661+
{"timeout", true, 0}, /* default_parameter */
4662+
{"label", true, 0}, /* typed_default_parameter (keyword-only) */
4663+
{"opts", true, 0}, /* **kwargs -> dictionary_splat_pattern */
4664+
{"cb", true, 0}, /* typed_parameter, no default */
4665+
{"fn", true, 0}, /* lambda parameter */
46664666
{"module_level", false, 0}, /* unbound: the true cross-file edge */
46674667
{"helper", false, 0}, /* imported name, not a parameter */
46684668
{"inner", false, 0}, /* nested def: a real target, keep the edge */

‎tests/test_registry.c‎

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -896,11 +896,22 @@ TEST(weak_call_guards_share_one_drop_list) {
896896
* someone re-inlines one of the lists and edits only that copy, the two
897897
* guards start disagreeing and this test catches it at the contract level
898898
* rather than in a corpus months later. */
899-
static const char *const strategies[] = {
900-
"suffix_match", "unique_name", "field_type_hint", "fuzzy", "same_module",
901-
"import_map", "import_map_suffix", "qualified_suffix", "callee_suffix",
902-
"service_pattern", "lsp_cross", "lsp_ts_method", "lsp_py_method", "lsp_direct",
903-
"", NULL};
899+
static const char *const strategies[] = {"suffix_match",
900+
"unique_name",
901+
"field_type_hint",
902+
"fuzzy",
903+
"same_module",
904+
"import_map",
905+
"import_map_suffix",
906+
"qualified_suffix",
907+
"callee_suffix",
908+
"service_pattern",
909+
"lsp_cross",
910+
"lsp_ts_method",
911+
"lsp_py_method",
912+
"lsp_direct",
913+
"",
914+
NULL};
904915
for (int i = 0; strategies[i] != NULL; i++) {
905916
bool member = cbm_suppress_weak_member_match(true, true, strategies[i]);
906917
bool binding = cbm_suppress_weak_local_binding_call(true, true, strategies[i]);

0 commit comments

Comments
 (0)