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

Function test_values_iterator

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

Source from the content-addressed store, hash-verified

1180
1181#[test]
1182fn test_values_iterator() {
1183 let mut tree = BPlusTreeMap::new(4).unwrap();
1184 tree.insert(1, "one".to_string());
1185 tree.insert(2, "two".to_string());
1186 tree.insert(3, "three".to_string());
1187
1188 let values: Vec<_> = tree.values().collect();
1189 assert_eq!(
1190 values,
1191 vec![&"one".to_string(), &"two".to_string(), &"three".to_string()]
1192 );
1193}
1194
1195// ============================================================================
1196// NEW TESTS - Range Iteration

Callers

nothing calls this directly

Calls 2

insertMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected