Lines Matching refs:fixture
655 fixture_type fixture; in test_move_ctor_single_argument() local
657 container_type dst(std::move(fixture.source)); in test_move_ctor_single_argument()
659 fixture.verify_content_shallow_moved(dst); in test_move_ctor_single_argument()
660 fixture.verify_allocator_was_moved(dst.get_allocator()); in test_move_ctor_single_argument()
661 fixture.verify_no_more_than_x_memory_items_allocated(); in test_move_ctor_single_argument()
662 fixture.verify_no_undestroyed_foo_left_and_dismiss(); in test_move_ctor_single_argument()
670 fixture_type fixture; in test_move_ctor_with_equal_allocator() local
672 container_type dst(std::move(fixture.source), fixture.source.get_allocator()); in test_move_ctor_with_equal_allocator()
674 fixture.verify_content_shallow_moved(dst); in test_move_ctor_with_equal_allocator()
675 fixture.verify_no_more_than_x_memory_items_allocated(); in test_move_ctor_with_equal_allocator()
676 fixture.verify_no_undestroyed_foo_left_and_dismiss(); in test_move_ctor_with_equal_allocator()
684 fixture_type fixture; in test_move_ctor_with_unequal_allocator() local
686 typename container_type::allocator_type alloc(fixture.dst_allocator); in test_move_ctor_with_unequal_allocator()
687 container_type dst(std::move(fixture.source), alloc); in test_move_ctor_with_unequal_allocator()
689 fixture.verify_content_deep_moved(dst); in test_move_ctor_with_unequal_allocator()
697 fixture_type fixture; in test_move_assignment_POCMA_true_stateful_allocator() local
699 container_type dst(fixture.dst_allocator); in test_move_assignment_POCMA_true_stateful_allocator()
700 dst = std::move(fixture.source); in test_move_assignment_POCMA_true_stateful_allocator()
702 fixture.verify_content_shallow_moved(dst); in test_move_assignment_POCMA_true_stateful_allocator()
703 fixture.verify_allocator_was_moved(dst.get_allocator()); in test_move_assignment_POCMA_true_stateful_allocator()
704 fixture.verify_no_more_than_x_memory_items_allocated(); in test_move_assignment_POCMA_true_stateful_allocator()
705 fixture.verify_no_undestroyed_foo_left_and_dismiss(); in test_move_assignment_POCMA_true_stateful_allocator()
716 fixture_type fixture; in test_move_assignment_POCMA_true_stateless_allocator() local
718 …REQUIRE_MESSAGE(fixture.source.get_allocator() == allocator_type(), "Incorrect test setup: allocat… in test_move_assignment_POCMA_true_stateless_allocator()
721 dst = std::move(fixture.source); in test_move_assignment_POCMA_true_stateless_allocator()
723 fixture.verify_content_shallow_moved(dst); in test_move_assignment_POCMA_true_stateless_allocator()
731 fixture_type fixture; in test_move_assignment_POCMA_false_equal_allocator() local
732 container_type dst(fixture.source_allocator); in test_move_assignment_POCMA_false_equal_allocator()
733 …REQUIRE_MESSAGE(fixture.source.get_allocator() == dst.get_allocator(), "Incorrect test setup: allo… in test_move_assignment_POCMA_false_equal_allocator()
735 fixture.save_allocator_counters(); in test_move_assignment_POCMA_false_equal_allocator()
737 dst = std::move(fixture.source); in test_move_assignment_POCMA_false_equal_allocator()
739 fixture.verify_content_shallow_moved(dst); in test_move_assignment_POCMA_false_equal_allocator()
740 fixture.verify_no_more_than_x_memory_items_allocated(); in test_move_assignment_POCMA_false_equal_allocator()
741 fixture.verify_no_undestroyed_foo_left_and_dismiss(); in test_move_assignment_POCMA_false_equal_allocator()
749 fixture_type fixture; in test_move_assignment_POCMA_false_unequal_allocator() local
751 container_type dst(fixture.dst_allocator); in test_move_assignment_POCMA_false_unequal_allocator()
752 dst = std::move(fixture.source); in test_move_assignment_POCMA_false_unequal_allocator()
754 fixture.verify_content_deep_moved(dst); in test_move_assignment_POCMA_false_unequal_allocator()
773 fixture_type fixture; in test_ex_move_ctor_unequal_allocator_memory_failure() local
775 std::size_t limit = allocator_type::items_allocated + fixture.container_size / 4; in test_ex_move_ctor_unequal_allocator_memory_failure()
778 …REQUIRE_THROW_EXCEPTION(container_type dst(std::move(fixture.source), fixture.dst_allocator), std:… in test_ex_move_ctor_unequal_allocator_memory_failure()
786 fixture_type fixture; in test_ex_move_ctor_unequal_allocator_element_ctor_failure() local
788 std::size_t limit = foo_count + fixture.container_size / 4; in test_ex_move_ctor_unequal_allocator_element_ctor_failure()
790 …REQUIRE_THROW_EXCEPTION(container_type dst(std::move(fixture.source), fixture.dst_allocator), FooE… in test_ex_move_ctor_unequal_allocator_element_ctor_failure()
821 fixture_type fixture; in test_constructor_with_move_iterators() local
823 …ner_type dst(std::make_move_iterator(fixture.source.begin()), std::make_move_iterator(fixture.sour… in test_constructor_with_move_iterators()
825 fixture.verify_content_deep_moved(dst); in test_constructor_with_move_iterators()
833 fixture_type fixture; in test_assign_with_move_iterators() local
835 container_type dst(fixture.dst_allocator); in test_assign_with_move_iterators()
836 …dst.assign(std::make_move_iterator(fixture.source.begin()), std::make_move_iterator(fixture.source… in test_assign_with_move_iterators()
838 fixture.verify_content_deep_moved(dst); in test_assign_with_move_iterators()