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

Public Member Functions

 TestMapgen ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testBiomeGen (IGameDef *gamedef)
 
- 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

◆ TestMapgen()

TestMapgen::TestMapgen ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestMapgen::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestMapgen::runTests ( IGameDef * gamedef)
virtual

Implements TestBase.

References TEST, and testBiomeGen().

+ Here is the call graph for this function:

◆ testBiomeGen()

void TestMapgen::testBiomeGen ( IGameDef * gamedef)

References BIOMEGEN_ORIGINAL, BIOMETYPE_NORMAL, Biome::c_filler, Biome::c_stone, Biome::c_top, BiomeManager::create(), BiomeManager::createBiomeParams(), Biome::depth_filler, Biome::depth_top, IGameDef::getNodeDefManager(), TestBase::getTestTempDirectory(), Biome::heat_point, Biome::humidity_point, MAX_MAP_GENERATION_LIMIT, Biome::max_pos, Biome::min_pos, ObjDef::name, OBJDEF_INVALID_HANDLE, S16_MIN, t_CONTENT_BRICK, t_CONTENT_GRASS, t_CONTENT_STONE, UASSERT, and UASSERTEQ.

Referenced by runTests().

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

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