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

Function test_vertex_creation

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

Source from the content-addressed store, hash-verified

547
548 #[test]
549 fn test_vertex_creation() {
550 use crate::types::GraphNode;
551
552 let node_id = NodeId::new(1);
553 let node = GraphNode::new(node_id, ChangePosition::new(0), ChangePosition::new(50));
554
555 assert_eq!(node.change, node_id);
556 assert_eq!(node.start, ChangePosition::new(0));
557 assert_eq!(node.end, ChangePosition::new(50));
558 assert_eq!(node.len(), 50);
559 }
560
561 #[test]
562 fn test_vertex_is_empty() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected