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

Source from the content-addressed store, hash-verified

572
573 #[test]
574 fn test_graph_index_mut_operator() {
575 let mut graph = AliveGraph::new();
576 graph.push_vertex(AliveVertex::DUMMY);
577
578 graph[VertexId::DUMMY].scc = 42;
579 assert_eq!(graph[VertexId::DUMMY].scc, 42);
580 }
581
582 // -------------------------------------------------------------------------
583 // Children Tests

Callers

nothing calls this directly

Calls 1

push_vertexMethod · 0.80

Tested by

no test coverage detected