• Home
  • Raw
  • Download

Lines Matching refs:set

22   TestPointerSet set;  in TEST()  local
23 EXPECT_TRUE(set.empty()); in TEST()
24 EXPECT_EQ(0u, set.size()); in TEST()
25 EXPECT_FALSE(set.contains(kFoo1)); in TEST()
29 TestPointerSet set(kFullList.begin(), kFullList.end()); in TEST() local
30 EXPECT_FALSE(set.empty()); in TEST()
31 EXPECT_EQ(3u, set.size()); in TEST()
32 EXPECT_TRUE(set.contains(kFoo1)); in TEST()
33 EXPECT_TRUE(set.contains(kFoo2)); in TEST()
34 EXPECT_TRUE(set.contains(kFoo3)); in TEST()
61 TestPointerSet set; in TEST() local
62 EXPECT_TRUE(set.add(kFoo1)); in TEST()
63 EXPECT_EQ(1u, set.size()); in TEST()
64 EXPECT_TRUE(set.contains(kFoo1)); in TEST()
66 EXPECT_FALSE(set.add(kFoo1)); in TEST()
67 EXPECT_EQ(1u, set.size()); in TEST()
68 EXPECT_TRUE(set.contains(kFoo1)); in TEST()
70 EXPECT_TRUE(set.add(kFoo2)); in TEST()
71 EXPECT_EQ(2u, set.size()); in TEST()
72 EXPECT_TRUE(set.contains(kFoo1)); in TEST()
73 EXPECT_TRUE(set.contains(kFoo2)); in TEST()
75 EXPECT_FALSE(set.add(kFoo1)); in TEST()
76 EXPECT_FALSE(set.add(kFoo2)); in TEST()
78 EXPECT_TRUE(set.add(kFoo3)); in TEST()
79 EXPECT_EQ(3u, set.size()); in TEST()
80 EXPECT_TRUE(set.contains(kFoo1)); in TEST()
81 EXPECT_TRUE(set.contains(kFoo2)); in TEST()
82 EXPECT_TRUE(set.contains(kFoo3)); in TEST()
84 EXPECT_FALSE(set.add(kFoo1)); in TEST()
85 EXPECT_FALSE(set.add(kFoo2)); in TEST()
86 EXPECT_FALSE(set.add(kFoo3)); in TEST()
90 TestPointerSet set(kFullList.begin(), kFullList.end()); in TEST() local
91 EXPECT_EQ(3u, set.size()); in TEST()
93 EXPECT_TRUE(set.erase(kFoo1)); in TEST()
94 EXPECT_EQ(2u, set.size()); in TEST()
95 EXPECT_FALSE(set.contains(kFoo1)); in TEST()
96 EXPECT_FALSE(set.erase(kFoo1)); in TEST()
97 EXPECT_EQ(2u, set.size()); in TEST()
99 EXPECT_TRUE(set.erase(kFoo2)); in TEST()
100 EXPECT_EQ(1u, set.size()); in TEST()
101 EXPECT_FALSE(set.contains(kFoo2)); in TEST()
102 EXPECT_FALSE(set.erase(kFoo2)); in TEST()
103 EXPECT_EQ(1u, set.size()); in TEST()
105 EXPECT_TRUE(set.erase(kFoo3)); in TEST()
106 EXPECT_EQ(0u, set.size()); in TEST()
107 EXPECT_FALSE(set.contains(kFoo3)); in TEST()
108 EXPECT_FALSE(set.erase(kFoo3)); in TEST()
109 EXPECT_EQ(0u, set.size()); in TEST()
113 TestPointerSet set; in TEST() local
114 set.insert(kFullList.begin(), kFullList.end()); in TEST()
115 EXPECT_EQ(3u, set.size()); in TEST()
116 EXPECT_TRUE(set.contains(kFoo1)); in TEST()
117 EXPECT_TRUE(set.contains(kFoo2)); in TEST()
118 EXPECT_TRUE(set.contains(kFoo3)); in TEST()
120 set.insert(kFullList.begin(), kFullList.end()); in TEST()
121 EXPECT_EQ(3u, set.size()); in TEST()
150 TestPointerSet set = set1.intersection_with(set2); in TEST() local
151 EXPECT_TRUE(set.empty()); in TEST()
156 set = set1.intersection_with(set2); in TEST()
157 EXPECT_FALSE(set.empty()); in TEST()
158 EXPECT_EQ(1u, set.size()); in TEST()
159 EXPECT_TRUE(set.contains(kFoo2)); in TEST()
163 set = set1.intersection_with(set2); in TEST()
164 EXPECT_EQ(3u, set.size()); in TEST()
165 EXPECT_EQ(set1, set); in TEST()
166 EXPECT_EQ(set2, set); in TEST()