MCPcopy Index your code
hub / github.com/nodejs/node / testGzipWithStrategy

Function testGzipWithStrategy

test/parallel/test-stream-iter-transform-coverage.js:59–64  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57
58// Gzip with explicit strategy option
59async function testGzipWithStrategy() {
60 const input = 'strategy test data '.repeat(100);
61 const c = compressGzip({ strategy: constants.Z_DEFAULT_STRATEGY });
62 const result = await roundTrip(input, c, decompressGzip());
63 assert.strictEqual(result, input);
64}
65
66// Deflate with Z_FIXED strategy
67async function testDeflateWithFixedStrategy() {

Calls 3

compressGzipFunction · 0.85
decompressGzipFunction · 0.85
roundTripFunction · 0.70

Tested by

no test coverage detected