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

Function fakeGateway

packages/server/test/start.test.ts:111–117  ·  view source on GitHub ↗
(
  listen: (host: string, port: number) => Promise<string>,
)

Source from the content-addressed store, hash-verified

109}
110
111function fakeGateway(
112 listen: (host: string, port: number) => Promise<string>,
113): Parameters<typeof listenWithPortRetry>[0]['gateway'] {
114 return { _serviceBrand: undefined, app: undefined, listen } as unknown as Parameters<
115 typeof listenWithPortRetry
116 >[0]['gateway'];
117}
118
119function addrInUse(): NodeJS.ErrnoException {
120 const err = new Error('listen EADDRINUSE') as NodeJS.ErrnoException;

Callers 1

start.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected