(streamManager: StreamManager)
| 123 | } |
| 124 | |
| 125 | function getWorkspaceStreamsForTests(streamManager: StreamManager): Map<string, unknown> { |
| 126 | const workspaceStreams: unknown = Reflect.get(streamManager, "workspaceStreams"); |
| 127 | expect(workspaceStreams instanceof Map).toBe(true); |
| 128 | if (!(workspaceStreams instanceof Map)) { |
| 129 | throw new Error("Expected StreamManager.workspaceStreams to be a Map"); |
| 130 | } |
| 131 | return workspaceStreams as Map<string, unknown>; |
| 132 | } |
| 133 | |
| 134 | async function appendPartialAssistantForTests( |
| 135 | workspaceId: string, |
no test coverage detected