#include <boost/test/unit_test.hpp>
#include "config_cache.hpp"
#include "filesystem.hpp"
#include "game_config.hpp"
#include "log.hpp"
Go to the source code of this file.
Functions | |
BOOST_AUTO_TEST_SUITE (filesystem) | |
BOOST_AUTO_TEST_CASE (test_fs_game_path_reverse_engineering) | |
BOOST_AUTO_TEST_CASE (test_fs_base) | |
BOOST_AUTO_TEST_CASE (test_fs_enum) | |
BOOST_AUTO_TEST_CASE (test_fs_binary_path) | |
BOOST_AUTO_TEST_CASE (test_fs_wml_path) | |
BOOST_AUTO_TEST_CASE (test_fs_search) | |
BOOST_AUTO_TEST_CASE (test_fs_fluff) | |
Variables | |
const std::string & | gamedata = game_config::path |
BOOST_AUTO_TEST_CASE | ( | test_fs_base | ) |
Definition at line 54 of file test_filesystem.cpp.
References filesystem::base_name(), filesystem::directory_name(), filesystem::file_exists(), gamedata, filesystem::is_directory(), filesystem::is_relative(), and filesystem::is_root().
BOOST_AUTO_TEST_CASE | ( | test_fs_binary_path | ) |
Definition at line 145 of file test_filesystem.cpp.
References game_config::config_cache::add_define(), game_config::config_cache::clear_defines(), gamedata, filesystem::get_binary_dir_location(), filesystem::get_binary_file_location(), game_config::config_cache::get_config(), filesystem::get_independent_binary_file_path(), game_config::config_cache::instance(), game_config::load_config(), config::mandatory_child(), game_config::path, and game_config_view::wrap().
BOOST_AUTO_TEST_CASE | ( | test_fs_enum | ) |
Definition at line 107 of file test_filesystem.cpp.
References gamedata, filesystem::get_files_in_dir(), n, and game_config::path.
BOOST_AUTO_TEST_CASE | ( | test_fs_fluff | ) |
Definition at line 216 of file test_filesystem.cpp.
References filesystem::is_bzip2_file(), filesystem::is_compressed_file(), filesystem::is_gzip_file(), and filesystem::looks_like_pbl().
BOOST_AUTO_TEST_CASE | ( | test_fs_game_path_reverse_engineering | ) |
Definition at line 41 of file test_filesystem.cpp.
References gamedata, and filesystem::get_wml_location().
BOOST_AUTO_TEST_CASE | ( | test_fs_search | ) |
Definition at line 201 of file test_filesystem.cpp.
References gamedata, filesystem::get_user_data_dir(), and filesystem::nearest_extant_parent().
BOOST_AUTO_TEST_CASE | ( | test_fs_wml_path | ) |
Definition at line 185 of file test_filesystem.cpp.
References gamedata, filesystem::get_user_data_dir(), and filesystem::get_wml_location().
BOOST_AUTO_TEST_SUITE | ( | filesystem | ) |
const std::string& gamedata = game_config::path |
Definition at line 39 of file test_filesystem.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), events::menu_handler::end_turn(), game_events::wmi_manager::fire_item(), game_events::wmi_manager::get_items(), and team::get_village().