reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

unittests/ADT/IntervalMapTest.cpp
  270   EXPECT_EQ(100u, I.start());
  271   EXPECT_EQ(110u, I.stop());
  272   ++I;
  273   EXPECT_EQ(120u, I.start());
  274   EXPECT_EQ(130u, I.stop());
  275   ++I;
  276   EXPECT_EQ(140u, I.start());
  277   EXPECT_EQ(150u, I.stop());
  278   ++I;
  279   EXPECT_EQ(160u, I.start());
  280   EXPECT_EQ(170u, I.stop());
  281   ++I;
  282   EXPECT_FALSE(I.valid());
  285   I = map.begin();
  286   I.advanceTo(135);
  287   ASSERT_TRUE(I.valid());
  288   EXPECT_EQ(140u, I.start());
  289   EXPECT_EQ(150u, I.stop());
  291   I.advanceTo(145);
  292   ASSERT_TRUE(I.valid());
  293   EXPECT_EQ(140u, I.start());
  294   EXPECT_EQ(150u, I.stop());
  296   I.advanceTo(200);
  297   EXPECT_FALSE(I.valid());
  299   I.advanceTo(300);
  300   EXPECT_FALSE(I.valid());
  305   I = map.begin();
  306   ASSERT_TRUE(I.valid());
  307   EXPECT_EQ(100u, I.start());
  308   EXPECT_EQ(115u, I.stop());
  309   ++I;
  310   ASSERT_TRUE(I.valid());
  311   EXPECT_EQ(120u, I.start());
  312   EXPECT_EQ(130u, I.stop());
  313   ++I;
  314   ASSERT_TRUE(I.valid());
  315   EXPECT_EQ(140u, I.start());
  316   EXPECT_EQ(150u, I.stop());
  317   ++I;
  318   ASSERT_TRUE(I.valid());
  319   EXPECT_EQ(160u, I.start());
  320   EXPECT_EQ(170u, I.stop());
  321   ++I;
  322   EXPECT_FALSE(I.valid());
  327   I = map.begin();
  328   ASSERT_TRUE(I.valid());
  329   EXPECT_EQ(100u, I.start());
  330   EXPECT_EQ(115u, I.stop());
  331   ++I;
  332   ASSERT_TRUE(I.valid());
  333   EXPECT_EQ(120u, I.start());
  334   EXPECT_EQ(130u, I.stop());
  335   ++I;
  336   ASSERT_TRUE(I.valid());
  337   EXPECT_EQ(135u, I.start());
  338   EXPECT_EQ(150u, I.stop());
  339   ++I;
  340   ASSERT_TRUE(I.valid());
  341   EXPECT_EQ(160u, I.start());
  342   EXPECT_EQ(170u, I.stop());
  343   ++I;
  344   EXPECT_FALSE(I.valid());
  349   I = map.begin();
  350   ASSERT_TRUE(I.valid());
  351   EXPECT_EQ(100u, I.start());
  352   EXPECT_EQ(115u, I.stop());
  353   ++I;
  354   ASSERT_TRUE(I.valid());
  355   EXPECT_EQ(120u, I.start());
  356   EXPECT_EQ(150u, I.stop());
  357   ++I;
  358   ASSERT_TRUE(I.valid());
  359   EXPECT_EQ(160u, I.start());
  360   EXPECT_EQ(170u, I.stop());
  361   ++I;
  362   EXPECT_FALSE(I.valid());