MCPcopy Index your code
hub / github.com/coder/mux / getWorkspaceStreamsForTests

Function getWorkspaceStreamsForTests

src/node/services/streamManager.test.ts:125–132  ·  view source on GitHub ↗
(streamManager: StreamManager)

Source from the content-addressed store, hash-verified

123}
124
125function 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
134async function appendPartialAssistantForTests(
135 workspaceId: string,

Callers 4

processCleanupStreamFunction · 0.85
setReplayStreamInfoFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected