Typedefs | Functions
robin_map_tests.cpp File Reference
#include <tsl/robin_map.h>
#include <boost/mpl/list.hpp>
#include <boost/test/unit_test.hpp>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <iterator>
#include <memory>
#include <stdexcept>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>
#include "utils.h"
Include dependency graph for robin_map_tests.cpp:

Go to the source code of this file.

Typedefs

using test_types = boost::mpl::list< tsl::robin_map< std::int64_t, std::int64_t >, tsl::robin_map< std::string, std::string >, tsl::robin_map< std::int64_t, std::int64_t, mod_hash< 9 > >, tsl::robin_map< std::string, std::string, mod_hash< 9 > >, tsl::robin_map< move_only_test, move_only_test, mod_hash< 9 > >, tsl::robin_map< copy_only_test, copy_only_test, mod_hash< 9 > >, tsl::robin_map< self_reference_member_test, self_reference_member_test, mod_hash< 9 > >, tsl::robin_map< move_only_test, move_only_test, mod_hash< 9 >, std::equal_to< move_only_test >, std::allocator< std::pair< move_only_test, move_only_test > >, true, tsl::rh::power_of_two_growth_policy< 4 > >, tsl::robin_pg_map< move_only_test, move_only_test, mod_hash< 9 > >, tsl::robin_map< move_only_test, move_only_test, mod_hash< 9 >, std::equal_to< move_only_test >, std::allocator< std::pair< move_only_test, move_only_test > >, false, tsl::rh::mod_growth_policy<> >, tsl::robin_map< copy_only_test, copy_only_test, mod_hash< 9 >, std::equal_to< copy_only_test >, std::allocator< std::pair< copy_only_test, copy_only_test > >, false, tsl::rh::power_of_two_growth_policy< 4 > >, tsl::robin_pg_map< copy_only_test, copy_only_test, mod_hash< 9 > >, tsl::robin_map< copy_only_test, copy_only_test, mod_hash< 9 >, std::equal_to< copy_only_test >, std::allocator< std::pair< copy_only_test, copy_only_test > >, true, tsl::rh::mod_growth_policy<> >>
 

Functions

 BOOST_AUTO_TEST_CASE (test_access_operator)
 
 BOOST_AUTO_TEST_CASE (test_assign_operator)
 
 BOOST_AUTO_TEST_CASE (test_at)
 
 BOOST_AUTO_TEST_CASE (test_clear)
 
 BOOST_AUTO_TEST_CASE (test_clear_with_min_load_factor)
 
 BOOST_AUTO_TEST_CASE (test_compare)
 
 BOOST_AUTO_TEST_CASE (test_contains)
 
 BOOST_AUTO_TEST_CASE (test_copy_constructor_and_operator)
 
 BOOST_AUTO_TEST_CASE (test_copy_constructor_empty)
 
 BOOST_AUTO_TEST_CASE (test_copy_operator_empty)
 
 BOOST_AUTO_TEST_CASE (test_emplace)
 
 BOOST_AUTO_TEST_CASE (test_emplace_hint)
 
 BOOST_AUTO_TEST_CASE (test_empty_map)
 
 BOOST_AUTO_TEST_CASE (test_equal_range)
 
 BOOST_AUTO_TEST_CASE (test_erase_fast)
 
 BOOST_AUTO_TEST_CASE (test_extreme_bucket_count_value_construction)
 
 BOOST_AUTO_TEST_CASE (test_heterogeneous_lookups)
 
 BOOST_AUTO_TEST_CASE (test_insert_or_assign)
 
 BOOST_AUTO_TEST_CASE (test_insert_or_assign_hint)
 
 BOOST_AUTO_TEST_CASE (test_insert_with_hint)
 
 BOOST_AUTO_TEST_CASE (test_key_equal)
 
 BOOST_AUTO_TEST_CASE (test_max_load_factor_extreme_factors)
 
 BOOST_AUTO_TEST_CASE (test_min_load_factor)
 
 BOOST_AUTO_TEST_CASE (test_min_load_factor_extreme_factors)
 
 BOOST_AUTO_TEST_CASE (test_min_load_factor_range_erase)
 
 BOOST_AUTO_TEST_CASE (test_modify_value_through_iterator)
 
 BOOST_AUTO_TEST_CASE (test_modify_value_through_iterator_with_const_qualifier)
 
 BOOST_AUTO_TEST_CASE (test_move_constructor)
 
 BOOST_AUTO_TEST_CASE (test_move_constructor_empty)
 
 BOOST_AUTO_TEST_CASE (test_move_operator)
 
 BOOST_AUTO_TEST_CASE (test_move_operator_empty)
 
 BOOST_AUTO_TEST_CASE (test_precalculated_hash)
 
 BOOST_AUTO_TEST_CASE (test_range_construct)
 
 BOOST_AUTO_TEST_CASE (test_range_erase)
 
 BOOST_AUTO_TEST_CASE (test_range_erase_all)
 
 BOOST_AUTO_TEST_CASE (test_range_erase_same_iterators)
 
 BOOST_AUTO_TEST_CASE (test_range_insert)
 
 BOOST_AUTO_TEST_CASE (test_reassign_moved_object_move_constructor)
 
 BOOST_AUTO_TEST_CASE (test_reassign_moved_object_move_operator)
 
 BOOST_AUTO_TEST_CASE (test_rehash_0)
 
 BOOST_AUTO_TEST_CASE (test_rehash_empty)
 
 BOOST_AUTO_TEST_CASE (test_serialize_desearialize)
 
 BOOST_AUTO_TEST_CASE (test_serialize_desearialize_empty)
 
 BOOST_AUTO_TEST_CASE (test_serialize_desearialize_with_different_hash)
 
 BOOST_AUTO_TEST_CASE (test_serialize_desearialize_with_store_hash)
 
 BOOST_AUTO_TEST_CASE (test_swap)
 
 BOOST_AUTO_TEST_CASE (test_swap_empty)
 
 BOOST_AUTO_TEST_CASE (test_try_emplace)
 
 BOOST_AUTO_TEST_CASE (test_try_emplace_2)
 
 BOOST_AUTO_TEST_CASE (test_try_emplace_hint)
 
 BOOST_AUTO_TEST_CASE (test_use_after_move_constructor)
 
 BOOST_AUTO_TEST_CASE (test_use_after_move_operator)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (test_erase_loop, HMap, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (test_erase_loop_range, HMap, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (test_insert, HMap, test_types)
 
 BOOST_AUTO_TEST_CASE_TEMPLATE (test_insert_erase_insert, HMap, test_types)
 

Typedef Documentation

◆ test_types

MIT License

Copyright (c) 2017 Thibaut Goetghebuer-Planchon tessi.nosp@m.l@gm.nosp@m.x.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Definition at line 74 of file robin_map_tests.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/52]

BOOST_AUTO_TEST_CASE ( test_access_operator  )

operator[]

Definition at line 1033 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [2/52]

BOOST_AUTO_TEST_CASE ( test_assign_operator  )

operator=(std::initializer_list)

Definition at line 797 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [3/52]

BOOST_AUTO_TEST_CASE ( test_at  )

at

Definition at line 995 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [4/52]

BOOST_AUTO_TEST_CASE ( test_clear  )

clear

Definition at line 674 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [5/52]

BOOST_AUTO_TEST_CASE ( test_clear_with_min_load_factor  )

Definition at line 691 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [6/52]

BOOST_AUTO_TEST_CASE ( test_compare  )

operator== and operator!=

Definition at line 623 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [7/52]

BOOST_AUTO_TEST_CASE ( test_contains  )

contains

Definition at line 1007 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [8/52]

BOOST_AUTO_TEST_CASE ( test_copy_constructor_and_operator  )

Definition at line 951 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [9/52]

BOOST_AUTO_TEST_CASE ( test_copy_constructor_empty  )

Definition at line 969 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [10/52]

BOOST_AUTO_TEST_CASE ( test_copy_operator_empty  )

Definition at line 980 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [11/52]

BOOST_AUTO_TEST_CASE ( test_emplace  )

emplace

Definition at line 214 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [12/52]

BOOST_AUTO_TEST_CASE ( test_emplace_hint  )

emplace_hint

Definition at line 174 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [13/52]

BOOST_AUTO_TEST_CASE ( test_empty_map  )

Various operations on empty map

Definition at line 1344 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [14/52]

BOOST_AUTO_TEST_CASE ( test_equal_range  )

equal_range

Definition at line 1018 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [15/52]

BOOST_AUTO_TEST_CASE ( test_erase_fast  )

Definition at line 1451 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [16/52]

BOOST_AUTO_TEST_CASE ( test_extreme_bucket_count_value_construction  )

constructor

Definition at line 748 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [17/52]

BOOST_AUTO_TEST_CASE ( test_heterogeneous_lookups  )

other

Definition at line 1259 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [18/52]

BOOST_AUTO_TEST_CASE ( test_insert_or_assign  )

insert_or_assign

Definition at line 308 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [19/52]

BOOST_AUTO_TEST_CASE ( test_insert_or_assign_hint  )

Definition at line 324 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [20/52]

BOOST_AUTO_TEST_CASE ( test_insert_with_hint  )

Definition at line 148 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [21/52]

BOOST_AUTO_TEST_CASE ( test_key_equal  )

KeyEqual

Definition at line 1220 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [22/52]

BOOST_AUTO_TEST_CASE ( test_max_load_factor_extreme_factors  )

max_load_factor

Definition at line 503 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [23/52]

BOOST_AUTO_TEST_CASE ( test_min_load_factor  )

Definition at line 533 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [24/52]

BOOST_AUTO_TEST_CASE ( test_min_load_factor_extreme_factors  )

min_load_factor

Definition at line 516 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [25/52]

BOOST_AUTO_TEST_CASE ( test_min_load_factor_range_erase  )

Definition at line 563 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [26/52]

BOOST_AUTO_TEST_CASE ( test_modify_value_through_iterator  )

iterator.value()

Definition at line 713 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [27/52]

BOOST_AUTO_TEST_CASE ( test_modify_value_through_iterator_with_const_qualifier  )

Definition at line 735 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [28/52]

BOOST_AUTO_TEST_CASE ( test_move_constructor  )

move/copy constructor/operator

Definition at line 814 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [29/52]

BOOST_AUTO_TEST_CASE ( test_move_constructor_empty  )

Definition at line 835 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [30/52]

BOOST_AUTO_TEST_CASE ( test_move_operator  )

Definition at line 846 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [31/52]

BOOST_AUTO_TEST_CASE ( test_move_operator_empty  )

Definition at line 868 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [32/52]

BOOST_AUTO_TEST_CASE ( test_precalculated_hash  )

Test precalculated hash

find

at

contains

count

equal_range

erase

Definition at line 1380 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [33/52]

BOOST_AUTO_TEST_CASE ( test_range_construct  )

Definition at line 787 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [34/52]

BOOST_AUTO_TEST_CASE ( test_range_erase  )

Definition at line 358 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [35/52]

BOOST_AUTO_TEST_CASE ( test_range_erase_all  )

erase

Definition at line 346 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [36/52]

BOOST_AUTO_TEST_CASE ( test_range_erase_same_iterators  )

Definition at line 478 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [37/52]

BOOST_AUTO_TEST_CASE ( test_range_insert  )

Definition at line 118 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [38/52]

BOOST_AUTO_TEST_CASE ( test_reassign_moved_object_move_constructor  )

Definition at line 880 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [39/52]

BOOST_AUTO_TEST_CASE ( test_reassign_moved_object_move_operator  )

Definition at line 893 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [40/52]

BOOST_AUTO_TEST_CASE ( test_rehash_0  )

Definition at line 141 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [41/52]

BOOST_AUTO_TEST_CASE ( test_rehash_empty  )

rehash

Definition at line 596 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [42/52]

BOOST_AUTO_TEST_CASE ( test_serialize_desearialize  )

Definition at line 1107 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [43/52]

BOOST_AUTO_TEST_CASE ( test_serialize_desearialize_empty  )

serialize and deserialize

Definition at line 1090 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [44/52]

BOOST_AUTO_TEST_CASE ( test_serialize_desearialize_with_different_hash  )

Definition at line 1185 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [45/52]

BOOST_AUTO_TEST_CASE ( test_serialize_desearialize_with_store_hash  )

Definition at line 1146 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [46/52]

BOOST_AUTO_TEST_CASE ( test_swap  )

swap

Definition at line 1047 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [47/52]

BOOST_AUTO_TEST_CASE ( test_swap_empty  )

Definition at line 1068 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [48/52]

BOOST_AUTO_TEST_CASE ( test_try_emplace  )

try_emplace

Definition at line 237 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [49/52]

BOOST_AUTO_TEST_CASE ( test_try_emplace_2  )

Definition at line 253 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [50/52]

BOOST_AUTO_TEST_CASE ( test_try_emplace_hint  )

Definition at line 286 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [51/52]

BOOST_AUTO_TEST_CASE ( test_use_after_move_constructor  )

Definition at line 906 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE() [52/52]

BOOST_AUTO_TEST_CASE ( test_use_after_move_operator  )

Definition at line 928 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [1/4]

BOOST_AUTO_TEST_CASE_TEMPLATE ( test_erase_loop  ,
HMap  ,
test_types   
)

Definition at line 379 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [2/4]

BOOST_AUTO_TEST_CASE_TEMPLATE ( test_erase_loop_range  ,
HMap  ,
test_types   
)

Definition at line 402 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [3/4]

BOOST_AUTO_TEST_CASE_TEMPLATE ( test_insert  ,
HMap  ,
test_types   
)

insert

Definition at line 79 of file robin_map_tests.cpp.

◆ BOOST_AUTO_TEST_CASE_TEMPLATE() [4/4]

BOOST_AUTO_TEST_CASE_TEMPLATE ( test_insert_erase_insert  ,
HMap  ,
test_types   
)

Definition at line 422 of file robin_map_tests.cpp.



mp2p_icp
Author(s):
autogenerated on Fri Dec 20 2024 03:46:00