| 93 | } |
| 94 | |
| 95 | void MakeArray() { |
| 96 | length_ = static_cast<int64_t>(offsets_.size()) - 1; |
| 97 | value_buf_ = Buffer::Wrap(chars_); |
| 98 | offsets_buf_ = Buffer::Wrap(offsets_); |
| 99 | ASSERT_OK_AND_ASSIGN(null_bitmap_, internal::BytesToBits(valid_bytes_)); |
| 100 | null_count_ = CountNulls(valid_bytes_); |
| 101 | |
| 102 | strings_ = std::make_shared<ArrayType>(length_, offsets_buf_, value_buf_, |
| 103 | null_bitmap_, null_count_); |
| 104 | } |
| 105 | |
| 106 | void TestArrayBasics() { |
| 107 | ASSERT_EQ(length_, strings_->length()); |
nothing calls this directly
no test coverage detected