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

Function test_scc_id_hash

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

Source from the content-addressed store, hash-verified

599
600 #[test]
601 fn test_scc_id_hash() {
602 use std::collections::HashSet;
603 let mut set = HashSet::new();
604 set.insert(SccId::new(1));
605 set.insert(SccId::new(2));
606 set.insert(SccId::new(1)); // duplicate
607 assert_eq!(set.len(), 2);
608 }
609
610 // -------------------------------------------------------------------------
611 // PathElement Tests

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected