()
| 2324 | |
| 2325 | #[test] |
| 2326 | fn test_with_fetch_skip_all_rows() { |
| 2327 | // Test when skip >= num_rows (all rows are skipped) |
| 2328 | let original_stats = Statistics { |
| 2329 | num_rows: Precision::Exact(100), |
| 2330 | total_byte_size: Precision::Exact(800), |
| 2331 | column_statistics: vec![col_stats_i64(10)], |
| 2332 | }; |
| 2333 | |
| 2334 | let result = original_stats.clone().with_fetch(Some(50), 100, 1).unwrap(); |
| 2335 | |
| 2336 | assert_eq!(result.num_rows, Precision::Exact(0)); |
| 2337 | // When ratio is 0/100 = 0, byte size should be 0 |
| 2338 | assert_eq!(result.total_byte_size, Precision::Inexact(0)); |
| 2339 | } |
| 2340 | |
| 2341 | #[test] |
| 2342 | fn test_with_fetch_skip_all_rows_inexact() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…