mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
Add foa-based node containers to max_load_tests
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
|
||||||
|
// Copyright 2022-2023 Christian Mazakas.
|
||||||
|
// Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||||
|
// file LICENSE_1_0.txt or move at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
#if !defined(BOOST_UNORDERED_FOA_TESTS)
|
#if !defined(BOOST_UNORDERED_FOA_TESTS)
|
||||||
#error "max_load_tests is currently only supported by open-addressed containers"
|
#error "max_load_tests is currently only supported by open-addressed containers"
|
||||||
#else
|
#else
|
||||||
@ -69,9 +74,24 @@ boost::unordered_flat_map<test::object, test::object, test::hash,
|
|||||||
test::allocator1<std::pair<test::object const, test::object> > >*
|
test::allocator1<std::pair<test::object const, test::object> > >*
|
||||||
test_map_tracking;
|
test_map_tracking;
|
||||||
|
|
||||||
|
boost::unordered_node_set<int>* int_node_set_ptr;
|
||||||
|
boost::unordered_node_map<test::movable, test::movable, test::hash,
|
||||||
|
test::equal_to, test::allocator2<test::movable> >* test_node_map_ptr;
|
||||||
|
|
||||||
|
boost::unordered_node_set<test::object, test::hash, test::equal_to,
|
||||||
|
test::allocator1<test::object> >* test_node_set_tracking;
|
||||||
|
boost::unordered_node_map<test::object, test::object, test::hash,
|
||||||
|
test::equal_to,
|
||||||
|
test::allocator1<std::pair<test::object const, test::object> > >*
|
||||||
|
test_node_map_tracking;
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
UNORDERED_TEST(max_load_tests,
|
UNORDERED_TEST(max_load_tests,
|
||||||
((int_set_ptr)(test_map_ptr)(test_set_tracking)(test_map_tracking))(
|
((int_set_ptr)(test_map_ptr)(test_set_tracking)(test_map_tracking)
|
||||||
|
(int_node_set_ptr)(test_node_map_ptr)
|
||||||
|
(test_node_set_tracking)(test_node_map_tracking))(
|
||||||
(sequential)))
|
(sequential)))
|
||||||
|
// clang-format on
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
RUN_TESTS()
|
RUN_TESTS()
|
||||||
|
Reference in New Issue
Block a user