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

Method AssertWords

cpp/src/arrow/util/bitmap_test.cc:161–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159class TestBitmapUInt64Reader : public ::testing::Test {
160 public:
161 void AssertWords(const Buffer& buffer, int64_t start_offset, int64_t length,
162 const std::vector<uint64_t>& expected) {
163 BitmapUInt64Reader reader(buffer.data(), start_offset, length);
164 ASSERT_EQ(reader.position(), 0);
165 ASSERT_EQ(reader.length(), length);
166 for (const uint64_t word : expected) {
167 ASSERT_EQ(reader.NextWord(), word);
168 }
169 ASSERT_EQ(reader.position(), length);
170 }
171
172 void Check(const Buffer& buffer, int64_t start_offset, int64_t length) {
173 BitmapUInt64Reader reader(buffer.data(), start_offset, length);

Callers

nothing calls this directly

Calls 4

dataMethod · 0.45
positionMethod · 0.45
lengthMethod · 0.45
NextWordMethod · 0.45

Tested by

no test coverage detected