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

Function surrogates_large_roundtrip

nodedb-array/src/codec/column_codec.rs:319–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

317
318 #[test]
319 fn surrogates_large_roundtrip() {
320 let vals: Vec<Surrogate> = (0u32..1000).map(|i| Surrogate::new(i * 7)).collect();
321 let data = encode_surrogates(&vals);
322 let out = decode_surrogates(&data).unwrap();
323 assert_eq!(out, vals);
324 }
325}

Callers

nothing calls this directly

Calls 3

encode_surrogatesFunction · 0.85
decode_surrogatesFunction · 0.85
collectMethod · 0.80

Tested by

no test coverage detected