MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / fakeServer

Function fakeServer

__tests__/daemon-socket-fallback.test.ts:63–63  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

61
62/** A stand-in net.Server — bindFirstUsableSocket only ever passes it through. */
63const fakeServer = (tag: string): net.Server => ({ tag } as unknown as net.Server);
64
65/** Build an ErrnoException carrying a specific code, like a real listen() error. */
66function errno(code: string): NodeJS.ErrnoException {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected