MCPcopy Create free account
hub / github.com/cortexkit/magic-context / rpc-client.test.ts

File rpc-client.test.ts

packages/plugin/src/shared/rpc-client.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { afterEach, describe, expect, test } from "bun:test";
2import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
3import { createServer } from "node:http";
4import { tmpdir } from "node:os";

Callers

nothing calls this directly

Calls 12

parseRpcPortFileFunction · 0.90
rpcPortFilePathFunction · 0.90
startRpcServerFunction · 0.85
writePortFileFunction · 0.85
closeServerFunction · 0.85
writePortFileForPidFunction · 0.85
callMethod · 0.80
makeTempDirFunction · 0.70
startMethod · 0.65
stopMethod · 0.65
closeMethod · 0.45
handleMethod · 0.45

Tested by

no test coverage detected