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

Function testCorruptDeflateData

test/parallel/test-stream-iter-transform-errors.js:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32async function testCorruptDeflateData() {
33 const corrupt = new Uint8Array([0x78, 0xFF, 0xFF, 0xFF]);
34
35 await assert.rejects(
36 async () => await bytes(pull(from(corrupt), decompressDeflate())), {
37 name: 'Error',
38 code: 'Z_DATA_ERROR',
39 });
40}
41
42async function testCorruptBrotliData() {
43 const corrupt = new Uint8Array([0xFF, 0xFF, 0xFF, 0xFF]);

Calls 4

decompressDeflateFunction · 0.85
pullFunction · 0.70
bytesFunction · 0.50
fromFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…