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

Function test_empty_tree_leaf_count

rust/tests/debug_infinite_loop.rs:8–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7#[test]
8fn test_empty_tree_leaf_count() {
9 println!("Creating tree...");
10 let tree: BPlusTreeMap<i32, String> = BPlusTreeMap::new(4).unwrap();
11
12 println!("Getting leaf count...");
13 let count = tree.leaf_count();
14 println!("Leaf count: {}", count);
15
16 assert_eq!(count, 1); // Empty tree should have 1 leaf
17}
18
19#[test]
20fn test_tree_creation_only() {

Callers

nothing calls this directly

Calls 1

leaf_countMethod · 0.45

Tested by

no test coverage detected