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

Function do_root_test

datafusion/common/src/error.rs:1462–1468  ·  view source on GitHub ↗
(e: DataFusionError, exp: DataFusionError)

Source from the content-addressed store, hash-verified

1460 }
1461
1462 fn do_root_test(e: DataFusionError, exp: DataFusionError) {
1463 let e = e.find_root();
1464
1465 // DataFusionError does not implement Eq, so we use a string comparison + some cheap "same variant" test instead
1466 assert_eq!(e.strip_backtrace(), exp.strip_backtrace());
1467 assert_eq!(std::mem::discriminant(e), std::mem::discriminant(&exp),)
1468 }
1469
1470 #[test]
1471 fn test_iter() {

Callers 1

test_find_root_errorFunction · 0.85

Calls 1

find_rootMethod · 0.80

Tested by 1

test_find_root_errorFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…