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

Function deadOnly

__tests__/daemon-client-liveness.test.ts:46–46  ·  view source on GitHub ↗
(...pids: number[])

Source from the content-addressed store, hash-verified

44 const aliveAll = () => true;
45 const deadAll = () => false;
46 const deadOnly = (...pids: number[]) => (pid: number) => !pids.includes(pid);
47
48 it('never reaps a client with an unknown pid (no client-hello)', () => {
49 expect(peerIsDead({ pid: null, hostPid: null }, deadAll)).toBe(false);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected