• Home
  • Raw
  • Download

Lines Matching refs:V

39   VectorT V;  member in __anon107f298c0111::TinyPtrVectorTest
56 void appendValues(VectorT &V, ArrayRef<PtrT> Values) { in appendValues() argument
58 V.push_back(Values[i]); in appendValues()
62 V.clear(); in setVectors()
63 appendValues(V, Values1); in setVectors()
68 void expectValues(const VectorT &V, ArrayRef<PtrT> Values) { in expectValues() argument
69 EXPECT_EQ(Values.empty(), V.empty()); in expectValues()
70 EXPECT_EQ(Values.size(), V.size()); in expectValues()
72 EXPECT_EQ(Values[i], V[i]); in expectValues()
73 EXPECT_EQ(Values[i], *std::next(V.begin(), i)); in expectValues()
75 EXPECT_EQ(V.end(), std::next(V.begin(), Values.size())); in expectValues()
85 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
89 this->V.push_back(this->TestPtrs[0]); in TYPED_TEST()
90 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
91 this->V.push_back(this->TestPtrs[1]); in TYPED_TEST()
92 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
93 this->V.push_back(this->TestPtrs[2]); in TYPED_TEST()
94 this->expectValues(this->V, this->testArray(3)); in TYPED_TEST()
95 this->V.push_back(this->TestPtrs[3]); in TYPED_TEST()
96 this->expectValues(this->V, this->testArray(4)); in TYPED_TEST()
97 this->V.push_back(this->TestPtrs[4]); in TYPED_TEST()
98 this->expectValues(this->V, this->testArray(5)); in TYPED_TEST()
101 this->V.pop_back(); in TYPED_TEST()
102 this->expectValues(this->V, this->testArray(4)); in TYPED_TEST()
103 this->V.pop_back(); in TYPED_TEST()
104 this->expectValues(this->V, this->testArray(3)); in TYPED_TEST()
107 this->V.push_back(this->TestPtrs[3]); in TYPED_TEST()
108 this->expectValues(this->V, this->testArray(4)); in TYPED_TEST()
109 this->V.push_back(this->TestPtrs[4]); in TYPED_TEST()
110 this->expectValues(this->V, this->testArray(5)); in TYPED_TEST()
112 this->V.pop_back(); in TYPED_TEST()
113 this->expectValues(this->V, this->testArray(4)); in TYPED_TEST()
114 this->V.pop_back(); in TYPED_TEST()
115 this->expectValues(this->V, this->testArray(3)); in TYPED_TEST()
116 this->V.pop_back(); in TYPED_TEST()
117 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
118 this->V.pop_back(); in TYPED_TEST()
119 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
120 this->V.pop_back(); in TYPED_TEST()
121 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
123 this->appendValues(this->V, this->testArray(42)); in TYPED_TEST()
124 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
128 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
129 this->V.clear(); in TYPED_TEST()
130 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
132 this->appendValues(this->V, this->testArray(1)); in TYPED_TEST()
133 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
134 this->V.clear(); in TYPED_TEST()
135 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
137 this->appendValues(this->V, this->testArray(42)); in TYPED_TEST()
138 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
139 this->V.clear(); in TYPED_TEST()
140 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
144 this->appendValues(this->V, this->testArray(42)); in TYPED_TEST()
145 TypeParam Copy(this->V); in TYPED_TEST()
151 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
164 this->V = this->V2; in TYPED_TEST()
165 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
167 this->V = std::move(this->V2); in TYPED_TEST()
168 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
171 this->V = this->V2; in TYPED_TEST()
172 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
175 this->V = std::move(this->V2); in TYPED_TEST()
176 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
179 this->V = this->V2; in TYPED_TEST()
180 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
183 this->V = std::move(this->V2); in TYPED_TEST()
184 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
187 this->V = this->V2; in TYPED_TEST()
188 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
191 this->V = std::move(this->V2); in TYPED_TEST()
192 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
195 this->V = this->V2; in TYPED_TEST()
196 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
199 this->V = std::move(this->V2); in TYPED_TEST()
200 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
203 this->V = this->V2; in TYPED_TEST()
204 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
207 this->V = std::move(this->V2); in TYPED_TEST()
208 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
211 this->V = this->V2; in TYPED_TEST()
212 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
215 this->V = std::move(this->V2); in TYPED_TEST()
216 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
219 this->V = this->V2; in TYPED_TEST()
220 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
222 this->V = std::move(this->V2); in TYPED_TEST()
223 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
226 this->V = this->V2; in TYPED_TEST()
227 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
230 this->V = std::move(this->V2); in TYPED_TEST()
231 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
234 this->V = this->V2; in TYPED_TEST()
235 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
238 this->V = std::move(this->V2); in TYPED_TEST()
239 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
242 this->V = this->V2; in TYPED_TEST()
243 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
246 this->V = std::move(this->V2); in TYPED_TEST()
247 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
250 this->V = this->V2; in TYPED_TEST()
251 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
254 this->V = std::move(this->V2); in TYPED_TEST()
255 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
258 this->V = this->V2; in TYPED_TEST()
259 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
262 this->V = std::move(this->V2); in TYPED_TEST()
263 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
266 this->V = this->V2; in TYPED_TEST()
267 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
270 this->V = std::move(this->V2); in TYPED_TEST()
271 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
274 this->V = this->V2; in TYPED_TEST()
275 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
278 this->V = std::move(this->V2); in TYPED_TEST()
279 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
282 this->V = this->V2; in TYPED_TEST()
283 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
286 this->V = std::move(this->V2); in TYPED_TEST()
287 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
291 this->appendValues(this->V, this->testArray(1)); in TYPED_TEST()
292 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
293 this->V.erase(this->V.begin()); in TYPED_TEST()
294 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
296 this->appendValues(this->V, this->testArray(42)); in TYPED_TEST()
297 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
298 this->V.erase(this->V.begin()); in TYPED_TEST()
300 this->expectValues(this->V, this->testArray(41)); in TYPED_TEST()
301 this->V.erase(std::next(this->V.begin(), 1)); in TYPED_TEST()
303 this->expectValues(this->V, this->testArray(40)); in TYPED_TEST()
304 this->V.erase(std::next(this->V.begin(), 2)); in TYPED_TEST()
306 this->expectValues(this->V, this->testArray(39)); in TYPED_TEST()
307 this->V.erase(std::next(this->V.begin(), 5)); in TYPED_TEST()
309 this->expectValues(this->V, this->testArray(38)); in TYPED_TEST()
310 this->V.erase(std::next(this->V.begin(), 13)); in TYPED_TEST()
312 this->expectValues(this->V, this->testArray(37)); in TYPED_TEST()
314 typename TypeParam::iterator I = this->V.begin(); in TYPED_TEST()
316 I = this->V.erase(I); in TYPED_TEST()
317 } while (I != this->V.end()); in TYPED_TEST()
318 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
322 this->appendValues(this->V, this->testArray(1)); in TYPED_TEST()
323 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
324 this->V.erase(this->V.begin(), this->V.begin()); in TYPED_TEST()
325 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
326 this->V.erase(this->V.end(), this->V.end()); in TYPED_TEST()
327 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
328 this->V.erase(this->V.begin(), this->V.end()); in TYPED_TEST()
329 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
331 this->appendValues(this->V, this->testArray(42)); in TYPED_TEST()
332 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
333 this->V.erase(this->V.begin(), std::next(this->V.begin(), 1)); in TYPED_TEST()
336 this->expectValues(this->V, this->testArray(41)); in TYPED_TEST()
337 this->V.erase(std::next(this->V.begin(), 1), std::next(this->V.begin(), 2)); in TYPED_TEST()
340 this->expectValues(this->V, this->testArray(40)); in TYPED_TEST()
341 this->V.erase(std::next(this->V.begin(), 2), std::next(this->V.begin(), 4)); in TYPED_TEST()
344 this->expectValues(this->V, this->testArray(38)); in TYPED_TEST()
345 this->V.erase(std::next(this->V.begin(), 5), std::next(this->V.begin(), 10)); in TYPED_TEST()
348 this->expectValues(this->V, this->testArray(33)); in TYPED_TEST()
349 this->V.erase(std::next(this->V.begin(), 13), std::next(this->V.begin(), 26)); in TYPED_TEST()
352 this->expectValues(this->V, this->testArray(20)); in TYPED_TEST()
353 this->V.erase(std::next(this->V.begin(), 7), this->V.end()); in TYPED_TEST()
354 this->expectValues(this->V, this->testArray(7)); in TYPED_TEST()
355 this->V.erase(this->V.begin(), this->V.end()); in TYPED_TEST()
356 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
360 this->V.insert(this->V.end(), this->TestPtrs[0]); in TYPED_TEST()
361 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
362 this->V.clear(); in TYPED_TEST()
363 this->appendValues(this->V, this->testArray(4)); in TYPED_TEST()
364 this->expectValues(this->V, this->testArray(4)); in TYPED_TEST()
365 this->V.insert(this->V.end(), this->TestPtrs[4]); in TYPED_TEST()
366 this->expectValues(this->V, this->testArray(5)); in TYPED_TEST()
367 this->V.insert(this->V.begin(), this->TestPtrs[42]); in TYPED_TEST()
369 this->expectValues(this->V, this->testArray(6)); in TYPED_TEST()
370 this->V.insert(std::next(this->V.begin(), 3), this->TestPtrs[43]); in TYPED_TEST()
373 this->expectValues(this->V, this->testArray(7)); in TYPED_TEST()
377 this->V.insert(this->V.end(), this->TestPtrs.begin(), this->TestPtrs.begin()); in TYPED_TEST()
378 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
379 this->V.insert(this->V.begin(), this->TestPtrs.begin(), in TYPED_TEST()
381 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
382 this->V.insert(this->V.end(), this->TestPtrs.end(), this->TestPtrs.end()); in TYPED_TEST()
383 this->expectValues(this->V, this->testArray(0)); in TYPED_TEST()
384 this->V.insert(this->V.end(), this->TestPtrs.begin(), in TYPED_TEST()
386 this->expectValues(this->V, this->testArray(1)); in TYPED_TEST()
387 this->V.clear(); in TYPED_TEST()
388 this->V.insert(this->V.end(), this->TestPtrs.begin(), in TYPED_TEST()
390 this->expectValues(this->V, this->testArray(2)); in TYPED_TEST()
391 this->V.clear(); in TYPED_TEST()
392 this->V.insert(this->V.end(), this->TestPtrs.begin(), in TYPED_TEST()
394 this->expectValues(this->V, this->testArray(42)); in TYPED_TEST()
395 this->V.clear(); in TYPED_TEST()
396 this->V.insert(this->V.end(), in TYPED_TEST()
399 this->V.insert(this->V.begin(), in TYPED_TEST()
402 this->V.insert(std::next(this->V.begin(), 2), in TYPED_TEST()
405 this->V.erase(std::next(this->V.begin(), 4)); in TYPED_TEST()
406 this->V.insert(std::next(this->V.begin(), 4), in TYPED_TEST()
409 this->expectValues(this->V, this->testArray(13)); in TYPED_TEST()
416 TinyPtrVector<int *> V(&v); in TEST() local
418 EXPECT_TRUE(V.size() == 1); in TEST()
419 EXPECT_FALSE(V.empty()); in TEST()
420 EXPECT_TRUE(V.front() == &v); in TEST()
432 TinyPtrVector<int *> V(data); in TEST() local
433 EXPECT_TRUE(V.size() == 128); in TEST()
434 EXPECT_FALSE(V.empty()); in TEST()
436 EXPECT_TRUE(V[i] == data[i]); in TEST()
449 TinyPtrVector<int *> V(data); in TEST() local
450 EXPECT_TRUE(V.size() == 128); in TEST()
451 EXPECT_FALSE(V.empty()); in TEST()
453 MutableArrayRef<int *> mut_array = V; in TEST()