()
| 607 | |
| 608 | #[test] |
| 609 | fn array_header_fixarray() { |
| 610 | let buf = encode(&json!([10, 20, 30])); |
| 611 | let (count, data_offset) = array_header(&buf, 0).unwrap(); |
| 612 | assert_eq!(count, 3); |
| 613 | assert_eq!(read_i64(&buf, data_offset), Some(10)); |
| 614 | } |
| 615 | |
| 616 | // ── Canonical encoding guarantee tests ───────────────────────────── |
| 617 |
nothing calls this directly
no test coverage detected