|
|
@ -323,23 +323,23 @@ TEST(DBIteratorTest, DBIteratorUseSkipCountSkips) { |
|
|
|
ASSERT_TRUE(db_iter->Valid()); |
|
|
|
ASSERT_TRUE(db_iter->Valid()); |
|
|
|
ASSERT_EQ(db_iter->key().ToString(), "c"); |
|
|
|
ASSERT_EQ(db_iter->key().ToString(), "c"); |
|
|
|
ASSERT_EQ(db_iter->value().ToString(), "c"); |
|
|
|
ASSERT_EQ(db_iter->value().ToString(), "c"); |
|
|
|
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 1); |
|
|
|
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 1u); |
|
|
|
|
|
|
|
|
|
|
|
db_iter->Prev(); |
|
|
|
db_iter->Prev(); |
|
|
|
ASSERT_TRUE(db_iter->Valid()); |
|
|
|
ASSERT_TRUE(db_iter->Valid()); |
|
|
|
ASSERT_EQ(db_iter->key().ToString(), "b"); |
|
|
|
ASSERT_EQ(db_iter->key().ToString(), "b"); |
|
|
|
ASSERT_EQ(db_iter->value().ToString(), "b"); |
|
|
|
ASSERT_EQ(db_iter->value().ToString(), "b"); |
|
|
|
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 2); |
|
|
|
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 2u); |
|
|
|
|
|
|
|
|
|
|
|
db_iter->Prev(); |
|
|
|
db_iter->Prev(); |
|
|
|
ASSERT_TRUE(db_iter->Valid()); |
|
|
|
ASSERT_TRUE(db_iter->Valid()); |
|
|
|
ASSERT_EQ(db_iter->key().ToString(), "a"); |
|
|
|
ASSERT_EQ(db_iter->key().ToString(), "a"); |
|
|
|
ASSERT_EQ(db_iter->value().ToString(), "a"); |
|
|
|
ASSERT_EQ(db_iter->value().ToString(), "a"); |
|
|
|
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 3); |
|
|
|
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 3u); |
|
|
|
|
|
|
|
|
|
|
|
db_iter->Prev(); |
|
|
|
db_iter->Prev(); |
|
|
|
ASSERT_TRUE(!db_iter->Valid()); |
|
|
|
ASSERT_TRUE(!db_iter->Valid()); |
|
|
|
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 3); |
|
|
|
ASSERT_EQ(TestGetTickerCount(options, NUMBER_OF_RESEEKS_IN_ITERATION), 3u); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TEST(DBIteratorTest, DBIteratorUseSkip) { |
|
|
|
TEST(DBIteratorTest, DBIteratorUseSkip) { |
|
|
|