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

Function test_vertex_is_empty

atomic-core/src/apply/change.rs:562–578  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

560
561 #[test]
562 fn test_vertex_is_empty() {
563 use crate::types::GraphNode;
564
565 let empty_vertex = GraphNode::new(
566 NodeId::new(1),
567 ChangePosition::new(10),
568 ChangePosition::new(10),
569 );
570 let non_empty = GraphNode::new(
571 NodeId::new(1),
572 ChangePosition::new(10),
573 ChangePosition::new(20),
574 );
575
576 assert!(empty_vertex.is_empty());
577 assert!(!non_empty.is_empty());
578 }
579
580 // Edge Flags Tests
581

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected