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

Function surrogates_roundtrip

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

Source from the content-addressed store, hash-verified

231
232 #[test]
233 fn surrogates_roundtrip() {
234 let vals = vec![
235 Surrogate::new(0),
236 Surrogate::new(1),
237 Surrogate::new(1000),
238 Surrogate::new(9999),
239 ];
240 let data = encode_surrogates(&vals);
241 let out = decode_surrogates(&data).unwrap();
242 assert_eq!(out, vals);
243 }
244
245 #[test]
246 fn row_kinds_roundtrip() {

Callers

nothing calls this directly

Calls 2

encode_surrogatesFunction · 0.85
decode_surrogatesFunction · 0.85

Tested by

no test coverage detected