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

Source from the content-addressed store, hash-verified

709
710 #[test]
711 fn test_scc_id_hash() {
712 use std::collections::HashSet;
713 let mut set = HashSet::new();
714 set.insert(SccId::new(1));
715 set.insert(SccId::new(2));
716 set.insert(SccId::new(1)); // duplicate
717 assert_eq!(set.len(), 2);
718 }
719
720 // -------------------------------------------------------------------------
721 // PathElement Tests

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected