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

Function compact_no_deletes

nodedb-columnar/src/compaction/tests.rs:97–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96#[test]
97fn compact_no_deletes() {
98 let segment = write_segment(50);
99 let deletes = DeleteBitmap::new();
100
101 let result =
102 compact_segment(&segment, &deletes, &test_schema(), 0, None, None).expect("compact");
103
104 assert_eq!(result.live_rows, 50);
105 assert_eq!(result.removed_rows, 0);
106 assert!(result.segment.is_some());
107}
108
109#[test]
110fn merge_multiple_segments() {

Callers

nothing calls this directly

Calls 4

compact_segmentFunction · 0.85
write_segmentFunction · 0.70
test_schemaFunction · 0.70
expectMethod · 0.45

Tested by

no test coverage detected