Files
graphify/tests
Dan Caldr 289e870962 fix(affected): add defines to DEFAULT_AFFECTED_RELATIONS
Dart/Flutter (and Python, Go, and other file-module languages) extract a
class or function as a symbol node with a defines edge from its source
file. Without defines in DEFAULT_AFFECTED_RELATIONS the reverse walk
stops at depth 0 because the only incoming edge is invisible.

Measured on a real Flutter project (12 104 nodes, 12 420 edges):
- 4 793 symbols defined via defines edges
- 4 691 of them (97.9 %) had zero incoming edges from any whitelisted
  relation — affected returned 'No affected nodes found' for each one
- After adding defines: 100 % of symbols reachable through at minimum
  their defining file

Tests: 10 new regression tests in test_affected_defines.py.
All pass post-fix, all fail pre-fix.

(cherry picked from commit c695fdf8eb)
2026-10-10 22:11:03 +01:00
..