MCPcopy Create free account
hub / github.com/nodejs/node / [shareSyncProtocol]

Function [shareSyncProtocol]

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

Source from the content-addressed store, hash-verified

35async function testSyncShareProtocolHappyPath() {
36 const obj = {
37 [shareSyncProtocol](options) {
38 return shareSync(fromSync('sync-protocol'), options);
39 },
40 };
41 const shared = SyncShare.fromSync(obj);
42 const result = textSync(shared.pull());

Callers

nothing calls this directly

Calls 2

shareSyncFunction · 0.85
fromSyncFunction · 0.50

Tested by

no test coverage detected