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

Function test_leaf_is_empty

atomic-core/src/crdt/leaf.rs:531–540  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

529
530 #[test]
531 fn test_leaf_is_empty() {
532 let empty_leaf = Leaf::new(
533 LeafId::new(NodeId::new(1), 0),
534 BranchId::new(NodeId::new(1), 0),
535 TokenKind::Whitespace,
536 10..10,
537 );
538 assert!(empty_leaf.is_empty());
539 assert!(!make_leaf().is_empty());
540 }
541
542 #[test]
543 fn test_leaf_is_significant() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected