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

Function float_field

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

Source from the content-addressed store, hash-verified

160
161 #[test]
162 fn float_field() {
163 let doc = encode(&json!({"temp": 36.6}));
164 let key = build_group_key(&doc, &["temp".into()]);
165 assert_eq!(key, "[36.6]");
166 }
167}

Callers

nothing calls this directly

Calls 2

build_group_keyFunction · 0.85
encodeFunction · 0.70

Tested by

no test coverage detected