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

Function test_serialized_leaf_content_range

atomic-core/src/crdt/tables.rs:1099–1110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1097
1098 #[test]
1099 fn test_serialized_leaf_content_range() {
1100 let data = SerializedLeaf {
1101 branch_id: BranchId::new(NodeId::new(1), 0),
1102 kind: TokenKind::Word,
1103 state: LeafState::Alive,
1104 content_start: 10,
1105 content_end: 25,
1106 };
1107
1108 assert_eq!(data.content_range(), 10..25);
1109 assert_eq!(data.content_len(), 15);
1110 }
1111
1112 // -------------------------------------------------------------------------
1113 // Trunk Value Encoding Tests

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected