()
| 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() { |
nothing calls this directly
no test coverage detected