MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / swapCode

Function swapCode

__tests__/upgrade.test.ts:339–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337 const script = () => buildWindowsUpgradeScript('C:\\Users\\me\\AppData\\Local\\codegraph\\current', 'v1.6.2', 'x64');
338 /** The swap function's own statements, comments dropped. */
339 const swapCode = () => WINDOWS_SWAP_FUNCTION.split('\n').filter((l) => !l.trim().startsWith('#')).join('\n');
340
341 it('install.ps1 carries the same swap function, verbatim', () => {
342 const m = /# >>> Install-CodeGraphFiles[^\n]*\n([\s\S]*?)# <<< Install-CodeGraphFiles/.exec(installPs1());

Callers 1

upgrade.test.tsFile · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected