()
| 98 | |
| 99 | #[test] |
| 100 | fn extract_string_field() { |
| 101 | let buf = encode(&json!({"name": "alice"})); |
| 102 | let (start, _end) = extract_field(&buf, 0, "name").unwrap(); |
| 103 | assert_eq!(read_str(&buf, start), Some("alice")); |
| 104 | } |
| 105 | |
| 106 | #[test] |
| 107 | fn extract_float_field() { |
nothing calls this directly
no test coverage detected