Commit 04d1e5c
authored
test(native): verify UNION file-selection narrowing excludes class-method files
* fix(native): expand super-dispatch edges into CHA sibling overrides (#1544)
runPostNativeCha was filtering out edges with technique='cha', which
prevented it from expanding the super.method() → Parent.method edges
inserted by runPostNativeThisDispatch (which also uses technique='cha').
Additionally, runPostNativeCha was running before runPostNativeThisDispatch,
so the super-dispatch seed edges were not yet in the DB when the BFS
expansion ran.
Two changes fix parity with WASM:
1. Reorder so runPostNativeThisDispatch runs first, putting the
technique='cha' seed edges in the DB before the expansion pass reads
them.
2. Rename the CHA expansion output to technique='cha-expanded' and update
both filter queries (native and WASM runChaPostPass) from != 'cha'
to != 'cha-expanded'. This lets the expansion pass see 'cha'-tagged
super-dispatch edges while still preventing infinite re-expansion of its
own output edges.
After this fix, native produces 6 CHA edges that WASM already emitted
(e.g. PostMixin.m → B.m across jelly-micro fixtures where PostMixin and B
both extend A).
Closes #1544
* test(native): verify UNION file-selection narrowing excludes class-method files (#1550)
Adds a regression test confirming that the NOT IN guard in the third UNION arm
of runPostNativeThisDispatch correctly excludes class-method files (e.g. Foo.bar)
from the full-build re-parse set, while still resolving func-prop this-dispatch
(obj.run → obj.helper). The SQL fix was merged in #1506; this test closes the
tracking issue with a dedicated guard.
Closes #1550
* test(native): tighten over-scan assertions and restrict to native engine
- Replace vacuously-true cross-owner negative assertions (Foo.bar → obj.*)
with cross-file edge assertions scoped to native via it.skipIf
- The SQL UNION guard lives in runPostNativeThisDispatch which only runs for
native builds; wasm never enters that code path
- Query now includes src_file/tgt_file so assertions can check file provenance
- Expand fixture doc comment to explain the seen-set dedup behaviour and why
cross-file edges are the observable failure signal1 parent aca4b46 commit 04d1e5c
1 file changed
Lines changed: 160 additions & 0 deletions
Lines changed: 160 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
0 commit comments