()
| 3412 | |
| 3413 | #[test] |
| 3414 | fn enumeration_respects_window() { |
| 3415 | let f = make_memfd(4096 * 16); |
| 3416 | // Fully populate the file, then leave it as one big data extent. |
| 3417 | f.write_all_at(&vec![0xEEu8; 4096 * 16], 0).unwrap(); |
| 3418 | let extents = collect_extents(f.as_fd(), 4096 * 4, 4096 * 8).unwrap(); |
| 3419 | assert_eq!(extents, vec![(4096 * 4, 4096 * 4)]); |
| 3420 | } |
| 3421 | |
| 3422 | #[test] |
| 3423 | fn dense_file_yields_single_extent() { |
nothing calls this directly
no test coverage detected