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:788–795  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

786
787 #[test]
788 fn test_conflict_path_iter() {
789 let mut path = ConflictPath::new();
790 path.push(PathElement::scc(SccId::new(0)));
791 path.push(PathElement::scc(SccId::new(1)));
792
793 let elements: Vec<_> = path.iter().collect();
794 assert_eq!(elements.len(), 2);
795 }
796
797 // -------------------------------------------------------------------------
798 // ConflictTree Tests

Callers

nothing calls this directly

Calls 2

pushMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected