Lines Matching refs:theVector
216 VectorT theVector; member in __anon4a72bbf00111::SmallVectorTest
232 this->theVector = SmallVector<Constructable, 2>(2, 2); in TYPED_TEST()
233 this->assertValuesInOrder(this->theVector, 2u, 2, 2); in TYPED_TEST()
240 this->theVector = in TYPED_TEST()
242 this->assertValuesInOrder(this->theVector, 3u, 1, 2, 3); in TYPED_TEST()
248 this->assertEmpty(this->theVector); in TYPED_TEST()
249 EXPECT_TRUE(this->theVector.rbegin() == this->theVector.rend()); in TYPED_TEST()
259 bool RequiresGrowth = this->theVector.capacity() < 3; in TYPED_TEST()
262 this->theVector.push_back(Constructable(1)); in TYPED_TEST()
265 this->assertValuesInOrder(this->theVector, 1u, 1); in TYPED_TEST()
266 EXPECT_FALSE(this->theVector.begin() == this->theVector.end()); in TYPED_TEST()
267 EXPECT_FALSE(this->theVector.empty()); in TYPED_TEST()
270 this->theVector.push_back(Constructable(2)); in TYPED_TEST()
271 this->assertValuesInOrder(this->theVector, 2u, 1, 2); in TYPED_TEST()
275 this->theVector.reserve(this->theVector.size() + 1); in TYPED_TEST()
276 this->theVector.insert(this->theVector.begin(), this->theVector[1]); in TYPED_TEST()
277 this->assertValuesInOrder(this->theVector, 3u, 2, 1, 2); in TYPED_TEST()
280 this->theVector.pop_back(); in TYPED_TEST()
281 this->assertValuesInOrder(this->theVector, 2u, 2, 1); in TYPED_TEST()
284 this->theVector.pop_back_n(2); in TYPED_TEST()
285 this->assertEmpty(this->theVector); in TYPED_TEST()
306 this->theVector.reserve(2); in TYPED_TEST()
307 this->makeSequence(this->theVector, 1, 2); in TYPED_TEST()
308 this->theVector.clear(); in TYPED_TEST()
310 this->assertEmpty(this->theVector); in TYPED_TEST()
319 this->theVector.reserve(3); in TYPED_TEST()
320 this->makeSequence(this->theVector, 1, 3); in TYPED_TEST()
321 this->theVector.resize(1); in TYPED_TEST()
323 this->assertValuesInOrder(this->theVector, 1u, 1); in TYPED_TEST()
332 this->theVector.reserve(3); in TYPED_TEST()
333 this->makeSequence(this->theVector, 1, 3); in TYPED_TEST()
334 this->theVector.truncate(1); in TYPED_TEST()
336 this->assertValuesInOrder(this->theVector, 1u, 1); in TYPED_TEST()
341 EXPECT_DEATH(this->theVector.truncate(2), "Cannot increase size"); in TYPED_TEST()
343 this->theVector.truncate(1); in TYPED_TEST()
344 this->assertValuesInOrder(this->theVector, 1u, 1); in TYPED_TEST()
348 this->theVector.truncate(0); in TYPED_TEST()
349 this->assertEmpty(this->theVector); in TYPED_TEST()
358 this->theVector.resize(2); in TYPED_TEST()
362 EXPECT_EQ(2u, this->theVector.size()); in TYPED_TEST()
366 this->theVector.resize(2); in TYPED_TEST()
370 this->theVector.resize(4); in TYPED_TEST()
384 this->theVector.resize(3, Constructable(77)); in TYPED_TEST()
385 this->assertValuesInOrder(this->theVector, 3u, 77, 77, 77); in TYPED_TEST()
418 this->makeSequence(this->theVector, 1, 10); in TYPED_TEST()
421 EXPECT_EQ(10u, this->theVector.size()); in TYPED_TEST()
423 EXPECT_EQ(i+1, this->theVector[i].getValue()); in TYPED_TEST()
427 this->theVector.resize(1); in TYPED_TEST()
429 this->assertValuesInOrder(this->theVector, 1u, 1); in TYPED_TEST()
434 this->makeSequence(this->theVector, 1, 2); in TYPED_TEST()
437 typename TypeParam::iterator it = this->theVector.begin(); in TYPED_TEST()
438 EXPECT_TRUE(*it == this->theVector.front()); in TYPED_TEST()
439 EXPECT_TRUE(*it == this->theVector[0]); in TYPED_TEST()
442 EXPECT_TRUE(*it == this->theVector[1]); in TYPED_TEST()
443 EXPECT_TRUE(*it == this->theVector.back()); in TYPED_TEST()
446 EXPECT_TRUE(it == this->theVector.end()); in TYPED_TEST()
448 EXPECT_TRUE(*it == this->theVector[1]); in TYPED_TEST()
451 EXPECT_TRUE(*it == this->theVector[0]); in TYPED_TEST()
455 typename TypeParam::reverse_iterator rit = this->theVector.rbegin(); in TYPED_TEST()
456 EXPECT_TRUE(*rit == this->theVector[1]); in TYPED_TEST()
459 EXPECT_TRUE(*rit == this->theVector[0]); in TYPED_TEST()
462 EXPECT_TRUE(rit == this->theVector.rend()); in TYPED_TEST()
464 EXPECT_TRUE(*rit == this->theVector[0]); in TYPED_TEST()
467 EXPECT_TRUE(*rit == this->theVector[1]); in TYPED_TEST()
475 this->makeSequence(this->theVector, 1, 2); in TYPED_TEST()
476 std::swap(this->theVector, this->otherVector); in TYPED_TEST()
478 this->assertEmpty(this->theVector); in TYPED_TEST()
488 this->theVector.push_back(Constructable(1)); in TYPED_TEST()
489 this->theVector.append(this->otherVector.begin(), this->otherVector.end()); in TYPED_TEST()
491 this->assertValuesInOrder(this->theVector, 3u, 1, 2, 3); in TYPED_TEST()
498 this->theVector.push_back(Constructable(1)); in TYPED_TEST()
499 this->theVector.append(2, Constructable(77)); in TYPED_TEST()
500 this->assertValuesInOrder(this->theVector, 3u, 1, 77, 77); in TYPED_TEST()
507 this->theVector.push_back(Constructable(1)); in TYPED_TEST()
508 this->theVector.append(2, 7); in TYPED_TEST()
509 this->assertValuesInOrder(this->theVector, 3u, 1, 7, 7); in TYPED_TEST()
525 this->theVector.push_back(Constructable(1)); in TYPED_TEST()
526 this->theVector.append(output_iterator(), output_iterator()); in TYPED_TEST()
527 this->assertValuesInOrder(this->theVector, 3u, 1, 7, 7); in TYPED_TEST()
534 this->theVector.push_back(Constructable(1)); in TYPED_TEST()
535 this->theVector.append(otherVector); in TYPED_TEST()
536 this->assertValuesInOrder(this->theVector, 3u, 1, 7, 7); in TYPED_TEST()
543 this->theVector.push_back(Constructable(1)); in TYPED_TEST()
544 this->theVector.assign(2, Constructable(77)); in TYPED_TEST()
545 this->assertValuesInOrder(this->theVector, 2u, 77, 77); in TYPED_TEST()
552 this->theVector.push_back(Constructable(1)); in TYPED_TEST()
554 this->theVector.assign(std::begin(arr), std::end(arr)); in TYPED_TEST()
555 this->assertValuesInOrder(this->theVector, 3u, 1, 2, 3); in TYPED_TEST()
562 this->theVector.push_back(Constructable(1)); in TYPED_TEST()
563 this->theVector.assign(2, 7); in TYPED_TEST()
564 this->assertValuesInOrder(this->theVector, 2u, 7, 7); in TYPED_TEST()
571 this->theVector.push_back(Constructable(1)); in TYPED_TEST()
572 this->theVector.assign(otherVector); in TYPED_TEST()
573 this->assertValuesInOrder(this->theVector, 2u, 7, 7); in TYPED_TEST()
581 this->theVector.reserve(4); in TYPED_TEST()
582 this->theVector.push_back(Constructable(1)); in TYPED_TEST()
589 this->theVector = std::move(this->otherVector); in TYPED_TEST()
592 this->assertValuesInOrder(this->theVector, 2u, 2, 3); in TYPED_TEST()
601 this->theVector.clear(); in TYPED_TEST()
610 this->makeSequence(this->theVector, 1, 3); in TYPED_TEST()
611 const auto &theConstVector = this->theVector; in TYPED_TEST()
612 this->theVector.erase(theConstVector.begin()); in TYPED_TEST()
613 this->assertValuesInOrder(this->theVector, 2u, 2, 3); in TYPED_TEST()
620 this->makeSequence(this->theVector, 1, 3); in TYPED_TEST()
621 const auto &theConstVector = this->theVector; in TYPED_TEST()
622 this->theVector.erase(theConstVector.begin(), theConstVector.begin() + 2); in TYPED_TEST()
623 this->assertValuesInOrder(this->theVector, 1u, 3); in TYPED_TEST()
630 this->makeSequence(this->theVector, 1, 3); in TYPED_TEST()
632 this->theVector.insert(this->theVector.begin() + 1, Constructable(77)); in TYPED_TEST()
633 EXPECT_EQ(this->theVector.begin() + 1, I); in TYPED_TEST()
634 this->assertValuesInOrder(this->theVector, 4u, 1, 77, 2, 3); in TYPED_TEST()
641 this->makeSequence(this->theVector, 1, 3); in TYPED_TEST()
644 this->theVector.insert(this->theVector.begin() + 1, C); in TYPED_TEST()
645 EXPECT_EQ(this->theVector.begin() + 1, I); in TYPED_TEST()
646 this->assertValuesInOrder(this->theVector, 4u, 1, 77, 2, 3); in TYPED_TEST()
653 this->makeSequence(this->theVector, 1, 4); in TYPED_TEST()
656 this->theVector.insert(this->theVector.begin() + 1, 2, Constructable(16)); in TYPED_TEST()
670 EXPECT_EQ(this->theVector.begin() + 1, I); in TYPED_TEST()
671 this->assertValuesInOrder(this->theVector, 6u, 1, 16, 16, 2, 3, 4); in TYPED_TEST()
677 this->makeSequence(this->theVector, 1, 4); in TYPED_TEST()
679 auto I = this->theVector.insert(this->theVector.begin() + 1, 2, 7); in TYPED_TEST()
680 EXPECT_EQ(this->theVector.begin() + 1, I); in TYPED_TEST()
681 this->assertValuesInOrder(this->theVector, 6u, 1, 7, 7, 2, 3, 4); in TYPED_TEST()
687 this->makeSequence(this->theVector, 1, 4); in TYPED_TEST()
689 auto I = this->theVector.insert(this->theVector.end(), 2, Constructable(16)); in TYPED_TEST()
699 EXPECT_EQ(this->theVector.begin() + 4, I); in TYPED_TEST()
700 this->assertValuesInOrder(this->theVector, 6u, 1, 2, 3, 4, 16, 16); in TYPED_TEST()
706 this->makeSequence(this->theVector, 10, 15); in TYPED_TEST()
709 EXPECT_EQ(this->theVector.end(), in TYPED_TEST()
710 this->theVector.insert(this->theVector.end(), in TYPED_TEST()
712 EXPECT_EQ(this->theVector.begin() + 1, in TYPED_TEST()
713 this->theVector.insert(this->theVector.begin() + 1, in TYPED_TEST()
724 this->makeSequence(this->theVector, 1, 3); in TYPED_TEST()
726 auto I = this->theVector.insert(this->theVector.begin() + 1, Arr, Arr + 3); in TYPED_TEST()
738 EXPECT_EQ(this->theVector.begin() + 1, I); in TYPED_TEST()
739 this->assertValuesInOrder(this->theVector, 6u, 1, 77, 77, 77, 2, 3); in TYPED_TEST()
749 this->makeSequence(this->theVector, 1, 3); in TYPED_TEST()
753 auto I = this->theVector.insert(this->theVector.end(), Arr, Arr+3); in TYPED_TEST()
763 EXPECT_EQ(this->theVector.begin() + 3, I); in TYPED_TEST()
764 this->assertValuesInOrder(this->theVector, 6u, in TYPED_TEST()
771 this->makeSequence(this->theVector, 1, 3); in TYPED_TEST()
774 EXPECT_EQ(this->theVector.end(), in TYPED_TEST()
775 this->theVector.insert(this->theVector.end(), in TYPED_TEST()
776 this->theVector.begin(), in TYPED_TEST()
777 this->theVector.begin())); in TYPED_TEST()
778 EXPECT_EQ(this->theVector.begin() + 1, in TYPED_TEST()
779 this->theVector.insert(this->theVector.begin() + 1, in TYPED_TEST()
780 this->theVector.begin(), in TYPED_TEST()
781 this->theVector.begin())); in TYPED_TEST()
788 this->makeSequence(this->theVector, 1, 3); in TYPED_TEST()
791 EXPECT_TRUE(this->theVector == this->otherVector); in TYPED_TEST()
792 EXPECT_FALSE(this->theVector != this->otherVector); in TYPED_TEST()
797 EXPECT_FALSE(this->theVector == this->otherVector); in TYPED_TEST()
798 EXPECT_TRUE(this->theVector != this->otherVector); in TYPED_TEST()
805 this->theVector = {1, 2, 4}; in TYPED_TEST()
808 EXPECT_TRUE(this->theVector < this->otherVector); in TYPED_TEST()
809 EXPECT_TRUE(this->theVector <= this->otherVector); in TYPED_TEST()
810 EXPECT_FALSE(this->theVector > this->otherVector); in TYPED_TEST()
811 EXPECT_FALSE(this->theVector >= this->otherVector); in TYPED_TEST()
813 EXPECT_FALSE(this->otherVector < this->theVector); in TYPED_TEST()
814 EXPECT_FALSE(this->otherVector <= this->theVector); in TYPED_TEST()
815 EXPECT_TRUE(this->otherVector > this->theVector); in TYPED_TEST()
816 EXPECT_TRUE(this->otherVector >= this->theVector); in TYPED_TEST()
820 EXPECT_FALSE(this->theVector < this->otherVector); in TYPED_TEST()
821 EXPECT_TRUE(this->theVector <= this->otherVector); in TYPED_TEST()
822 EXPECT_FALSE(this->theVector > this->otherVector); in TYPED_TEST()
823 EXPECT_TRUE(this->theVector >= this->otherVector); in TYPED_TEST()
825 EXPECT_FALSE(this->otherVector < this->theVector); in TYPED_TEST()
826 EXPECT_TRUE(this->otherVector <= this->theVector); in TYPED_TEST()
827 EXPECT_FALSE(this->otherVector > this->theVector); in TYPED_TEST()
828 EXPECT_TRUE(this->otherVector >= this->theVector); in TYPED_TEST()
842 EXPECT_EQ(0u, this->theVector.size()); in TYPED_TEST()
843 this->theVector.reserve(4); in TYPED_TEST()
844 EXPECT_LE(4u, this->theVector.capacity()); in TYPED_TEST()
846 this->theVector.push_back(1); in TYPED_TEST()
847 this->theVector.push_back(2); in TYPED_TEST()
848 this->theVector.push_back(3); in TYPED_TEST()
849 this->theVector.push_back(4); in TYPED_TEST()
850 EXPECT_EQ(4u, this->theVector.size()); in TYPED_TEST()
852 EXPECT_EQ(1, this->theVector[0].getValue()); in TYPED_TEST()
853 EXPECT_EQ(2, this->theVector[1].getValue()); in TYPED_TEST()
854 EXPECT_EQ(3, this->theVector[2].getValue()); in TYPED_TEST()
855 EXPECT_EQ(4, this->theVector[3].getValue()); in TYPED_TEST()
860 this->theVector.insert(this->theVector.end(), L.begin(), L.end()); in TYPED_TEST()
868 VectorT1 theVector; member in __anon4a72bbf00111::DualSmallVectorsTest
898 this->theVector = in TYPED_TEST()
902 this->assertValuesInOrder(this->theVector, 4u, 0, 1, 2, 3); in TYPED_TEST()
913 this->theVector.data() == OrigDataPtr); in TYPED_TEST()
916 this->theVector.clear(); in TYPED_TEST()