MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / test_encode_empty_map

Function test_encode_empty_map

src/avro/src/encode.rs:200–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198
199 #[mz_ore::test]
200 fn test_encode_empty_map() {
201 let mut buf = Vec::new();
202 let empty: BTreeMap<String, Value> = BTreeMap::new();
203 encode(
204 &Value::Map(empty),
205 &r#"{"type": "map", "values": "int"}"#.parse().unwrap(),
206 &mut buf,
207 );
208 assert_eq!(vec![0u8], buf);
209 }
210}

Callers

nothing calls this directly

Calls 4

unwrapMethod · 0.80
encodeFunction · 0.70
MapClass · 0.50
parseMethod · 0.45

Tested by

no test coverage detected