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

Function probes

__tests__/remove-binary.test.ts:26–40  ·  view source on GitHub ↗
(over: Partial<RemoveBinaryProbes> & { present?: Set<string>; links?: Map<string, string> })

Source from the content-addressed store, hash-verified

24const STATE = `${HOME}/.codegraph`;
25
26function 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. */
43function bundlePresent(): Set<string> {

Callers 1

Calls 2

hasMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected