()
| 132 | |
| 133 | #[test] |
| 134 | fn extract_nested_path() { |
| 135 | let buf = encode(&json!({"address": {"city": "tokyo"}})); |
| 136 | let (start, _end) = extract_path(&buf, 0, &["address", "city"]).unwrap(); |
| 137 | assert_eq!(read_str(&buf, start), Some("tokyo")); |
| 138 | } |
| 139 | |
| 140 | #[test] |
| 141 | fn extract_dot_path_works() { |
nothing calls this directly
no test coverage detected