MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / segment_id_format

Function segment_id_format

nodedb-fts/src/lsm/compaction.rs:218–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

216
217 #[test]
218 fn segment_id_format() {
219 let id = segment_id(42, 0);
220 assert!(id.starts_with("L0:"));
221 assert_eq!(parse_level(&id), 0);
222 assert_eq!(parse_segment_number(&id), 42);
223 }
224
225 #[test]
226 fn parse_level_and_id() {

Callers

nothing calls this directly

Calls 1

segment_idFunction · 0.85

Tested by

no test coverage detected