A socket or named-pipe path no other test uses.
()
| 145 | |
| 146 | /** A socket or named-pipe path no other test uses. */ |
| 147 | function uniqueSocketPath(): string { |
| 148 | const id = randomBytes(6).toString('hex'); |
| 149 | return posix ? path.join(tempDir('cg-proofsock-'), `d-${id}.sock`) : `\\\\.\\pipe\\codegraph-prooftest-${id}`; |
| 150 | } |
| 151 | |
| 152 | /** Read lines off `socket` as they come. */ |
| 153 | function lineReader(socket: net.Socket): () => Promise<string> { |
no test coverage detected