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

Function create_tree_int_with_data

rust/tests/test_utils.rs:152–156  ·  view source on GitHub ↗

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

(capacity: usize, count: usize)

Source from the content-addressed store, hash-verified

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> {
153 let mut tree = create_tree_capacity_int(capacity);
154 insert_sequential_range_int(&mut tree, count);
155 tree
156}
157
158/// Create tree with data using multiplier pattern (common: i * 2, i * 3, i * 5, i * 10)
159pub fn create_tree_4_with_multiplier(count: usize, multiplier: i32) -> BPlusTreeMap<i32, String> {

Callers

nothing calls this directly

Calls 2

create_tree_capacity_intFunction · 0.85

Tested by

no test coverage detected