(device, idx)
| 223 | |
| 224 | |
| 225 | def _test_out_of_range(device, idx): |
| 226 | data = [np.uint8([1, 2, 3]), np.uint8([1, 2])] |
| 227 | src = fn.external_source(lambda: data, device=device) |
| 228 | pipe = index_pipe(src, lambda x: x[idx]) |
| 229 | with assert_raises(RuntimeError, glob="out of range"): |
| 230 | _ = pipe.run() |
| 231 | |
| 232 | |
| 233 | def test_out_of_range(): |
nothing calls this directly
no test coverage detected