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

Function test_graph_index_mut_operator

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

Source from the content-addressed store, hash-verified

595
596 #[test]
597 fn test_graph_index_mut_operator() {
598 let mut graph = AliveGraph::new();
599 graph.push_vertex(AliveVertex::DUMMY);
600
601 graph[VertexId::DUMMY].scc = 42;
602 assert_eq!(graph[VertexId::DUMMY].scc, 42);
603 }
604
605 // -------------------------------------------------------------------------
606 // Children Tests

Callers

nothing calls this directly

Calls 1

push_vertexMethod · 0.80

Tested by

no test coverage detected