Commit 6e707f1
fix(parser): persist is_test on Rust function nodes (partial)
ir_to_graph wrote is_async/is_static/is_abstract but not is_test, so the
graph never carried the marker the visitor already computes. Add it, plus a
regression test that a #[test] fn with a descriptive name inside
`#[cfg(test)] mod tests` sets is_test.
NOTE: insufficient on its own — end-to-end pr_context still misreports
coverage; is_test is not reaching the queried nodes in the real indexing
pipeline (cause not yet isolated; not a cache artifact).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent ba5942f commit 6e707f1
2 files changed
Lines changed: 29 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1320 | 1320 | | |
1321 | 1321 | | |
1322 | 1322 | | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
1323 | 1350 | | |
1324 | 1351 | | |
1325 | 1352 | | |
| |||
0 commit comments