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

Function test_alive_vertex_clone

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

Source from the content-addressed store, hash-verified

693
694 #[test]
695 fn test_alive_vertex_clone() {
696 let v = GraphNode::new(
697 NodeId::new(1),
698 ChangePosition::new(0),
699 ChangePosition::new(100),
700 );
701 let mut alive = AliveVertex::new(v);
702 alive.mark_visited();
703 alive.scc = 5;
704
705 let cloned = alive.clone();
706 assert!(cloned.is_visited());
707 assert_eq!(cloned.scc, 5);
708 }
709
710 #[test]
711 fn test_alive_vertex_debug() {

Callers

nothing calls this directly

Calls 2

mark_visitedMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected