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

Function vector_equal

cpp/src/parquet/test_util.h:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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