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

Function attr_col_string_roundtrip

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

Source from the content-addressed store, hash-verified

287
288 #[test]
289 fn attr_col_string_roundtrip() {
290 let vals = vec![
291 CellValue::String("hello".into()),
292 CellValue::String("world".into()),
293 ];
294 let data = encode_attr_col(&vals).unwrap();
295 let out = decode_attr_col(&data).unwrap();
296 assert_eq!(out, vals);
297 }
298
299 #[test]
300 fn attr_col_empty_roundtrip() {

Callers

nothing calls this directly

Calls 2

encode_attr_colFunction · 0.85
decode_attr_colFunction · 0.85

Tested by

no test coverage detected