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

Function writeLock

__tests__/daemon-project-gone.test.ts:31–35  ·  view source on GitHub ↗
(root: string, pid: number)

Source from the content-addressed store, hash-verified

29const BIN = path.resolve(__dirname, '../dist/bin/codegraph.js');
30
31function writeLock(root: string, pid: number): string {
32 const pidPath = getDaemonPidPath(root);
33 fs.writeFileSync(pidPath, encodeLockInfo({ pid, version: '0.0.0-test', socketPath: 'x', startedAt: Date.now() }));
34 return pidPath;
35}
36
37describe('projectGoneReason (#3245)', () => {
38 let root: string;

Callers 1

Calls 2

getDaemonPidPathFunction · 0.90
encodeLockInfoFunction · 0.90

Tested by

no test coverage detected