MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / parseSummary

Function parseSummary

e2e/cli/election-cold-start.test.ts:109–118  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

107 ].join("\n");
108
109const parseSummary = (stdout: string): Record<string, string> => {
110 const line = stdout.split("\n").find((l) => l.includes("PROBE_SUMMARY"));
111 if (!line) throw new Error(`no PROBE_SUMMARY in:\n${stdout}`);
112 const out: Record<string, string> = {};
113 for (const tok of line.replace("PROBE_SUMMARY", "").trim().split(/\s+/)) {
114 const [k, v] = tok.split("=");
115 if (k) out[k] = v ?? "";
116 }
117 return out;
118};
119
120it("Cold-start election: N simultaneous clients all attach to one elected daemon", async () => {
121 if (guestOs() === "windows") {

Callers 1

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected