Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
TestMap Class Reference
+ Inheritance diagram for TestMap:
+ Collaboration diagram for TestMap:

Public Member Functions

 TestMap ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testMaxMapgenLimit ()
 
void testForEachNodeInArea (IGameDef *gamedef)
 
void testForEachNodeInAreaBlank (IGameDef *gamedef)
 
void testForEachNodeInAreaEmpty (IGameDef *gamedef)
 
- Public Member Functions inherited from TestBase
bool testModule (IGameDef *gamedef)
 
std::string getTestTempDirectory ()
 
std::string getTestTempFile ()
 
virtual void runTests (IGameDef *gamedef)=0
 
virtual const char * getName ()=0
 
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

◆ TestMap()

TestMap::TestMap ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestMap::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestMap::runTests ( IGameDef gamedef)
virtual

Implements TestBase.

References runTests(), TEST, testForEachNodeInArea(), testForEachNodeInAreaBlank(), testForEachNodeInAreaEmpty(), and testMaxMapgenLimit().

Referenced by runTests().

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

◆ testForEachNodeInArea()

void TestMap::testForEachNodeInArea ( IGameDef gamedef)

References CONTENT_AIR, CONTENT_IGNORE, Map::forEachNodeInArea(), MapNode::getContent(), getNodeBlockPos(), p(), Map::setNode(), t_CONTENT_LAVA, t_CONTENT_STONE, t_CONTENT_TORCH, t_CONTENT_WATER, testForEachNodeInArea(), UASSERT, and UASSERTEQ.

Referenced by runTests(), and testForEachNodeInArea().

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

◆ testForEachNodeInAreaBlank()

void TestMap::testForEachNodeInAreaBlank ( IGameDef gamedef)

References Map::forEachNodeInArea(), Map::getNode(), p(), testForEachNodeInAreaBlank(), and UASSERT.

Referenced by runTests(), and testForEachNodeInAreaBlank().

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

◆ testForEachNodeInAreaEmpty()

void TestMap::testForEachNodeInAreaEmpty ( IGameDef gamedef)

References Map::forEachNodeInArea(), p(), testForEachNodeInAreaEmpty(), and UASSERT.

Referenced by runTests(), and testForEachNodeInAreaEmpty().

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

◆ testMaxMapgenLimit()

void TestMap::testMaxMapgenLimit ( )

References blockpos_over_max_limit(), BS, MAP_BLOCKSIZE, MAX_MAP_GENERATION_LIMIT, objectpos_over_limit(), testMaxMapgenLimit(), UASSERT, and UASSERTEQ.

Referenced by runTests(), and testMaxMapgenLimit().

+ 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: