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

Function write

__tests__/go-stdlib-named-locals.test.ts:465–468  ·  view source on GitHub ↗
(rel: string, content: string)

Source from the content-addressed store, hash-verified

463 it('is read from the file as a sync leaves it', async () => {
464 const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'cg-go-stdlib-locals-sync-'));
465 const write = (rel: string, content: string): void => {
466 fs.mkdirSync(path.dirname(path.join(dir, rel)), { recursive: true });
467 fs.writeFileSync(path.join(dir, rel), content);
468 };
469 write('go.mod', 'module example.com/app\n\ngo 1.22\n');
470 write('gin/context.go', files['gin/context.go']!);
471 // The call keeps its line and column: a stale reading would still see the parameter.

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected