Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
23
async
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
share
Function · 0.85
from
Function · 0.50
Tested by
no test coverage detected