MCPcopy
hub / github.com/yjs/yjs / testGarbageCollector

Function testGarbageCollector

tests/y-array.tests.js:395–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393 * @param {t.TestCase} tc
394 */
395export const testGarbageCollector = tc => {
396 const { testConnector, users, array0 } = init(tc, { users: 3 })
397 array0.insert(0, ['x', 'y', 'z'])
398 testConnector.flushAllMessages()
399 users[0].disconnect()
400 array0.delete(0, 3)
401 users[0].connect()
402 testConnector.flushAllMessages()
403 compare(users)
404}
405
406/**
407 * @param {t.TestCase} tc

Callers

nothing calls this directly

Calls 7

initFunction · 0.90
compareFunction · 0.90
insertMethod · 0.80
flushAllMessagesMethod · 0.80
disconnectMethod · 0.80
connectMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…