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

Class MockSocket

test/unit/cmap/connection.test.ts:130–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129 describe('NODE-6370: regression test', function () {
130 class MockSocket extends Socket {
131 override write(_data: string | Buffer) {
132 return false;
133 }
134 }
135
136 let socket: MockSocket;
137 let connection: Connection;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected