MCPcopy
hub / github.com/yjs/yjs / testConcurrentInsertDeleteWithThreeConflicts

Function testConcurrentInsertDeleteWithThreeConflicts

tests/y-array.tests.js:185–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 * @param {t.TestCase} tc
184 */
185export const testConcurrentInsertDeleteWithThreeConflicts = tc => {
186 const { testConnector, users, array0, array1, array2 } = init(tc, { users: 3 })
187 array0.insert(0, ['x', 'y', 'z'])
188 testConnector.flushAllMessages()
189 array0.insert(1, [0])
190 array1.delete(0)
191 array1.delete(1, 1)
192 array2.insert(1, [2])
193 compare(users)
194}
195
196/**
197 * @param {t.TestCase} tc

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…