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

Public Member Functions

 TestEventManager ()
 
const char * getName () override
 
void runTests (IGameDef *gamedef) override
 
void testRegister ()
 
void testDeregister ()
 
void testRealEvent ()
 
void testRealEventAfterDereg ()
 
- 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

◆ TestEventManager()

TestEventManager::TestEventManager ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestEventManager::getName ( )
inlineoverridevirtual

Implements TestBase.

◆ runTests()

void TestEventManager::runTests ( IGameDef * gamedef)
overridevirtual

Implements TestBase.

References TEST, testDeregister(), testRealEvent(), testRealEventAfterDereg(), and testRegister().

+ Here is the call graph for this function:

◆ testDeregister()

void TestEventManager::testDeregister ( )

References EventManager::dereg(), MtEvent::NODE_DUG, MtEvent::PLAYER_DAMAGE, and EventManager::reg().

Referenced by runTests().

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

◆ testRealEvent()

void TestEventManager::testRealEvent ( )

References EventManagerTest::eventTest(), MtEvent::PLAYER_REGAIN_GROUND, EventManager::put(), EventManager::reg(), and UASSERT.

Referenced by runTests().

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

◆ testRealEventAfterDereg()

void TestEventManager::testRealEventAfterDereg ( )

References EventManager::dereg(), EventManagerTest::eventTest(), MtEvent::PLAYER_REGAIN_GROUND, EventManager::put(), EventManager::reg(), and UASSERT.

Referenced by runTests().

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

◆ testRegister()

void TestEventManager::testRegister ( )

References MtEvent::PLAYER_DAMAGE, and EventManager::reg().

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: