()
| 2356 | |
| 2357 | #[test] |
| 2358 | fn test_with_fetch_no_limit() { |
| 2359 | // Test when fetch is None and skip is 0 (no limit applied) |
| 2360 | let original_stats = Statistics { |
| 2361 | num_rows: Precision::Exact(100), |
| 2362 | total_byte_size: Precision::Exact(800), |
| 2363 | column_statistics: vec![col_stats_i64(10)], |
| 2364 | }; |
| 2365 | |
| 2366 | let result = original_stats.clone().with_fetch(None, 0, 1).unwrap(); |
| 2367 | |
| 2368 | // Stats should be unchanged when no fetch and no skip |
| 2369 | assert_eq!(result.num_rows, Precision::Exact(100)); |
| 2370 | assert_eq!(result.total_byte_size, Precision::Exact(800)); |
| 2371 | } |
| 2372 | |
| 2373 | #[test] |
| 2374 | fn test_with_fetch_with_skip() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…