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

Function insert_range

rust/tests/test_utils.rs:113–117  ·  view source on GitHub ↗

Insert sequential data start..end with string values

(tree: &mut BPlusTreeMap<i32, String>, start: usize, end: usize)

Source from the content-addressed store, hash-verified

111
112/// Insert sequential data start..end with string values
113pub fn insert_range(tree: &mut BPlusTreeMap<i32, String>, start: usize, end: usize) {
114 for i in start..end {
115 tree.insert(i as i32, format!("value_{}", i));
116 }
117}
118
119/// Insert sequential data start..end with integer values
120pub fn insert_range_int(tree: &mut BPlusTreeMap<i32, i32>, start: usize, end: usize) {

Callers 2

test_error_recoveryFunction · 0.85

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected