#include <boost/test/unit_test.hpp>
#include "log.hpp"
#include "config.hpp"
#include "units/unit.hpp"
#include "tests/utils/game_config_manager.hpp"
#include "units/map.hpp"
#include "units/id.hpp"
#include "utils/functional.hpp"
Go to the source code of this file.
Macros | |
#define | GETTEXT_DOMAIN "wesnoth-test" |
Functions | |
BOOST_AUTO_TEST_CASE (test_1) | |
BOOST_AUTO_TEST_CASE (track_real_unit_by_underlying_id) | |
BOOST_AUTO_TEST_CASE (track_fake_unit_by_underlying_id) | |
BOOST_AUTO_TEST_CASE (track_real_unit_by_iterator) | |
BOOST_AUTO_TEST_CASE (track_fake_unit_by_iterator) | |
#define GETTEXT_DOMAIN "wesnoth-test" |
Definition at line 15 of file test_unit_map.cpp.
BOOST_AUTO_TEST_CASE | ( | test_1 | ) |
Definition at line 36 of file test_unit_map.cpp.
References unit_map::add(), unit_type_data::build_unit_type(), unit_map::end(), lg::err(), unit_map::find(), unit_type::FULL, test_utils::get_test_config(), lg::info(), lg::set_log_domain_severity(), unit_map::size(), unit::underlying_id(), unit_types, unit_map::iterator_base< iter_types >::valid(), and lg::warn().
BOOST_AUTO_TEST_CASE | ( | track_real_unit_by_underlying_id | ) |
Definition at line 124 of file test_unit_map.cpp.
References unit_map::add(), unit_type_data::build_unit_type(), unit_map::end(), unit_map::extract(), unit_map::find(), unit_type::FULL, test_utils::get_test_config(), unit_map::insert(), unit::underlying_id(), and unit_types.
BOOST_AUTO_TEST_CASE | ( | track_fake_unit_by_underlying_id | ) |
Definition at line 172 of file test_unit_map.cpp.
References unit_map::add(), unit_type_data::build_unit_type(), unit_map::end(), unit_map::extract(), unit_map::find(), unit_type::FULL, test_utils::get_test_config(), unit_map::insert(), unit::underlying_id(), and unit_types.
BOOST_AUTO_TEST_CASE | ( | track_real_unit_by_iterator | ) |
Definition at line 220 of file test_unit_map.cpp.
References unit_map::add(), unit_type_data::build_unit_type(), unit_map::extract(), unit_map::find(), unit_type::FULL, test_utils::get_test_config(), unit_map::insert(), unit_types, and unit_map::iterator_base< iter_types >::valid().
BOOST_AUTO_TEST_CASE | ( | track_fake_unit_by_iterator | ) |
Definition at line 260 of file test_unit_map.cpp.
References unit_map::add(), unit_type_data::build_unit_type(), unit_map::extract(), unit_map::find(), unit_type::FULL, test_utils::get_test_config(), unit_map::insert(), unit_types, and unit_map::iterator_base< iter_types >::valid().