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

Public Member Functions

 TestServerShutdownState ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testInit ()
 
void testReset ()
 
void testTrigger ()
 
void testTick ()
 
- 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

◆ TestServerShutdownState()

TestServerShutdownState::TestServerShutdownState ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestServerShutdownState::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestServerShutdownState::runTests ( IGameDef gamedef)
virtual

Implements TestBase.

References TEST, testInit(), testReset(), testTick(), and testTrigger().

+ Here is the call graph for this function:

◆ testInit()

void TestServerShutdownState::testInit ( )

References Server::ShutdownState::is_requested, Server::ShutdownState::m_timer, Server::ShutdownState::message, Server::ShutdownState::should_reconnect, and UASSERT.

Referenced by runTests().

+ Here is the caller graph for this function:

◆ testReset()

void TestServerShutdownState::testReset ( )

References Server::ShutdownState::is_requested, Server::ShutdownState::m_timer, Server::ShutdownState::message, Server::ShutdownState::reset(), Server::ShutdownState::should_reconnect, and UASSERT.

Referenced by runTests().

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

◆ testTick()

void TestServerShutdownState::testTick ( )

References Server::ShutdownState::is_requested, Server::ShutdownState::m_timer, Server::ShutdownState::message, Server::ShutdownState::should_reconnect, Server::ShutdownState::tick(), Server::ShutdownState::trigger(), and UASSERT.

Referenced by runTests().

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

◆ testTrigger()

void TestServerShutdownState::testTrigger ( )

References Server::ShutdownState::is_requested, Server::ShutdownState::m_timer, Server::ShutdownState::message, Server::ShutdownState::should_reconnect, Server::ShutdownState::trigger(), 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: