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

Function parseSessionOptions

test/tools/spec-runner/index.js:326–335  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

324}
325
326function parseSessionOptions(options) {
327 const result = Object.assign({}, options);
328 if (result.defaultTransactionOptions && result.defaultTransactionOptions.readPreference) {
329 result.defaultTransactionOptions.readPreference = normalizeReadPreference(
330 result.defaultTransactionOptions.readPreference.mode
331 );
332 }
333
334 return result;
335}
336
337const IGNORED_COMMANDS = new Set([LEGACY_HELLO_COMMAND, 'configureFailPoint', 'endSessions']);
338const SDAM_EVENTS = new Set([

Callers 1

runTestSuiteTestFunction · 0.85

Calls 1

normalizeReadPreferenceFunction · 0.85

Tested by

no test coverage detected