Lines Matching refs:method
50 for (const method of [
58 zlib[method[0]](expect, opts, common.mustCall((err, result) => {
59 zlib[method[1]](result, opts, common.mustCall((err, result) => {
61 `Should get original string after ${method[0]}/` +
62 `${method[1]} ${type} with options.`);
66 zlib[method[0]](expect, common.mustCall((err, result) => {
67 zlib[method[1]](result, common.mustCall((err, result) => {
69 `Should get original string after ${method[0]}/` +
70 `${method[1]} ${type} without options.`);
74 zlib[method[0]](expect, optsInfo, common.mustCall((err, result) => {
75 assert.ok(result.engine instanceof zlib[method[2]],
76 `Should get engine ${method[2]} after ${method[0]} ` +
80 zlib[method[1]](compressed, optsInfo, common.mustCall((err, result) => {
82 `Should get original string after ${method[0]}/` +
83 `${method[1]} ${type} with info option.`);
84 assert.ok(result.engine instanceof zlib[method[3]],
85 `Should get engine ${method[3]} after ${method[0]} ` +
91 const compressed = zlib[`${method[0]}Sync`](expect, opts);
92 const decompressed = zlib[`${method[1]}Sync`](compressed, opts);
94 `Should get original string after ${method[0]}Sync/` +
95 `${method[1]}Sync ${type} with options.`);
100 const compressed = zlib[`${method[0]}Sync`](expect);
101 const decompressed = zlib[`${method[1]}Sync`](compressed);
103 `Should get original string after ${method[0]}Sync/` +
104 `${method[1]}Sync ${type} without options.`);
109 const compressed = zlib[`${method[0]}Sync`](expect, optsInfo);
110 assert.ok(compressed.engine instanceof zlib[method[2]],
111 `Should get engine ${method[2]} after ${method[0]} ` +
113 const decompressed = zlib[`${method[1]}Sync`](compressed.buffer,
116 `Should get original string after ${method[0]}Sync/` +
117 `${method[1]}Sync ${type} without options.`);
118 assert.ok(decompressed.engine instanceof zlib[method[3]],
119 `Should get engine ${method[3]} after ${method[0]} ` +