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

Function single_int_field

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

Source from the content-addressed store, hash-verified

125
126 #[test]
127 fn single_int_field() {
128 let doc = encode(&json!({"status": 200}));
129 let key = build_group_key(&doc, &["status".into()]);
130 assert_eq!(key, "[200]");
131 }
132
133 #[test]
134 fn multiple_fields() {

Callers

nothing calls this directly

Calls 2

build_group_keyFunction · 0.85
encodeFunction · 0.70

Tested by

no test coverage detected