Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
TestMapSettingsManager Class Reference
+ Inheritance diagram for TestMapSettingsManager:
+ Collaboration diagram for TestMapSettingsManager:

Public Member Functions

 TestMapSettingsManager ()
 
const char * getName ()
 
void makeUserConfig ()
 
std::string makeMetaFile (bool make_corrupt)
 
void runTests (IGameDef *gamedef)
 
void testMapSettingsManager ()
 
void testMapMetaSaveLoad ()
 
void testMapMetaFailures ()
 
- Public Member Functions inherited from TestBase
bool testModule (IGameDef *gamedef)
 
std::string getTestTempDirectory ()
 
std::string getTestTempFile ()
 
void runTest (const char *name, std::function< void()> &&test)
 

Additional Inherited Members

- Public Attributes inherited from TestBase
u32 num_tests_failed
 
u32 num_tests_run
 

Constructor & Destructor Documentation

◆ TestMapSettingsManager()

TestMapSettingsManager::TestMapSettingsManager ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestMapSettingsManager::getName ( )
inlinevirtual

Implements TestBase.

◆ makeMetaFile()

std::string TestMapSettingsManager::makeMetaFile ( bool make_corrupt)

References TestBase::getTestTempFile(), and UASSERT.

Referenced by testMapMetaFailures(), and testMapSettingsManager().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeUserConfig()

void TestMapSettingsManager::makeUserConfig ( )

References Settings::createLayer(), Settings::getLayer(), Settings::set(), and SL_GLOBAL.

Referenced by testMapMetaSaveLoad(), and testMapSettingsManager().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ runTests()

void TestMapSettingsManager::runTests ( IGameDef * gamedef)
virtual

Implements TestBase.

References TEST, testMapMetaFailures(), testMapMetaSaveLoad(), and testMapSettingsManager().

+ Here is the call graph for this function:

◆ testMapMetaFailures()

void TestMapSettingsManager::testMapMetaFailures ( )

References MapSettingsManager::loadMapMeta(), makeMetaFile(), fs::PathExists(), and UASSERT.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testMapMetaSaveLoad()

void TestMapSettingsManager::testMapMetaSaveLoad ( )

References MapgenParams::bparams, DIR_DELIM, Settings::getLayer(), TestBase::getTestTempDirectory(), MapSettingsManager::loadMapMeta(), MapSettingsManager::makeMapgenParams(), makeUserConfig(), MapSettingsManager::saveMapMeta(), MapgenParams::seed, Settings::set(), SL_GLOBAL, UASSERT, UASSERTEQ, and MapgenParams::water_level.

Referenced by runTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ testMapSettingsManager()


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