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

Function makePeer

packages/rpc/src/sync-driver.test.ts:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23// wire.test.ts. These tests exercise the driver loop, not the
24// transport.
25function makePeer(): { db: Database; rpc: SyncRPC; close: () => void } {
26 const storage = new SQLiteTestStorage();
27 const db = new Database(storage);
28 initializeSchema(db, () => 1000);
29 const rpc = createSyncServer(db);
30 return { db, rpc, close: () => storage.close() };
31}
32
33function fileEntries(db: Database): string[] {
34 return db

Callers 1

Calls 3

closeMethod · 0.95
initializeSchemaFunction · 0.90
createSyncServerFunction · 0.85

Tested by

no test coverage detected