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

Method getResult

packages/db-ivm/tests/test-utils.ts:154–169  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152 }
153
154 getResult(): KeyedTestResult<K, V> {
155 const materializedResults = materializeKeyedResults(this.messages)
156 const sortedResults = Array.from(materializedResults.entries()).sort(
157 (a, b) => {
158 // Sort by key for consistent ordering
159 return JSON.stringify(a[0]).localeCompare(JSON.stringify(b[0]))
160 },
161 )
162
163 return {
164 messages: this.messages,
165 messageCount: this.messages.length,
166 materializedResults,
167 sortedResults,
168 }
169 }
170
171 reset() {
172 this.messages = []

Callers 3

testJoinFunction · 0.95
testCountFunction · 0.95
testJoinFunction · 0.95

Calls 3

materializeKeyedResultsFunction · 0.85
fromMethod · 0.80
entriesMethod · 0.45

Tested by 3

testJoinFunction · 0.76
testCountFunction · 0.76
testJoinFunction · 0.76