MCPcopy Create free account
hub / github.com/nodejs/node / testShareSyncStringSource

Function testShareSyncStringSource

test/parallel/test-stream-iter-share-sync.js:148–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146
147// shareSync() accepts string source directly (normalized via fromSync())
148function testShareSyncStringSource() {
149 const shared = shareSync('hello-sync-share');
150 const result = textSync(shared.pull());
151 assert.strictEqual(result, 'hello-sync-share');
152}
153
154Promise.all([
155 testShareSyncBasic(),

Callers 1

Calls 3

shareSyncFunction · 0.85
textSyncFunction · 0.85
pullMethod · 0.45

Tested by

no test coverage detected