MCPcopy
hub / github.com/mongodb/node-mongodb-native / fakeServer

Function fakeServer

test/tools/utils.ts:516–525  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

514}
515
516export function fakeServer() {
517 return {
518 s: { state: 'connected' },
519 removeListener: () => true,
520 pool: {
521 checkOut: async () => ({}),
522 checkIn: () => undefined
523 }
524 };
525}
526
527/**
528 * A utility to measure the duration of an async function. This is intended to be used for CSOT

Calls

no outgoing calls

Tested by

no test coverage detected