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

Function test_line_new

atomic-core/src/output/crdt.rs:637–644  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

635
636 #[test]
637 fn test_line_new() {
638 let id = BranchId::new(crate::types::NodeId::new(1), 0);
639 let line = Line::new(id, 1, BranchState::Alive, 0);
640
641 assert_eq!(line.number, 1);
642 assert!(line.is_alive());
643 assert_eq!(line.token_count(), 0);
644 }
645
646 #[test]
647 fn test_line_content() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected