Test Case 4: larger num_shards.
| 117 | |
| 118 | // Test Case 4: larger num_shards. |
| 119 | TestCase TestCase4() { |
| 120 | return {/*range_data_param*/ {0, 10, 1}, |
| 121 | /*num_shards*/ |
| 122 | CreateTensor<int64>(TensorShape({}), {7}), |
| 123 | /*index*/ |
| 124 | CreateTensor<int64>(TensorShape({}), {5}), |
| 125 | /*require_non_empty*/ true, |
| 126 | /*expected_outputs*/ |
| 127 | {CreateTensor<int64>(TensorShape({}), {5})}, |
| 128 | /*expected_output_dtypes*/ {DT_INT64}, |
| 129 | /*expected_output_shapes*/ {PartialTensorShape({})}, |
| 130 | /*expected_cardinality*/ 1, |
| 131 | /*breakpoints*/ {0, 5}}; |
| 132 | } |
| 133 | |
| 134 | // Test Case 5: index == num_shards. |
| 135 | TestCase TestCase5() { |
no test coverage detected