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

Function test_leaf_set_kind

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

Source from the content-addressed store, hash-verified

578
579 #[test]
580 fn test_leaf_set_kind() {
581 let mut leaf = make_leaf();
582 assert_eq!(leaf.kind(), TokenKind::Word);
583
584 leaf.set_kind(TokenKind::Number);
585 assert_eq!(leaf.kind(), TokenKind::Number);
586 }
587
588 #[test]
589 fn test_leaf_set_content_range() {

Callers

nothing calls this directly

Calls 2

make_leafFunction · 0.85
set_kindMethod · 0.45

Tested by

no test coverage detected