| 444 | } |
| 445 | |
| 446 | void TestScatter(const std::shared_ptr<DataType>& value_type, |
| 447 | const std::string& values_str, const std::string& indices_str, |
| 448 | int64_t max_index, const std::string& expected_str) { |
| 449 | auto values = ArrayFromJSON(value_type, values_str); |
| 450 | auto indices = ArrayFromJSON(int8(), indices_str); |
| 451 | auto expected = ArrayFromJSON(value_type, expected_str); |
| 452 | DoTestScatter(values, indices, max_index, expected); |
| 453 | } |
| 454 | |
| 455 | } // namespace |
| 456 |
no test coverage detected