@@ -72,47 +72,36 @@ describe.each(ENGINES)('this-dispatch scope (%s)', (engine) => {
7272 ) . toBeDefined ( ) ;
7373 } ) ;
7474
75- // Native binary v3.11.2 does not include the edge_builder.rs fix for issue #1324 yet.
76- // These assertions are active for WASM and will be re-enabled for native once a new
77- // binary is published that includes the Rust fix.
78- if ( engine === 'native' ) {
79- it . todo ( 'does NOT emit Shape.describe → Calculator.area (native binary gap #1324)' ) ;
80- it . todo ( 'does NOT emit Shape.describe → Formatter.area (native binary gap #1324)' ) ;
81- it . todo (
82- 'does NOT emit Caller.run → Sibling.area (single-match false-positive, native binary gap #1324)' ,
75+ it ( 'does NOT emit Shape.describe → Calculator.area (unrelated class, same method name)' , ( ) => {
76+ const edge = callEdges . find (
77+ ( e ) => e . caller_name === 'Shape.describe' && e . callee_name === 'Calculator.area' ,
8378 ) ;
84- } else {
85- it ( 'does NOT emit Shape.describe → Calculator.area (unrelated class, same method name)' , ( ) => {
86- const edge = callEdges . find (
87- ( e ) => e . caller_name === 'Shape.describe' && e . callee_name === 'Calculator.area' ,
88- ) ;
89- expect (
90- edge ,
91- `Expected NO Shape.describe → Calculator.area edge (false-positive from same-file scan).\nActual edges:\n${ JSON . stringify ( callEdges , null , 2 ) } ` ,
92- ) . toBeUndefined ( ) ;
93- } ) ;
79+ expect (
80+ edge ,
81+ `Expected NO Shape.describe → Calculator.area edge (false-positive from same-file scan).\nActual edges:\n${ JSON . stringify ( callEdges , null , 2 ) } ` ,
82+ ) . toBeUndefined ( ) ;
83+ } ) ;
9484
95- it ( 'does NOT emit Shape.describe → Formatter.area (unrelated class, same method name)' , ( ) => {
96- const edge = callEdges . find (
97- ( e ) => e . caller_name === 'Shape.describe' && e . callee_name === 'Formatter.area' ,
98- ) ;
99- expect (
100- edge ,
101- `Expected NO Shape.describe → Formatter.area edge (false-positive from same-file scan).\nActual edges:\n${ JSON . stringify ( callEdges , null , 2 ) } ` ,
102- ) . toBeUndefined ( ) ;
103- } ) ;
85+ it ( 'does NOT emit Shape.describe → Formatter.area (unrelated class, same method name)' , ( ) => {
86+ const edge = callEdges . find (
87+ ( e ) => e . caller_name === 'Shape.describe' && e . callee_name === 'Formatter.area' ,
88+ ) ;
89+ expect (
90+ edge ,
91+ `Expected NO Shape.describe → Formatter.area edge (false-positive from same-file scan).\nActual edges:\n${ JSON . stringify ( callEdges , null , 2 ) } ` ,
92+ ) . toBeUndefined ( ) ;
93+ } ) ;
10494
105- // single-sibling.ts: only one class (Sibling) has area(); Caller does not.
106- // The single-match arm must still check the caller's own class — Caller.run
107- // must not gain a false edge to Sibling.area.
108- it ( 'does NOT emit Caller.run → Sibling.area (single-match false-positive, same-file scan)' , ( ) => {
109- const edge = callEdges . find (
110- ( e ) => e . caller_name === 'Caller.run' && e . callee_name === 'Sibling.area' ,
111- ) ;
112- expect (
113- edge ,
114- `Expected NO Caller.run → Sibling.area edge (false-positive from single-match suffix scan).\nActual edges:\n${ JSON . stringify ( callEdges , null , 2 ) } ` ,
115- ) . toBeUndefined ( ) ;
116- } ) ;
117- }
95+ // single-sibling.ts: only one class (Sibling) has area(); Caller does not.
96+ // The single-match arm must still check the caller's own class — Caller.run
97+ // must not gain a false edge to Sibling.area.
98+ it ( 'does NOT emit Caller.run → Sibling.area (single-match false-positive, same-file scan)' , ( ) => {
99+ const edge = callEdges . find (
100+ ( e ) => e . caller_name === 'Caller.run' && e . callee_name === 'Sibling.area' ,
101+ ) ;
102+ expect (
103+ edge ,
104+ `Expected NO Caller.run → Sibling.area edge (false-positive from single-match suffix scan).\nActual edges:\n${ JSON . stringify ( callEdges , null , 2 ) } ` ,
105+ ) . toBeUndefined ( ) ;
106+ } ) ;
118107} ) ;
0 commit comments