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

Function plan_compaction_output

nodedb/src/storage/compaction.rs:240–247  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

238
239 #[test]
240 fn plan_compaction_output() {
241 let segments = make_segments(3);
242 let result = plan_compaction(&segments, Path::new("/tmp")).unwrap();
243 assert_eq!(result.input_segments.len(), 3);
244 assert_eq!(result.min_lsn, 0);
245 assert_eq!(result.max_lsn, 2999);
246 assert!(result.tombstones_removed > 0);
247 }
248
249 #[test]
250 fn hnsw_merge_drops_tombstones() {

Callers

nothing calls this directly

Calls 2

make_segmentsFunction · 0.85
plan_compactionFunction · 0.85

Tested by

no test coverage detected