MCPcopy
hub / github.com/yjs/yjs / testRepeatRandomDiffing

Function testRepeatRandomDiffing

tests/IdSet.tests.js:147–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145 * @param {t.TestCase} tc
146 */
147export const testRepeatRandomDiffing = tc => {
148 const clients = 4
149 const clockRange = 100
150 const ds1 = createRandomIdSet(tc.prng, clients, clockRange)
151 const ds2 = createRandomIdSet(tc.prng, clients, clockRange)
152 const merged = d.mergeIdSets([ds1, ds2])
153 const e1 = d.diffIdSet(ds1, ds2)
154 const e2 = d.diffIdSet(merged, ds2)
155 compareIdSets(e1, e2)
156}
157
158/**
159 * @param {t.TestCase} tc

Callers

nothing calls this directly

Calls 2

createRandomIdSetFunction · 0.90
compareIdSetsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…