()
| 11 | // Slice out the _link_or_copy helper body via awk-style anchors so the test is |
| 12 | // resilient to line-number drift. |
| 13 | function extractHelper(): string { |
| 14 | const start = SETUP_SRC.indexOf('_link_or_copy() {'); |
| 15 | const end = SETUP_SRC.indexOf('\n}\n', start); |
| 16 | if (start < 0 || end < 0) throw new Error('Could not locate _link_or_copy() in setup'); |
| 17 | return SETUP_SRC.slice(start, end + 2); |
| 18 | } |
| 19 | |
| 20 | describe('setup: _link_or_copy invariant (D7)', () => { |
| 21 | test('helper function is defined near the top of setup', () => { |
no outgoing calls
no test coverage detected