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

Function nested_object

nodedb-sql/src/parser/object_literal.rs:372–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

370
371 #[test]
372 fn nested_object() {
373 let m = parse("{ addr: { city: 'NYC' } }");
374 let inner = match &m["addr"] {
375 Value::Object(o) => o,
376 _ => panic!("expected Object"),
377 };
378 assert_eq!(inner["city"], Value::String("NYC".to_string()));
379 }
380
381 #[test]
382 fn array_value() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected