Test Case 2: zero offset.
| 85 | |
| 86 | // Test Case 2: zero offset. |
| 87 | TestCase TestCase2() { |
| 88 | return {/*range_data_param*/ {0, 10, 1}, |
| 89 | /*num_shards*/ |
| 90 | CreateTensor<int64>(TensorShape({}), {5}), |
| 91 | /*index*/ |
| 92 | CreateTensor<int64>(TensorShape({}), {0}), |
| 93 | /*require_non_empty*/ true, |
| 94 | /*expected_outputs*/ |
| 95 | {CreateTensor<int64>(TensorShape({}), {0}), |
| 96 | CreateTensor<int64>(TensorShape({}), {5})}, |
| 97 | /*expected_output_dtypes*/ {DT_INT64}, |
| 98 | /*expected_output_shapes*/ {PartialTensorShape({})}, |
| 99 | /*expected_cardinality*/ 2, |
| 100 | /*breakpoints*/ {0, 1, 5}}; |
| 101 | } |
| 102 | |
| 103 | // Test Case 3: iterator ends before first element. |
| 104 | TestCase TestCase3() { |
no test coverage detected