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

Function multiple_fields

nodedb-query/src/msgpack_scan/group_key.rs:134–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132
133 #[test]
134 fn multiple_fields() {
135 let doc = encode(&json!({"city": "ny", "year": 2024}));
136 let key = build_group_key(&doc, &["city".into(), "year".into()]);
137 assert_eq!(key, r#"["ny",2024]"#);
138 }
139
140 #[test]
141 fn missing_field_is_null() {

Callers

nothing calls this directly

Calls 2

build_group_keyFunction · 0.85
encodeFunction · 0.70

Tested by

no test coverage detected