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

Function make_leaf

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

Source from the content-addressed store, hash-verified

508 // -------------------------------------------------------------------------
509
510 fn make_leaf() -> Leaf {
511 Leaf::new(
512 LeafId::new(NodeId::new(1), 0),
513 BranchId::new(NodeId::new(1), 0),
514 TokenKind::Word,
515 0..5,
516 )
517 }
518
519 #[test]
520 fn test_leaf_new() {

Callers 9

test_leaf_newFunction · 0.85
test_leaf_is_significantFunction · 0.85
test_leaf_is_whitespaceFunction · 0.85
test_leaf_set_stateFunction · 0.85
test_leaf_set_kindFunction · 0.85
test_leaf_displayFunction · 0.85
test_leaf_serdeFunction · 0.85

Calls

no outgoing calls

Tested by 9

test_leaf_newFunction · 0.68
test_leaf_is_significantFunction · 0.68
test_leaf_is_whitespaceFunction · 0.68
test_leaf_set_stateFunction · 0.68
test_leaf_set_kindFunction · 0.68
test_leaf_displayFunction · 0.68
test_leaf_serdeFunction · 0.68