Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/db
/ topK.test.ts
File
topK.test.ts
packages/db-ivm/tests/operators/topK.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ describe, expect, test } from
'vitest'
2
import
{ D2 } from
'../../src/d2.js'
3
import
{ MultiSet } from
'../../src/multiset.js'
4
import
{ topK } from
'../../src/operators/topK.js'
Callers
nothing calls this directly
Calls
10
expect
Function · 0.90
topK
Function · 0.85
output
Function · 0.85
newInput
Method · 0.80
pipe
Method · 0.80
finalize
Method · 0.80
getInner
Method · 0.80
sortResults
Function · 0.70
sendData
Method · 0.45
run
Method · 0.45
Tested by
no test coverage detected