| 37 | class TestBitBlockCounter : public ::testing::Test { |
| 38 | public: |
| 39 | void Create(int64_t nbytes, int64_t offset, int64_t length) { |
| 40 | ASSERT_OK_AND_ASSIGN(buf_, AllocateBuffer(nbytes)); |
| 41 | // Start with data zeroed out |
| 42 | std::memset(buf_->mutable_data(), 0, nbytes); |
| 43 | counter_.reset(new BitBlockCounter(buf_->data(), offset, length)); |
| 44 | } |
| 45 | |
| 46 | protected: |
| 47 | std::shared_ptr<Buffer> buf_; |
nothing calls this directly
no test coverage detected