Luanti 5.15.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)
 

Static Public Member Functions

static ServerModManager makeManager (const std::string &worldpath)
 

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.

◆ makeManager()

static ServerModManager TestServerModManager::makeManager ( const std::string & worldpath)
inlinestatic

References findWorldSubgame().

Referenced by testCreation(), testGetModMediaPaths(), testGetModMediaPathsWrongDir(), testGetModNames(), testGetModNamesWrongDir(), testGetMods(), testGetModspec(), testGetModsWrongDir(), testIsConsistent(), and testUnsatisfiedMods().

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

◆ runTests()

void TestServerModManager::runTests ( IGameDef * gamedef)
virtual

◆ testCreation()

void TestServerModManager::testCreation ( )

References DIR_DELIM, m_worlddir, makeManager(), 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, m_worlddir, makeManager(), 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, m_worlddir, makeManager(), 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 m_worlddir, makeManager(), 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, m_worlddir, makeManager(), 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 m_worlddir, makeManager(), 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 m_worlddir, makeManager(), 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, m_worlddir, makeManager(), 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 m_worlddir, makeManager(), 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 m_worlddir, makeManager(), 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: