#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"
Go to the source code of this file.
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) | |
MIT License
Copyright (c) 2017 Thibaut Goetghebuer-Planchon tessi l@gm 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.
BOOST_AUTO_TEST_CASE | ( | test_access_operator | ) |
operator[]
Definition at line 1033 of file robin_map_tests.cpp.
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 | ( | test_at | ) |
at
Definition at line 995 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_clear | ) |
clear
Definition at line 674 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_clear_with_min_load_factor | ) |
Definition at line 691 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_compare | ) |
operator== and operator!=
Definition at line 623 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_contains | ) |
contains
Definition at line 1007 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_copy_constructor_and_operator | ) |
Definition at line 951 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_copy_constructor_empty | ) |
Definition at line 969 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_copy_operator_empty | ) |
Definition at line 980 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_emplace | ) |
emplace
Definition at line 214 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_emplace_hint | ) |
emplace_hint
Definition at line 174 of file robin_map_tests.cpp.
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 | ( | test_equal_range | ) |
equal_range
Definition at line 1018 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_erase_fast | ) |
Definition at line 1451 of file robin_map_tests.cpp.
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 | ( | test_heterogeneous_lookups | ) |
other
Definition at line 1259 of file robin_map_tests.cpp.
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 | ( | test_insert_or_assign_hint | ) |
Definition at line 324 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_insert_with_hint | ) |
Definition at line 148 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_key_equal | ) |
KeyEqual
Definition at line 1220 of file robin_map_tests.cpp.
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 | ( | test_min_load_factor | ) |
Definition at line 533 of file robin_map_tests.cpp.
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 | ( | test_min_load_factor_range_erase | ) |
Definition at line 563 of file robin_map_tests.cpp.
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 | ( | test_modify_value_through_iterator_with_const_qualifier | ) |
Definition at line 735 of file robin_map_tests.cpp.
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 | ( | test_move_constructor_empty | ) |
Definition at line 835 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_move_operator | ) |
Definition at line 846 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_move_operator_empty | ) |
Definition at line 868 of file robin_map_tests.cpp.
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 | ( | test_range_construct | ) |
Definition at line 787 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_range_erase | ) |
Definition at line 358 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_range_erase_all | ) |
erase
Definition at line 346 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_range_erase_same_iterators | ) |
Definition at line 478 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_range_insert | ) |
Definition at line 118 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_reassign_moved_object_move_constructor | ) |
Definition at line 880 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_reassign_moved_object_move_operator | ) |
Definition at line 893 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_rehash_0 | ) |
Definition at line 141 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_rehash_empty | ) |
rehash
Definition at line 596 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_serialize_desearialize | ) |
Definition at line 1107 of file robin_map_tests.cpp.
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 | ( | test_serialize_desearialize_with_different_hash | ) |
Definition at line 1185 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_serialize_desearialize_with_store_hash | ) |
Definition at line 1146 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_swap | ) |
swap
Definition at line 1047 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_swap_empty | ) |
Definition at line 1068 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_try_emplace | ) |
try_emplace
Definition at line 237 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_try_emplace_2 | ) |
Definition at line 253 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_try_emplace_hint | ) |
Definition at line 286 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_use_after_move_constructor | ) |
Definition at line 906 of file robin_map_tests.cpp.
BOOST_AUTO_TEST_CASE | ( | test_use_after_move_operator | ) |
Definition at line 928 of file robin_map_tests.cpp.
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 | ( | test_erase_loop_range | , |
HMap | , | ||
test_types | |||
) |
Definition at line 402 of file robin_map_tests.cpp.
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 | ( | test_insert_erase_insert | , |
HMap | , | ||
test_types | |||
) |
Definition at line 422 of file robin_map_tests.cpp.