Lines Matching refs:V
41 VectorT V; member in __anon0834e0c30111::TinyPtrVectorTest
58 void appendValues(VectorT &V, ArrayRef<PtrT> Values) { in appendValues() argument
60 V.push_back(Values[i]); in appendValues()
64 V.clear(); in setVectors()
65 appendValues(V, Values1); in setVectors()
70 void expectValues(const VectorT &V, ArrayRef<PtrT> Values) { in expectValues() argument
71 EXPECT_EQ(Values.empty(), V.empty()); in expectValues()
72 EXPECT_EQ(Values.size(), V.size()); in expectValues()
74 EXPECT_EQ(Values[i], V[i]); in expectValues()
75 EXPECT_EQ(Values[i], *std::next(V.begin(), i)); in expectValues()
77 EXPECT_EQ(V.end(), std::next(V.begin(), Values.size())); in expectValues()
87 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
91 this->V.push_back(this->TestPtrs[0]); in TYPED_TEST()
92 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
93 this->V.push_back(this->TestPtrs[1]); in TYPED_TEST()
94 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
95 this->V.push_back(this->TestPtrs[2]); in TYPED_TEST()
96 this->expectValues(this->V, this->testArray(3)); in TYPED_TEST()
97 this->V.push_back(this->TestPtrs[3]); in TYPED_TEST()
98 this->expectValues(this->V, this->testArray(4)); in TYPED_TEST()
99 this->V.push_back(this->TestPtrs[4]); in TYPED_TEST()
100 this->expectValues(this->V, this->testArray(5)); in TYPED_TEST()
103 this->V.pop_back(); in TYPED_TEST()
104 this->expectValues(this->V, this->testArray(4)); in TYPED_TEST()
105 this->V.pop_back(); in TYPED_TEST()
106 this->expectValues(this->V, this->testArray(3)); in TYPED_TEST()
109 this->V.push_back(this->TestPtrs[3]); in TYPED_TEST()
110 this->expectValues(this->V, this->testArray(4)); in TYPED_TEST()
111 this->V.push_back(this->TestPtrs[4]); in TYPED_TEST()
112 this->expectValues(this->V, this->testArray(5)); in TYPED_TEST()
114 this->V.pop_back(); in TYPED_TEST()
115 this->expectValues(this->V, this->testArray(4)); in TYPED_TEST()
116 this->V.pop_back(); in TYPED_TEST()
117 this->expectValues(this->V, this->testArray(3)); in TYPED_TEST()
118 this->V.pop_back(); in TYPED_TEST()
119 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
120 this->V.pop_back(); in TYPED_TEST()
121 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
122 this->V.pop_back(); in TYPED_TEST()
123 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
125 this->appendValues(this->V, this->testArray(42)); in TYPED_TEST()
126 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
130 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
131 this->V.clear(); in TYPED_TEST()
132 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
134 this->appendValues(this->V, this->testArray(1)); in TYPED_TEST()
135 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
136 this->V.clear(); in TYPED_TEST()
137 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
139 this->appendValues(this->V, this->testArray(42)); in TYPED_TEST()
140 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
141 this->V.clear(); in TYPED_TEST()
142 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
146 this->appendValues(this->V, this->testArray(42)); in TYPED_TEST()
147 TypeParam Copy(this->V); in TYPED_TEST()
153 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
166 this->V = this->V2; in TYPED_TEST()
167 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
169 this->V = std::move(this->V2); in TYPED_TEST()
170 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
173 this->V = this->V2; in TYPED_TEST()
174 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
177 this->V = std::move(this->V2); in TYPED_TEST()
178 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
181 this->V = this->V2; in TYPED_TEST()
182 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
185 this->V = std::move(this->V2); in TYPED_TEST()
186 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
189 this->V = this->V2; in TYPED_TEST()
190 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
193 this->V = std::move(this->V2); in TYPED_TEST()
194 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
197 this->V = this->V2; in TYPED_TEST()
198 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
201 this->V = std::move(this->V2); in TYPED_TEST()
202 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
205 this->V = this->V2; in TYPED_TEST()
206 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
209 this->V = std::move(this->V2); in TYPED_TEST()
210 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
213 this->V = this->V2; in TYPED_TEST()
214 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
217 this->V = std::move(this->V2); in TYPED_TEST()
218 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
221 this->V = this->V2; in TYPED_TEST()
222 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
224 this->V = std::move(this->V2); in TYPED_TEST()
225 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
228 this->V = this->V2; in TYPED_TEST()
229 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
232 this->V = std::move(this->V2); in TYPED_TEST()
233 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
236 this->V = this->V2; in TYPED_TEST()
237 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
240 this->V = std::move(this->V2); in TYPED_TEST()
241 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
244 this->V = this->V2; in TYPED_TEST()
245 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
248 this->V = std::move(this->V2); in TYPED_TEST()
249 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
252 this->V = this->V2; in TYPED_TEST()
253 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
256 this->V = std::move(this->V2); in TYPED_TEST()
257 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
260 this->V = this->V2; in TYPED_TEST()
261 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
264 this->V = std::move(this->V2); in TYPED_TEST()
265 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
268 this->V = this->V2; in TYPED_TEST()
269 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
272 this->V = std::move(this->V2); in TYPED_TEST()
273 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
276 this->V = this->V2; in TYPED_TEST()
277 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
280 this->V = std::move(this->V2); in TYPED_TEST()
281 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
284 this->V = this->V2; in TYPED_TEST()
285 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
288 this->V = std::move(this->V2); in TYPED_TEST()
289 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
293 this->appendValues(this->V, this->testArray(1)); in TYPED_TEST()
294 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
295 this->V.erase(this->V.begin()); in TYPED_TEST()
296 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
298 this->appendValues(this->V, this->testArray(42)); in TYPED_TEST()
299 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
300 this->V.erase(this->V.begin()); in TYPED_TEST()
302 this->expectValues(this->V, this->testArray(41)); in TYPED_TEST()
303 this->V.erase(std::next(this->V.begin(), 1)); in TYPED_TEST()
305 this->expectValues(this->V, this->testArray(40)); in TYPED_TEST()
306 this->V.erase(std::next(this->V.begin(), 2)); in TYPED_TEST()
308 this->expectValues(this->V, this->testArray(39)); in TYPED_TEST()
309 this->V.erase(std::next(this->V.begin(), 5)); in TYPED_TEST()
311 this->expectValues(this->V, this->testArray(38)); in TYPED_TEST()
312 this->V.erase(std::next(this->V.begin(), 13)); in TYPED_TEST()
314 this->expectValues(this->V, this->testArray(37)); in TYPED_TEST()
316 typename TypeParam::iterator I = this->V.begin(); in TYPED_TEST()
318 I = this->V.erase(I); in TYPED_TEST()
319 } while (I != this->V.end()); in TYPED_TEST()
320 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
324 this->appendValues(this->V, this->testArray(1)); in TYPED_TEST()
325 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
326 this->V.erase(this->V.begin(), this->V.begin()); in TYPED_TEST()
327 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
328 this->V.erase(this->V.end(), this->V.end()); in TYPED_TEST()
329 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
330 this->V.erase(this->V.begin(), this->V.end()); in TYPED_TEST()
331 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
333 this->appendValues(this->V, this->testArray(42)); in TYPED_TEST()
334 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
335 this->V.erase(this->V.begin(), std::next(this->V.begin(), 1)); in TYPED_TEST()
338 this->expectValues(this->V, this->testArray(41)); in TYPED_TEST()
339 this->V.erase(std::next(this->V.begin(), 1), std::next(this->V.begin(), 2)); in TYPED_TEST()
342 this->expectValues(this->V, this->testArray(40)); in TYPED_TEST()
343 this->V.erase(std::next(this->V.begin(), 2), std::next(this->V.begin(), 4)); in TYPED_TEST()
346 this->expectValues(this->V, this->testArray(38)); in TYPED_TEST()
347 this->V.erase(std::next(this->V.begin(), 5), std::next(this->V.begin(), 10)); in TYPED_TEST()
350 this->expectValues(this->V, this->testArray(33)); in TYPED_TEST()
351 this->V.erase(std::next(this->V.begin(), 13), std::next(this->V.begin(), 26)); in TYPED_TEST()
354 this->expectValues(this->V, this->testArray(20)); in TYPED_TEST()
355 this->V.erase(std::next(this->V.begin(), 7), this->V.end()); in TYPED_TEST()
356 this->expectValues(this->V, this->testArray(7)); in TYPED_TEST()
357 this->V.erase(this->V.begin(), this->V.end()); in TYPED_TEST()
358 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
362 this->V.insert(this->V.end(), this->TestPtrs[0]); in TYPED_TEST()
363 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
364 this->V.clear(); in TYPED_TEST()
365 this->appendValues(this->V, this->testArray(4)); in TYPED_TEST()
366 this->expectValues(this->V, this->testArray(4)); in TYPED_TEST()
367 this->V.insert(this->V.end(), this->TestPtrs[4]); in TYPED_TEST()
368 this->expectValues(this->V, this->testArray(5)); in TYPED_TEST()
369 this->V.insert(this->V.begin(), this->TestPtrs[42]); in TYPED_TEST()
371 this->expectValues(this->V, this->testArray(6)); in TYPED_TEST()
372 this->V.insert(std::next(this->V.begin(), 3), this->TestPtrs[43]); in TYPED_TEST()
375 this->expectValues(this->V, this->testArray(7)); in TYPED_TEST()
379 this->V.insert(this->V.end(), this->TestPtrs.begin(), this->TestPtrs.begin()); in TYPED_TEST()
380 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
381 this->V.insert(this->V.begin(), this->TestPtrs.begin(), in TYPED_TEST()
383 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
384 this->V.insert(this->V.end(), this->TestPtrs.end(), this->TestPtrs.end()); in TYPED_TEST()
385 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
386 this->V.insert(this->V.end(), this->TestPtrs.begin(), in TYPED_TEST()
388 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
389 this->V.clear(); in TYPED_TEST()
390 this->V.insert(this->V.end(), this->TestPtrs.begin(), in TYPED_TEST()
392 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
393 this->V.clear(); in TYPED_TEST()
394 this->V.insert(this->V.end(), this->TestPtrs.begin(), in TYPED_TEST()
396 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
397 this->V.clear(); in TYPED_TEST()
398 this->V.insert(this->V.end(), in TYPED_TEST()
401 this->V.insert(this->V.begin(), in TYPED_TEST()
404 this->V.insert(std::next(this->V.begin(), 2), in TYPED_TEST()
407 this->V.erase(std::next(this->V.begin(), 4)); in TYPED_TEST()
408 this->V.insert(std::next(this->V.begin(), 4), in TYPED_TEST()
411 this->expectValues(this->V, this->testArray(13)); in TYPED_TEST()
418 TinyPtrVector<int *> V(&v); in TEST() local
420 EXPECT_TRUE(V.size() == 1); in TEST()
421 EXPECT_FALSE(V.empty()); in TEST()
422 EXPECT_TRUE(V.front() == &v); in TEST()
434 TinyPtrVector<int *> V(data); in TEST() local
435 EXPECT_TRUE(V.size() == 128); in TEST()
436 EXPECT_FALSE(V.empty()); in TEST()
438 EXPECT_TRUE(V[i] == data[i]); in TEST()
451 TinyPtrVector<int *> V(data); in TEST() local
452 EXPECT_TRUE(V.size() == 128); in TEST()
453 EXPECT_FALSE(V.empty()); in TEST()
455 MutableArrayRef<int *> mut_array = V; in TEST()