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

Function testGzipBinaryData

test/parallel/test-stream-iter-transform-sync.js:61–67  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61function testGzipBinaryData() {
62 const inputBuf = Buffer.alloc(10000);
63 for (let i = 0; i < inputBuf.length; i++) inputBuf[i] = i & 0xff;
64 const result = roundTripBytes(inputBuf, compressGzipSync(),
65 decompressGzipSync());
66 assert.deepStrictEqual(result, inputBuf);
67}
68
69// =============================================================================
70// Deflate sync round-trip tests

Calls 4

compressGzipSyncFunction · 0.85
decompressGzipSyncFunction · 0.85
allocMethod · 0.80
roundTripBytesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…