MCPcopy Create free account
hub / github.com/TanStack/db / extractMessageKeys

Function extractMessageKeys

packages/db-ivm/tests/test-utils.ts:268–276  ·  view source on GitHub ↗
(
  messages: Array<[[K, V], number]>,
)

Source from the content-addressed store, hash-verified

266 * Extract unique keys from messages to verify incremental behavior
267 */
268export function extractMessageKeys<K, V>(
269 messages: Array<[[K, V], number]>,
270): Set<K> {
271 const keys = new Set<K>()
272 for (const [[key, _value], _multiplicity] of messages) {
273 keys.add(key)
274 }
275 return keys
276}
277
278/**
279 * Assert that only specific keys appear in messages (for incremental processing verification)

Callers 1

assertOnlyKeysAffectedFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected