(
first_row_id: i64,
row_count: i64,
row_ranges: Option<&[RowRange]>,
)
| 987 | } |
| 988 | |
| 989 | fn count_selected_rows( |
| 990 | first_row_id: i64, |
| 991 | row_count: i64, |
| 992 | row_ranges: Option<&[RowRange]>, |
| 993 | ) -> crate::Result<usize> { |
| 994 | match row_ranges { |
| 995 | Some(ranges) => Ok(expand_selected_row_ids(first_row_id, row_count, ranges).len()), |
| 996 | None => usize::try_from(row_count).map_err(|e| Error::DataInvalid { |
| 997 | message: format!("Invalid logical row count {row_count}"), |
| 998 | source: Some(Box::new(e)), |
| 999 | }), |
| 1000 | } |
| 1001 | } |
| 1002 | |
| 1003 | #[cfg(test)] |
| 1004 | mod tests { |
nothing calls this directly
no test coverage detected