Lines Matching refs:DocIterator
50 auto DocIterator = L.iterator(); in TEST() local
52 EXPECT_EQ(DocIterator->peek(), 4U); in TEST()
53 EXPECT_FALSE(DocIterator->reachedEnd()); in TEST()
55 DocIterator->advance(); in TEST()
56 EXPECT_EQ(DocIterator->peek(), 7U); in TEST()
57 EXPECT_FALSE(DocIterator->reachedEnd()); in TEST()
59 DocIterator->advanceTo(20); in TEST()
60 EXPECT_EQ(DocIterator->peek(), 20U); in TEST()
61 EXPECT_FALSE(DocIterator->reachedEnd()); in TEST()
63 DocIterator->advanceTo(65); in TEST()
64 EXPECT_EQ(DocIterator->peek(), 100U); in TEST()
65 EXPECT_FALSE(DocIterator->reachedEnd()); in TEST()
67 DocIterator->advanceTo(420); in TEST()
68 EXPECT_TRUE(DocIterator->reachedEnd()); in TEST()
270 auto DocIterator = C.limit(L0.iterator(), 42); in TEST() local
271 EXPECT_THAT(consumeIDs(*DocIterator), ElementsAre(3, 6, 7, 20, 42, 100)); in TEST()
273 DocIterator = C.limit(L0.iterator(), 3); in TEST()
274 EXPECT_THAT(consumeIDs(*DocIterator), ElementsAre(3, 6, 7)); in TEST()
276 DocIterator = C.limit(L0.iterator(), 0); in TEST()
277 EXPECT_THAT(consumeIDs(*DocIterator), ElementsAre()); in TEST()