(id: string, sync?: SyncRPC)
| 89 | } |
| 90 | |
| 91 | function 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 | |
| 101 | function failingBackend(id: string, reason: string): WorkspaceBackend { |
| 102 | return { |
no outgoing calls
no test coverage detected