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

Public Member Functions

 TestServerActiveObjectMgr ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testFreeID ()
 
void testRegisterObject ()
 
void testRemoveObject ()
 
void testGetObjectsInsideRadius ()
 
void testGetAddedActiveObjectsAroundPos ()
 
- 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

◆ TestServerActiveObjectMgr()

TestServerActiveObjectMgr::TestServerActiveObjectMgr ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char* TestServerActiveObjectMgr::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestServerActiveObjectMgr::runTests ( IGameDef gamedef)
virtual

Implements TestBase.

References TEST, testFreeID(), testGetAddedActiveObjectsAroundPos(), testGetObjectsInsideRadius(), testRegisterObject(), and testRemoveObject().

+ Here is the call graph for this function:

◆ testFreeID()

void TestServerActiveObjectMgr::testFreeID ( )

References clearSAOMgr(), ActiveObjectMgr< T >::getFreeId(), server::ActiveObjectMgr::registerObject(), and UASSERT.

Referenced by runTests().

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

◆ testGetAddedActiveObjectsAroundPos()

void TestServerActiveObjectMgr::testGetAddedActiveObjectsAroundPos ( )

References clearSAOMgr(), server::ActiveObjectMgr::getAddedActiveObjectsAroundPos(), p(), server::ActiveObjectMgr::registerObject(), and UASSERTCMP.

Referenced by runTests().

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

◆ testGetObjectsInsideRadius()

void TestServerActiveObjectMgr::testGetObjectsInsideRadius ( )

References clearSAOMgr(), server::ActiveObjectMgr::getObjectsInsideRadius(), p(), server::ActiveObjectMgr::registerObject(), and UASSERTCMP.

Referenced by runTests().

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

◆ testRegisterObject()

void TestServerActiveObjectMgr::testRegisterObject ( )

References clearSAOMgr(), ActiveObjectMgr< T >::getActiveObject(), server::ActiveObjectMgr::registerObject(), and UASSERT.

Referenced by runTests().

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

◆ testRemoveObject()

void TestServerActiveObjectMgr::testRemoveObject ( )

References clearSAOMgr(), ActiveObjectMgr< T >::getActiveObject(), server::ActiveObjectMgr::registerObject(), server::ActiveObjectMgr::removeObject(), and UASSERT.

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: