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

Function test_leaf_set_content_range

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

Source from the content-addressed store, hash-verified

587
588 #[test]
589 fn test_leaf_set_content_range() {
590 let mut leaf = make_leaf();
591 assert_eq!(leaf.content_range(), 0..5);
592
593 leaf.set_content_range(10..20);
594 assert_eq!(leaf.content_range(), 10..20);
595 assert_eq!(leaf.content_len(), 10);
596 }
597
598 #[test]
599 fn test_leaf_delete_and_restore() {

Callers

nothing calls this directly

Calls 2

make_leafFunction · 0.85
set_content_rangeMethod · 0.45

Tested by

no test coverage detected