| 311 | } |
| 312 | |
| 313 | void TestForwardScan(const std::vector<string>& keys, const KVMap& data) { |
| 314 | Iterator* iter = constructor_->NewIterator(); |
| 315 | ASSERT_TRUE(!iter->Valid()); |
| 316 | iter->SeekToFirst(); |
| 317 | for (KVMap::const_iterator model_iter = data.begin(); |
| 318 | model_iter != data.end(); ++model_iter) { |
| 319 | ASSERT_EQ(ToStringPiecePair(data, model_iter), ToStringPiecePair(iter)); |
| 320 | iter->Next(); |
| 321 | } |
| 322 | ASSERT_TRUE(!iter->Valid()); |
| 323 | delete iter; |
| 324 | } |
| 325 | |
| 326 | void TestRandomAccess(random::SimplePhilox* rnd, |
| 327 | const std::vector<string>& keys, const KVMap& data, |
nothing calls this directly
no test coverage detected