MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / block_meta

Function block_meta

nodedb-fts/src/block.rs:311–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

309
310 #[test]
311 fn block_meta() {
312 let postings = make_postings(10);
313 let block = PostingBlock::from_postings(&postings);
314 let meta = block.meta();
315
316 assert_eq!(meta.doc_count, 10);
317 assert_eq!(meta.last_doc_id, Surrogate(27)); // (9 * 3)
318 assert_eq!(meta.block_max_tf, 5); // max of (i%5+1) for i=0..9
319 }
320
321 #[test]
322 fn into_blocks_splits() {

Callers

nothing calls this directly

Calls 2

make_postingsFunction · 0.70
metaMethod · 0.45

Tested by

no test coverage detected