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

Function array_value

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

Source from the content-addressed store, hash-verified

380
381 #[test]
382 fn array_value() {
383 let m = parse("{ tags: ['a', 'b'] }");
384 assert_eq!(
385 m["tags"],
386 Value::Array(vec![
387 Value::String("a".to_string()),
388 Value::String("b".to_string()),
389 ])
390 );
391 }
392
393 #[test]
394 fn mixed_types() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected