Home | History | Annotate | Download | only in unittest

Lines Matching refs:Erase

871 TEST(Pointer, Erase) {
875 EXPECT_FALSE(Pointer("").Erase(d));
876 EXPECT_FALSE(Pointer("/nonexist").Erase(d));
877 EXPECT_FALSE(Pointer("/nonexist/nonexist").Erase(d));
878 EXPECT_FALSE(Pointer("/foo/nonexist").Erase(d));
879 EXPECT_FALSE(Pointer("/foo/nonexist/nonexist").Erase(d));
880 EXPECT_FALSE(Pointer("/foo/0/nonexist").Erase(d));
881 EXPECT_FALSE(Pointer("/foo/0/nonexist/nonexist").Erase(d));
882 EXPECT_FALSE(Pointer("/foo/2/nonexist").Erase(d));
883 EXPECT_TRUE(Pointer("/foo/0").Erase(d));
886 EXPECT_TRUE(Pointer("/foo/0").Erase(d));
888 EXPECT_TRUE(Pointer("/foo").Erase(d));
894 EXPECT_TRUE(Pointer("/a/0/b/0").Erase(d));
898 EXPECT_TRUE(Pointer("/a/0/b").Erase(d));
902 EXPECT_TRUE(Pointer("/a/0").Erase(d));
906 EXPECT_TRUE(Pointer("/a").Erase(d));
1416 EXPECT_FALSE(Pointer("/foo/nonexist").Erase(d));
1431 EXPECT_FALSE(Pointer("/foo/nonexist").Erase(d));