()
| 853 | |
| 854 | #[test] |
| 855 | fn test_window_frame_group_boundaries() -> Result<()> { |
| 856 | let window_frame = Arc::new(WindowFrame::new_bounds( |
| 857 | WindowFrameUnits::Groups, |
| 858 | WindowFrameBound::Preceding(ScalarValue::UInt64(Some(1))), |
| 859 | WindowFrameBound::Following(ScalarValue::UInt64(Some(1))), |
| 860 | )); |
| 861 | assert_group_ranges( |
| 862 | &window_frame, |
| 863 | vec![ |
| 864 | (Range { start: 0, end: 2 }, 0), |
| 865 | (Range { start: 0, end: 4 }, 1), |
| 866 | (Range { start: 1, end: 5 }, 2), |
| 867 | (Range { start: 1, end: 5 }, 2), |
| 868 | (Range { start: 2, end: 8 }, 3), |
| 869 | (Range { start: 4, end: 9 }, 4), |
| 870 | (Range { start: 4, end: 9 }, 4), |
| 871 | (Range { start: 4, end: 9 }, 4), |
| 872 | (Range { start: 5, end: 9 }, 5), |
| 873 | ], |
| 874 | ) |
| 875 | } |
| 876 | |
| 877 | #[test] |
| 878 | fn test_window_frame_group_boundaries_both_following() -> Result<()> { |
nothing calls this directly
no test coverage detected
searching dependent graphs…