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

Function empty_block

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

Source from the content-addressed store, hash-verified

330
331 #[test]
332 fn empty_block() {
333 let block = PostingBlock::from_postings(&[]);
334 assert!(block.is_empty());
335 let bytes = block.to_bytes();
336 let restored = PostingBlock::from_bytes(&bytes).unwrap();
337 assert!(restored.is_empty());
338 }
339
340 #[test]
341 fn fieldnorm_encode_decode() {

Callers

nothing calls this directly

Calls 1

to_bytesMethod · 0.45

Tested by

no test coverage detected