MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / triggers_node_split

Function triggers_node_split

nodedb-spatial/src/rtree/tree.rs:262–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260
261 #[test]
262 fn triggers_node_split() {
263 let mut tree = RTree::new();
264 let count = LEAF_CAPACITY * 3;
265 for i in 0..count as u64 {
266 tree.insert(make_entry(i, (i as f64) * 0.1, (i as f64) * 0.1));
267 }
268 assert_eq!(tree.len(), count);
269 let all = tree.search(&BoundingBox::new(-180.0, -90.0, 180.0, 90.0));
270 assert_eq!(all.len(), count);
271 }
272
273 #[test]
274 fn entries_enumeration() {

Callers

nothing calls this directly

Calls 3

make_entryFunction · 0.70
insertMethod · 0.45
searchMethod · 0.45

Tested by

no test coverage detected