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

Function create_tree_with_data

rust/tests/test_utils.rs:145–149  ·  view source on GitHub ↗

Create tree with custom capacity and insert 0..count sequential data

(capacity: usize, count: usize)

Source from the content-addressed store, hash-verified

143
144/// Create tree with custom capacity and insert 0..count sequential data
145pub fn create_tree_with_data(capacity: usize, count: usize) -> BPlusTreeMap<i32, String> {
146 let mut tree = create_tree_capacity(capacity);
147 insert_sequential_range(&mut tree, count);
148 tree
149}
150
151/// Create integer tree with custom capacity and insert 0..count sequential data
152pub fn create_tree_int_with_data(capacity: usize, count: usize) -> BPlusTreeMap<i32, i32> {

Calls 2

create_tree_capacityFunction · 0.85
insert_sequential_rangeFunction · 0.85

Tested by

no test coverage detected