| 104 | |
| 105 | template <typename T, typename C_TYPE = typename T::c_type> |
| 106 | void AssertJSONArray(const std::shared_ptr<DataType>& type, const std::string& json, |
| 107 | const std::vector<C_TYPE>& values) { |
| 108 | std::shared_ptr<Array> expected; |
| 109 | |
| 110 | ASSERT_OK_AND_ASSIGN(auto actual, ArrayFromJSONString(type, json)); |
| 111 | ASSERT_OK(actual->ValidateFull()); |
| 112 | ArrayFromVector<T, C_TYPE>(type, values, &expected); |
| 113 | AssertArraysEqual(*expected, *actual); |
| 114 | } |
| 115 | |
| 116 | template <typename T, typename C_TYPE = typename T::c_type> |
| 117 | void AssertJSONArray(const std::shared_ptr<DataType>& type, const std::string& json, |
nothing calls this directly
no test coverage detected