MCPcopy Create free account
hub / github.com/apache/datafusion / test_large_tree

Function test_large_tree

datafusion/common/src/tree_node.rs:2442–2452  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2440 #[cfg(feature = "recursive_protection")]
2441 #[test]
2442 fn test_large_tree() {
2443 let mut item = TestTreeNode::new_leaf("initial".to_string());
2444 for i in 0..3000 {
2445 item = TestTreeNode::new(vec![item], format!("parent-{i}"));
2446 }
2447
2448 let mut visitor =
2449 TestVisitor::new(Box::new(visit_continue), Box::new(visit_continue));
2450
2451 item.visit(&mut visitor).unwrap();
2452 }
2453
2454 #[test]
2455 fn box_map_elements_reuses_allocation() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
to_stringMethod · 0.45
visitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…