()
| 139 | |
| 140 | #[test] |
| 141 | fn extract_dot_path_works() { |
| 142 | let buf = encode(&json!({"addr": {"zip": "10001"}})); |
| 143 | let (start, _end) = extract_dot_path(&buf, 0, "addr.zip").unwrap(); |
| 144 | assert_eq!(read_str(&buf, start), Some("10001")); |
| 145 | } |
| 146 | |
| 147 | #[test] |
| 148 | fn extract_path_missing_intermediate() { |
nothing calls this directly
no test coverage detected