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

Function testPullSyncIdentity

test/parallel/test-stream-iter-pull-sync.js:8–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6const { pullSync, fromSync, bytesSync, tapSync } = require('stream/iter');
7
8function testPullSyncIdentity() {
9 // No transforms - just pass through
10 const data = bytesSync(pullSync(fromSync('hello')));
11 assert.deepStrictEqual(data, new TextEncoder().encode('hello'));
12}
13
14function testPullSyncStatelessTransform() {
15 const upper = (chunks) => {

Callers 1

Calls 4

bytesSyncFunction · 0.85
pullSyncFunction · 0.85
encodeMethod · 0.80
fromSyncFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…