You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comprehensive edge case tests for URI download failures
- Add test_download_expression_with_invalid_uris: Tests exception handling
for URIs that fail to download (OSError), verifying None is returned
instead of crashing (covers commit c9d9108)
- Add test_download_expression_all_size_estimations_fail: Tests divide-by-zero
fix when all URI size estimations fail during partitioning, ensuring fallback
to row count works correctly (covers commit 0959734)
- Add test_download_expression_mixed_valid_and_invalid_size_estimation: Tests
partial failures during size estimation with mix of valid/invalid URIs
These tests properly cover the code paths that were previously untested:
- load_uri_bytes exception handling (lines 192-196)
- avg_nbytes_per_row == 0 check (lines 285-291)
- Failed size estimation handling (lines 326-332)
Signed-off-by: xyuzh <xinyzng@gmail.com>
0 commit comments