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

Function box_map_elements_panic

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

Source from the content-addressed store, hash-verified

2481
2482 #[test]
2483 fn box_map_elements_panic() {
2484 use std::panic::{AssertUnwindSafe, catch_unwind};
2485 let boxed = Box::new(TestTreeNode::new_leaf(42i32));
2486 let result = catch_unwind(AssertUnwindSafe(|| {
2487 boxed
2488 .map_elements(|_: TestTreeNode<i32>| -> Result<_> {
2489 panic!("simulated panic during rewrite")
2490 })
2491 .ok()
2492 }));
2493 assert!(result.is_err());
2494 }
2495}

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
map_elementsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…