MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_conflict_path_iter

Function test_conflict_path_iter

atomic-core/src/output/alive/order.rs:678–685  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

676
677 #[test]
678 fn test_conflict_path_iter() {
679 let mut path = ConflictPath::new();
680 path.push(PathElement::scc(SccId::new(0)));
681 path.push(PathElement::scc(SccId::new(1)));
682
683 let elements: Vec<_> = path.iter().collect();
684 assert_eq!(elements.len(), 2);
685 }
686
687 // -------------------------------------------------------------------------
688 // ConflictTree Tests

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected