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

Function delimited_roundtrip

nodedb-codec/src/fsst.rs:475–480  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

473
474 #[test]
475 fn delimited_roundtrip() {
476 let data = b"line one\nline two\nline three\nline one\nline two";
477 let encoded = encode_delimited(data, b'\n');
478 let decoded = decode_delimited(&encoded, b'\n').unwrap();
479 assert_eq!(decoded, data);
480 }
481
482 #[test]
483 fn compression_ratio_structured_logs() {

Callers

nothing calls this directly

Calls 2

encode_delimitedFunction · 0.85
decode_delimitedFunction · 0.85

Tested by

no test coverage detected