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

Method AssertWords

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

Source from the content-addressed store, hash-verified

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