Test Case 1: simple case.
| 68 | |
| 69 | // Test Case 1: simple case. |
| 70 | TestCase TestCase1() { |
| 71 | return {/*range_data_param*/ {0, 10, 1}, |
| 72 | /*num_shards*/ |
| 73 | CreateTensor<int64>(TensorShape({}), {5}), |
| 74 | /*index*/ |
| 75 | CreateTensor<int64>(TensorShape({}), {2}), |
| 76 | /*require_non_empty*/ true, |
| 77 | /*expected_outputs*/ |
| 78 | {CreateTensor<int64>(TensorShape({}), {2}), |
| 79 | CreateTensor<int64>(TensorShape({}), {7})}, |
| 80 | /*expected_output_dtypes*/ {DT_INT64}, |
| 81 | /*expected_output_shapes*/ {PartialTensorShape({})}, |
| 82 | /*expected_cardinality*/ 2, |
| 83 | /*breakpoints*/ {0, 1, 5}}; |
| 84 | } |
| 85 | |
| 86 | // Test Case 2: zero offset. |
| 87 | TestCase TestCase2() { |
no test coverage detected