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

Public Member Functions

 TestSAO ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testStaticSave (ServerEnvironment *env)
 
void testNotSaved (ServerEnvironment *env)
 
void testActivate (ServerEnvironment *env)
 
void testStaticToFalse (ServerEnvironment *env)
 
void testStaticToTrue (ServerEnvironment *env)
 
- 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)
 

Private Attributes

float m_step_interval
 

Additional Inherited Members

- Public Attributes inherited from TestBase
u32 num_tests_failed
 
u32 num_tests_run
 

Constructor & Destructor Documentation

◆ TestSAO()

TestSAO::TestSAO ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char * TestSAO::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestSAO::runTests ( IGameDef * gamedef)
virtual

◆ testActivate()

void TestSAO::testActivate ( ServerEnvironment * env)

References ServerEnvironment::activateBlock(), assert_active_in_block(), BS, Map::emergeBlock(), floatToInt(), ServerEnvironment::getActiveObject(), ServerEnvironment::getMap(), getNodeBlockPos(), m_step_interval, ServerEnvironment::step(), UASSERT, and UASSERTEQ.

Referenced by runTests().

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

◆ testNotSaved()

void TestSAO::testNotSaved ( ServerEnvironment * env)

References add_entity(), BS, Map::emergeBlock(), floatToInt(), ServerEnvironment::getActiveObject(), ServerEnvironment::getMap(), getNodeBlockPos(), m_step_interval, ServerEnvironment::step(), Map::timerUpdate(), UASSERT, and UASSERTEQ.

Referenced by runTests().

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

◆ testStaticSave()

void TestSAO::testStaticSave ( ServerEnvironment * env)

References add_entity(), assert_active_in_block(), BS, floatToInt(), ServerEnvironment::getActiveObject(), Map::getBlockNoCreateNoEx(), ServerEnvironment::getMap(), getNodeBlockPos(), m_step_interval, ServerEnvironment::step(), UASSERT, and UASSERTEQ.

Referenced by runTests().

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

◆ testStaticToFalse()

void TestSAO::testStaticToFalse ( ServerEnvironment * env)

References ServerEnvironment::activateBlock(), assert_active_in_block(), BS, Map::emergeBlock(), floatToInt(), ServerEnvironment::getActiveObject(), ServerEnvironment::getMap(), getNodeBlockPos(), m_step_interval, ServerEnvironment::step(), Map::timerUpdate(), UASSERT, and UASSERTEQ.

Referenced by runTests().

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

◆ testStaticToTrue()

void TestSAO::testStaticToTrue ( ServerEnvironment * env)

References add_entity(), BS, floatToInt(), ServerEnvironment::getActiveObject(), Map::getBlockNoCreateNoEx(), ServerEnvironment::getMap(), getNodeBlockPos(), m_step_interval, ServerEnvironment::step(), UASSERT, and UASSERTEQ.

Referenced by runTests().

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

Member Data Documentation

◆ m_step_interval

float TestSAO::m_step_interval
private

The documentation for this class was generated from the following file: