MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / test_iterate_empty_range

Function test_iterate_empty_range

rust/tests/bplus_tree.rs:1266–1275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1264
1265#[test]
1266fn test_iterate_empty_range() {
1267 let mut tree = BPlusTreeMap::new(4).unwrap();
1268 for i in 0..10 {
1269 tree.insert(i, format!("value{}", i));
1270 }
1271
1272 // Start after end (invalid range)
1273 let items: Vec<_> = tree.items_range(Some(&7), Some(&3)).collect();
1274 assert_eq!(items, vec![]);
1275}
1276
1277// ============================================================================
1278// NEW TESTS - Invariant Checking

Callers

nothing calls this directly

Calls 2

items_rangeMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected