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

Function test_alive_vertex_set_flags

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

Source from the content-addressed store, hash-verified

645
646 #[test]
647 fn test_alive_vertex_set_flags() {
648 let v = GraphNode::ROOT;
649 let mut alive = AliveVertex::new(v);
650 alive.mark_visited();
651
652 alive.set_flags(VertexFlags::ZOMBIE);
653 assert!(!alive.is_visited()); // Previous flags cleared
654 assert!(alive.is_zombie());
655 }
656
657 #[test]
658 fn test_alive_vertex_total_children() {

Callers

nothing calls this directly

Calls 2

mark_visitedMethod · 0.80
set_flagsMethod · 0.80

Tested by

no test coverage detected