MCPcopy Index your code
hub / github.com/nodejs/node / [shareProtocol]

Function [shareProtocol]

test/parallel/test-stream-iter-share-coverage.js:25–27  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

23async function testShareProtocolHappyPath() {
24 const obj = {
25 [shareProtocol](options) {
26 return share(from('protocol-data'), options);
27 },
28 };
29 const shared = Share.from(obj);
30 const result = await text(shared.pull());

Callers

nothing calls this directly

Calls 2

shareFunction · 0.85
fromFunction · 0.50

Tested by

no test coverage detected