MCPcopy Create free account
hub / github.com/cloudflare/computer / freshId

Function freshId

packages/computer/tests/worker-backend.test.ts:48–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46// by the `id` query param.
47let counter = 0;
48function freshId(): string {
49 return `case-${++counter}`;
50}
51
52async function write(id: string, path: string, body: string): Promise<void> {
53 const url = new URL("http://test/write");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected