| 3815 | } |
| 3816 | |
| 3817 | std::shared_ptr<ArrayData> ReplaceBuffersInDictionary( |
| 3818 | const std::shared_ptr<ArrayData>& data, const int32_t buffer_index, |
| 3819 | const std::vector<uint8_t>& buffer_data) { |
| 3820 | const auto test_data = data->Copy(); |
| 3821 | auto dict_array_data = test_data->dictionary->Copy(); |
| 3822 | dict_array_data->buffers[buffer_index] = |
| 3823 | std::make_shared<Buffer>(buffer_data.data(), buffer_data.size()); |
| 3824 | test_data->dictionary = dict_array_data; |
| 3825 | return test_data; |
| 3826 | } |
| 3827 | |
| 3828 | TEST(TestSwapEndianArrayData, BinaryType) { |
| 3829 | auto array = ArrayFromJSON(binary(), R"(["0123", null, "45"])"); |
no test coverage detected