MCPcopy Create free account
hub / github.com/apache/arrow / AssertJSONArray

Function AssertJSONArray

cpp/src/arrow/json/from_string_test.cc:106–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105template <typename T, typename C_TYPE = typename T::c_type>
106void 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
116template <typename T, typename C_TYPE = typename T::c_type>
117void AssertJSONArray(const std::shared_ptr<DataType>& type, const std::string& json,

Callers

nothing calls this directly

Calls 2

AssertArraysEqualFunction · 0.85
ValidateFullMethod · 0.45

Tested by

no test coverage detected