()
| 90 | |
| 91 | #[test] |
| 92 | fn slice_happy() { |
| 93 | let p = |
| 94 | plan_one("SELECT * FROM ARRAY_SLICE('g', '{chrom: [1,1], pos: [0, 100]}', ['qual'], 50)") |
| 95 | .unwrap(); |
| 96 | match p { |
| 97 | SqlPlan::ArraySlice { |
| 98 | name, |
| 99 | slice, |
| 100 | attr_projection, |
| 101 | limit, |
| 102 | .. |
| 103 | } => { |
| 104 | assert_eq!(name, "g"); |
| 105 | assert_eq!(slice.dim_ranges.len(), 2); |
| 106 | assert_eq!(attr_projection, vec!["qual".to_string()]); |
| 107 | assert_eq!(limit, 50); |
| 108 | } |
| 109 | other => panic!("expected ArraySlice, got {other:?}"), |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | #[test] |
| 114 | fn slice_unknown_dim_rejected() { |
nothing calls this directly
no test coverage detected