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

Function test_leaf_is_significant

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

Source from the content-addressed store, hash-verified

541
542 #[test]
543 fn test_leaf_is_significant() {
544 let word_leaf = make_leaf();
545 assert!(word_leaf.is_significant());
546
547 let ws_leaf = Leaf::new(
548 LeafId::new(NodeId::new(1), 1),
549 BranchId::new(NodeId::new(1), 0),
550 TokenKind::Whitespace,
551 5..6,
552 );
553 assert!(!ws_leaf.is_significant());
554 }
555
556 #[test]
557 fn test_leaf_is_whitespace() {

Callers

nothing calls this directly

Calls 1

make_leafFunction · 0.85

Tested by

no test coverage detected