Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
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 ()
 
void runTest (const char *name, std::function< void()> &&test)
 

Public Attributes

std::string m_worlddir
 
- 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

◆ testCreation()

void TestServerModManager::testCreation ( )

References DIR_DELIM, m_worlddir, Settings::set(), SUBGAME_ID, 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 DIR_DELIM, ServerModManager::getModsMediaPaths(), ServerModManager::getModSpec(), m_worlddir, ModSpec::path, UASSERT, 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(), m_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(), m_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(), m_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 ServerModManager::getMods(), m_worlddir, UASSERT, 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(), m_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, ServerModManager::getMods(), m_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 ServerModManager::isConsistent(), m_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 ServerModManager::getUnsatisfiedMods(), m_worlddir, 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_worlddir


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