Minetest  5.4.0
TestNodeDef Class Reference
+ Inheritance diagram for TestNodeDef:
+ Collaboration diagram for TestNodeDef:

Public Member Functions

 TestNodeDef ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testContentFeaturesSerialization ()
 
- Public Member Functions inherited from TestBase
bool testModule (IGameDef *gamedef)
 
std::string getTestTempDirectory ()
 
std::string getTestTempFile ()
 

Additional Inherited Members

- Public Attributes inherited from TestBase
u32 num_tests_failed
 
u32 num_tests_run
 

Constructor & Destructor Documentation

◆ TestNodeDef()

TestNodeDef::TestNodeDef ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char* TestNodeDef::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestNodeDef::runTests ( IGameDef gamedef)
virtual

Implements TestBase.

References TEST, and testContentFeaturesSerialization().

+ Here is the call graph for this function:

◆ testContentFeaturesSerialization()

void TestNodeDef::testContentFeaturesSerialization ( )

References ContentFeatures::deSerialize(), ContentFeatures::is_ground_content, LATEST_PROTOCOL_VERSION, TileDef::name, ContentFeatures::name, ContentFeatures::node_box, ContentFeatures::serialize(), ContentFeatures::tiledef, NodeBox::type, UASSERT, and ContentFeatures::walkable.

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: