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

Function single_string_field

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

Source from the content-addressed store, hash-verified

118
119 #[test]
120 fn single_string_field() {
121 let doc = encode(&json!({"name": "alice", "age": 30}));
122 let key = build_group_key(&doc, &["name".into()]);
123 assert_eq!(key, r#"["alice"]"#);
124 }
125
126 #[test]
127 fn single_int_field() {

Callers

nothing calls this directly

Calls 2

build_group_keyFunction · 0.85
encodeFunction · 0.70

Tested by

no test coverage detected