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

Function test_leaf_is_whitespace

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

Source from the content-addressed store, hash-verified

555
556 #[test]
557 fn test_leaf_is_whitespace() {
558 let word_leaf = make_leaf();
559 assert!(!word_leaf.is_whitespace());
560
561 let ws_leaf = Leaf::new(
562 LeafId::new(NodeId::new(1), 1),
563 BranchId::new(NodeId::new(1), 0),
564 TokenKind::Whitespace,
565 5..6,
566 );
567 assert!(ws_leaf.is_whitespace());
568 }
569
570 #[test]
571 fn test_leaf_set_state() {

Callers

nothing calls this directly

Calls 1

make_leafFunction · 0.85

Tested by

no test coverage detected