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

Function AssertUnconvertedStructArraysEqual

cpp/src/arrow/json/parser_test.cc:81–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81void AssertUnconvertedStructArraysEqual(const StructArray& expected,
82 const StructArray& actual) {
83 ASSERT_EQ(expected.num_fields(), actual.num_fields());
84 for (int i = 0; i < expected.num_fields(); ++i) {
85 auto expected_name = expected.type()->field(i)->name();
86 auto actual_name = actual.type()->field(i)->name();
87 ASSERT_EQ(expected_name, actual_name);
88 AssertUnconvertedArraysEqual(*expected.field(i), *actual.field(i));
89 }
90}
91
92void AssertParseColumns(ParseOptions options, string_view src_str,
93 const std::vector<std::shared_ptr<Field>>& fields,

Callers 1

Calls 5

num_fieldsMethod · 0.45
nameMethod · 0.45
fieldMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected