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

Function test_iter

datafusion/common/src/error.rs:1471–1484  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1469
1470 #[test]
1471 fn test_iter() {
1472 let err = DataFusionError::Collection(vec![
1473 DataFusionError::Plan("a".to_string()),
1474 DataFusionError::Collection(vec![
1475 DataFusionError::Plan("b".to_string()),
1476 DataFusionError::Plan("c".to_string()),
1477 ]),
1478 ]);
1479 let errs = err.iter().collect::<Vec<_>>();
1480 assert_eq!(errs.len(), 3);
1481 assert_eq!(errs[0].strip_backtrace(), "Error during planning: a");
1482 assert_eq!(errs[1].strip_backtrace(), "Error during planning: b");
1483 assert_eq!(errs[2].strip_backtrace(), "Error during planning: c");
1484 }
1485}

Callers

nothing calls this directly

Calls 1

iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…