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

Function test_token_deleted

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

Source from the content-addressed store, hash-verified

626
627 #[test]
628 fn test_token_deleted() {
629 let id = LeafId::new(crate::types::NodeId::new(1), 0);
630 let token = Token::new(id, TokenKind::Word, b"deleted".to_vec(), LeafState::Deleted);
631
632 assert!(token.is_deleted());
633 assert!(!token.is_alive());
634 }
635
636 #[test]
637 fn test_line_new() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected