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

Function test_vertex_id_hash

atomic-core/src/output/alive/vertex.rs:481–488  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

479
480 #[test]
481 fn test_vertex_id_hash() {
482 use std::collections::HashSet;
483 let mut set = HashSet::new();
484 set.insert(VertexId::new(1));
485 set.insert(VertexId::new(2));
486 set.insert(VertexId::new(1)); // duplicate
487 assert_eq!(set.len(), 2);
488 }
489
490 // -------------------------------------------------------------------------
491 // VertexFlags Tests

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected