MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / test_parse_simple_json_map

Function test_parse_simple_json_map

src/shader_build.rs:728–733  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

726
727 #[test]
728 fn test_parse_simple_json_map() {
729 let json = r#"{ "foo": "bar", "baz": "qux" }"#;
730 let map = parse_simple_json_map(json);
731 assert_eq!(map.get("foo").unwrap(), "bar");
732 assert_eq!(map.get("baz").unwrap(), "qux");
733 }
734
735 #[test]
736 fn test_parse_string_array() {

Callers

nothing calls this directly

Calls 1

parse_simple_json_mapFunction · 0.85

Tested by

no test coverage detected