()
| 59 | } |
| 60 | |
| 61 | function 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 |
no test coverage detected
searching dependent graphs…