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

Function rawDictionaryTest

test/parallel/test-zlib-dictionary.js:111–135  ·  view source on GitHub ↗
(spdyDict)

Source from the content-addressed store, hash-verified

109}
110
111function rawDictionaryTest(spdyDict) {
112 let output = '';
113 const deflate = zlib.createDeflateRaw({ dictionary: spdyDict });
114 const inflate = zlib.createInflateRaw({ dictionary: spdyDict });
115 inflate.setEncoding('utf-8');
116
117 deflate.on('data', function(chunk) {
118 inflate.write(chunk);
119 });
120
121 inflate.on('data', function(chunk) {
122 output += chunk;
123 });
124
125 deflate.on('end', function() {
126 inflate.end();
127 });
128
129 inflate.on('end', common.mustCall(function() {
130 assert.strictEqual(input, output);
131 }));
132
133 deflate.write(input);
134 deflate.end();
135}
136
137function deflateRawResetDictionaryTest(spdyDict) {
138 let doneReset = false;

Callers 1

Calls 4

setEncodingMethod · 0.45
onMethod · 0.45
writeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…