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

Public Member Functions

 TestServerModManager ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testCreation ()
 
void testIsConsistent ()
 
void testUnsatisfiedMods ()
 
void testGetMods ()
 
void testGetModsWrongDir ()
 
void testGetModspec ()
 
void testGetModNamesWrongDir ()
 
void testGetModNames ()
 
void testGetModMediaPathsWrongDir ()
 
void testGetModMediaPaths ()
 
- 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

◆ TestServerModManager()

TestServerModManager::TestServerModManager ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char* TestServerModManager::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestServerModManager::runTests ( IGameDef gamedef)
virtual

Implements TestBase.

References TEST, TEST_SUBGAME_PATH, testCreation(), testGetModMediaPaths(), testGetModMediaPathsWrongDir(), testGetModNames(), testGetModNamesWrongDir(), testGetMods(), testGetModspec(), testGetModsWrongDir(), testIsConsistent(), and testUnsatisfiedMods().

+ Here is the call graph for this function:

◆ testCreation()

void TestServerModManager::testCreation ( )

References DIR_DELIM, Settings::set(), TEST_WORLDDIR, UASSERTEQ, and Settings::updateConfigFile().

Referenced by runTests().

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

◆ testGetModMediaPaths()

void TestServerModManager::testGetModMediaPaths ( )

References ServerModManager::getModsMediaPaths(), TEST_WORLDDIR, and UASSERTEQ.

Referenced by runTests().

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

◆ testGetModMediaPathsWrongDir()

void TestServerModManager::testGetModMediaPathsWrongDir ( )

References DIR_DELIM, ServerModManager::getModsMediaPaths(), TEST_WORLDDIR, and UASSERTEQ.

Referenced by runTests().

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

◆ testGetModNames()

void TestServerModManager::testGetModNames ( )

References ServerModManager::getModNames(), TEST_WORLDDIR, UASSERT, and UASSERTEQ.

Referenced by runTests().

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

◆ testGetModNamesWrongDir()

void TestServerModManager::testGetModNamesWrongDir ( )

References DIR_DELIM, ServerModManager::getModNames(), TEST_WORLDDIR, and UASSERTEQ.

Referenced by runTests().

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

◆ testGetMods()

void TestServerModManager::testGetMods ( )

References ModConfiguration::getMods(), TEST_WORLDDIR, and UASSERTEQ.

Referenced by runTests().

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

◆ testGetModspec()

void TestServerModManager::testGetModspec ( )

References ServerModManager::getModSpec(), TEST_WORLDDIR, UASSERT, and UASSERTEQ.

Referenced by runTests().

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

◆ testGetModsWrongDir()

void TestServerModManager::testGetModsWrongDir ( )

References DIR_DELIM, ModConfiguration::getMods(), TEST_WORLDDIR, and UASSERTEQ.

Referenced by runTests().

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

◆ testIsConsistent()

void TestServerModManager::testIsConsistent ( )

References ModConfiguration::isConsistent(), TEST_WORLDDIR, and UASSERTEQ.

Referenced by runTests().

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

◆ testUnsatisfiedMods()

void TestServerModManager::testUnsatisfiedMods ( )

References ModConfiguration::getUnsatisfiedMods(), TEST_WORLDDIR, and UASSERTEQ.

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: