(over: Partial<RemoveBinaryProbes> & { present?: Set<string>; links?: Map<string, string> })
| 24 | const STATE = `${HOME}/.codegraph`; |
| 25 | |
| 26 | function probes(over: Partial<RemoveBinaryProbes> & { present?: Set<string>; links?: Map<string, string> }): RemoveBinaryProbes { |
| 27 | const present = over.present ?? new Set<string>(); |
| 28 | const links = over.links ?? new Map<string, string>(); |
| 29 | return { |
| 30 | filename: `${STATE}/versions/v1.4.0/lib/dist/bin/codegraph.js`, |
| 31 | platform: 'linux', |
| 32 | cwd: `${HOME}/project`, |
| 33 | env: {}, |
| 34 | homedir: HOME, |
| 35 | exists: (p) => present.has(p) || links.has(p), |
| 36 | readlink: (p) => links.get(p) ?? null, |
| 37 | capture: () => null, // no npm unless a test injects one |
| 38 | ...over, |
| 39 | }; |
| 40 | } |
| 41 | |
| 42 | /** A standard unix bundle install under ~/.codegraph, running from it. */ |
| 43 | function bundlePresent(): Set<string> { |
no test coverage detected