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

Function test_graph_try_get_vertex

atomic-core/src/output/alive/graph.rs:549–555  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

547
548 #[test]
549 fn test_graph_try_get_vertex() {
550 let mut graph = AliveGraph::new();
551 graph.push_vertex(AliveVertex::DUMMY);
552
553 assert!(graph.try_get_vertex(VertexId::DUMMY).is_some());
554 assert!(graph.try_get_vertex(VertexId::new(100)).is_none());
555 }
556
557 #[test]
558 fn test_graph_index_operator() {

Callers

nothing calls this directly

Calls 1

push_vertexMethod · 0.80

Tested by

no test coverage detected