(...pids: number[])
| 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); |
no outgoing calls
no test coverage detected