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

Function test_token_new

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

Source from the content-addressed store, hash-verified

616
617 #[test]
618 fn test_token_new() {
619 let id = LeafId::new(crate::types::NodeId::new(1), 0);
620 let token = Token::new(id, TokenKind::Word, b"hello".to_vec(), LeafState::Alive);
621
622 assert_eq!(token.content_str(), "hello");
623 assert!(token.is_alive());
624 assert!(!token.is_deleted());
625 }
626
627 #[test]
628 fn test_token_deleted() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected