()
| 267 | |
| 268 | |
| 269 | def test_slice_optimizations(): |
| 270 | # bar[:] |
| 271 | with pytest.raises(SlicingNoop): |
| 272 | slice_array("foo", "bar", [[100]], (slice(None, None, None),)) |
| 273 | |
| 274 | # bar[:,:,:] |
| 275 | with pytest.raises(SlicingNoop): |
| 276 | slice_array( |
| 277 | "foo", |
| 278 | "bar", |
| 279 | [(100, 1000, 10000)], |
| 280 | (slice(None, None, None), slice(None, None, None), slice(None, None, None)), |
| 281 | ) |
| 282 | |
| 283 | |
| 284 | def test_slicing_with_singleton_indices(): |
nothing calls this directly
no test coverage detected