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

Function vector_equal

cpp/src/parquet/test_util.h:89–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88template <typename T>
89static inline bool vector_equal(const std::vector<T>& left, const std::vector<T>& right) {
90 if (left.size() != right.size()) {
91 return false;
92 }
93
94 for (size_t i = 0; i < left.size(); ++i) {
95 if (left[i] != right[i]) {
96 std::cerr << "index " << i << " left was " << left[i] << " right was " << right[i]
97 << std::endl;
98 return false;
99 }
100 }
101
102 return true;
103}
104
105template <typename T>
106static std::vector<T> slice(const std::vector<T>& values, int start, int end) {

Callers 4

CheckResultsMethod · 0.85
TEST_FFunction · 0.85
CheckReadValuesMethod · 0.85
TEST_PFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected