The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
test_config_cache Class Reference

Used to make distinct singleton for testing it because other tests will need original one to load data. More...

Inheritance diagram for test_config_cache:

Public Member Functions

void set_force_invalid_cache (bool force)
 
- Public Member Functions inherited from game_config::config_cache
 config_cache (const config_cache &)=delete
 
config_cacheoperator= (const config_cache &)=delete
 
const preproc_mapget_preproc_map () const
 
void get_config (const std::string &path, config &cfg, abstract_validator *validator=nullptr)
 Gets a config object from given path. More...
 
void clear_defines ()
 Clear stored defines map to default values. More...
 
void add_define (const std::string &define)
 Add a entry to preproc defines map. More...
 
void remove_define (const std::string &define)
 Remove a entry to preproc defines map. More...
 
void set_use_cache (bool use)
 Enable/disable caching. More...
 
void set_force_valid_cache (bool force)
 Enable/disable cache validation. More...
 
void recheck_filetree_checksum ()
 Force cache checksum validation. More...
 
bool clean_cache ()
 Deletes stale cache files not in use by the game. More...
 
bool purge_cache ()
 Deletes all cache files. More...
 

Static Public Member Functions

static test_config_cacheinstance ()
 
- Static Public Member Functions inherited from game_config::config_cache
static config_cacheinstance ()
 Get reference to the singleton object. More...
 

Private Member Functions

 test_config_cache ()
 

Additional Inherited Members

- Protected Member Functions inherited from game_config::config_cache
 config_cache ()
 
void set_force_invalid_cache (bool)
 

Detailed Description

Used to make distinct singleton for testing it because other tests will need original one to load data.

Definition at line 52 of file test_config_cache.cpp.

Constructor & Destructor Documentation

◆ test_config_cache()

test_config_cache::test_config_cache ( )
inlineprivate

Definition at line 53 of file test_config_cache.cpp.

Referenced by instance().

Member Function Documentation

◆ instance()

test_config_cache & test_config_cache::instance ( )
static

Definition at line 64 of file test_config_cache.cpp.

References test_config_cache().

Referenced by BOOST_AUTO_TEST_CASE().

◆ set_force_invalid_cache()

void test_config_cache::set_force_invalid_cache ( bool  force)
inline

The documentation for this class was generated from the following file: