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

Function simple_string_and_int

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

Source from the content-addressed store, hash-verified

363
364 #[test]
365 fn simple_string_and_int() {
366 let m = parse("{ name: 'Alice', age: 30 }");
367 assert_eq!(m["name"], Value::String("Alice".to_string()));
368 assert_eq!(m["age"], Value::Integer(30));
369 }
370
371 #[test]
372 fn nested_object() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected