Test Case 3: iterator ends before first element.
| 102 | |
| 103 | // Test Case 3: iterator ends before first element. |
| 104 | TestCase TestCase3() { |
| 105 | return {/*range_data_param*/ {0, 1, 1}, |
| 106 | /*num_shards*/ |
| 107 | CreateTensor<int64>(TensorShape({}), {5}), |
| 108 | /*index*/ |
| 109 | CreateTensor<int64>(TensorShape({}), {2}), |
| 110 | /*require_non_empty*/ true, |
| 111 | /*expected_outputs*/ {}, |
| 112 | /*expected_output_dtypes*/ {DT_INT64}, |
| 113 | /*expected_output_shapes*/ {PartialTensorShape({})}, |
| 114 | /*expected_cardinality*/ 0, |
| 115 | /*breakpoints*/ {0, 1}}; |
| 116 | } |
| 117 | |
| 118 | // Test Case 4: larger num_shards. |
| 119 | TestCase TestCase4() { |
no test coverage detected