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

Function testBytesStringSource

test/parallel/test-stream-iter-consumers-bytes.js:184–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182
183// Consumers accept string sources directly (normalized via from/fromSync)
184async function testBytesStringSource() {
185 const result = await bytes('hello-bytes');
186 assert.strictEqual(new TextDecoder().decode(result), 'hello-bytes');
187}
188
189function testBytesSyncStringSource() {
190 const result = bytesSync('hello-sync');

Calls 2

decodeMethod · 0.65
bytesFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…