(fn: string, kind: string)
| 111 | ].join('\n'), |
| 112 | }); |
| 113 | const targets = (fn: string, kind: string) => outOf(graph, fn).filter((e) => e.startsWith(kind) && e.includes('error_message')).map((e) => e.slice(kind.length)); |
| 114 | expect(targets('as_value', 'references')).toEqual(targets('as_call', 'calls')); |
| 115 | // A variant or a constant is no function: only the reads main already makes (the enum, the const). |
| 116 | expect(outOf(graph, 'as_value').filter((e) => e.includes('Wrap') || e.includes('MAX'))).toEqual(['references src/main.rs:Limits::MAX']); |
no test coverage detected