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

Function backend

packages/computer/src/observe-integration.test.ts:91–99  ·  view source on GitHub ↗
(id: string, sync?: SyncRPC)

Source from the content-addressed store, hash-verified

89}
90
91function backend(id: string, sync?: SyncRPC): WorkspaceBackend {
92 return {
93 id,
94 type: "fake",
95 async connect(): Promise<BackendHandle> {
96 return { rpc: composite(sync ?? fakeSync()), close: async () => {} };
97 },
98 };
99}
100
101function failingBackend(id: string, reason: string): WorkspaceBackend {
102 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected