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

Function getCompressor

test/tools/runner/config.ts:69–82  ·  view source on GitHub ↗
(compressor: string | undefined)

Source from the content-addressed store, hash-verified

67}
68
69function getCompressor(compressor: string | undefined): CompressorName {
70 if (!compressor) return null;
71
72 switch (compressor) {
73 case 'zstd':
74 return 'zstd';
75 case 'zlib':
76 return 'zlib';
77 case 'snappy':
78 return 'snappy';
79 default:
80 throw new Error('unsupported test runner compressor, would default to no compression');
81 }
82}
83
84export class TestConfiguration {
85 version: string;

Callers 1

constructorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected