MCPcopy Create free account
hub / github.com/cli/cli / temporary

Function temporary

evals/src/harness.test.ts:25–29  ·  view source on GitHub ↗
(t: TestContext)

Source from the content-addressed store, hash-verified

23const exec = promisify(execFile);
24
25async function temporary(t: TestContext): Promise<string> {
26 const path = await mkdtemp(join(tmpdir(), "gh-test-"));
27 t.after(() => rm(path, { recursive: true }));
28 return path;
29}
30
31async function observedProcess(t: TestContext, source: string) {
32 const root = await temporary(t);

Callers 2

observedProcessFunction · 0.85
harness.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected