MCPcopy Create free account
hub / github.com/garrytan/gstack / extractHelper

Function extractHelper

test/setup-windows-fallback.test.ts:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11// Slice out the _link_or_copy helper body via awk-style anchors so the test is
12// resilient to line-number drift.
13function 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
20describe('setup: _link_or_copy invariant (D7)', () => {
21 test('helper function is defined near the top of setup', () => {

Callers 2

runHelperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected