MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / fakeConn

Function fakeConn

packages/server/test/services.test.ts:88–97  ·  view source on GitHub ↗
(id = 'conn_x')

Source from the content-addressed store, hash-verified

86}
87
88function fakeConn(id = 'conn_x'): { id: string; sent: unknown[]; send(m: unknown): void } & WsConnection {
89 const sent: unknown[] = [];
90 return {
91 id,
92 sent,
93 send(m: unknown): void {
94 sent.push(m);
95 },
96 } as unknown as { id: string; sent: unknown[]; send(m: unknown): void } & WsConnection;
97}
98
99function captureThrown(fn: () => void): unknown {
100 try {

Callers 3

services.test.tsFile · 0.85
makeBrokerWithBusFunction · 0.85
makeQuestionBrokerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected