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

Function roundTrip

test/parallel/test-stream-iter-transform-roundtrip.js:27–29  ·  view source on GitHub ↗
(input, compress, decompress)

Source from the content-addressed store, hash-verified

25// =============================================================================
26
27async function roundTrip(input, compress, decompress) {
28 return text(pull(pull(from(input), compress), decompress));
29}
30
31async function roundTripBytes(inputBuf, compress, decompress) {
32 return bytes(pull(pull(from(inputBuf), compress), decompress));

Callers 12

testGzipRoundTripFunction · 0.70
testGzipLargeDataFunction · 0.70
testDeflateRoundTripFunction · 0.70
testDeflateLargeDataFunction · 0.70
testBrotliRoundTripFunction · 0.70
testBrotliLargeDataFunction · 0.70
testZstdRoundTripFunction · 0.70
testZstdLargeDataFunction · 0.70
testEmptyInputGzipFunction · 0.70
testEmptyInputDeflateFunction · 0.70
testEmptyInputBrotliFunction · 0.70
testEmptyInputZstdFunction · 0.70

Calls 3

pullFunction · 0.70
textFunction · 0.50
fromFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…