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

Public Member Functions

 TestFilePath ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testIsDirDelimiter ()
 
void testPathStartsWith ()
 
void testRemoveLastPathComponent ()
 
void testRemoveLastPathComponentWithTrailingDelimiter ()
 
void testRemoveRelativePathComponent ()
 
- 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

◆ TestFilePath()

TestFilePath::TestFilePath ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ getName()

const char* TestFilePath::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestFilePath::runTests ( IGameDef gamedef)
virtual

Implements TestBase.

References TEST, testIsDirDelimiter(), testPathStartsWith(), testRemoveLastPathComponent(), testRemoveLastPathComponentWithTrailingDelimiter(), and testRemoveRelativePathComponent().

+ Here is the call graph for this function:

◆ testIsDirDelimiter()

void TestFilePath::testIsDirDelimiter ( )

References fs::IsDirDelimiter(), and UASSERT.

Referenced by runTests().

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

◆ testPathStartsWith()

void TestFilePath::testPathStartsWith ( )

References FILESYS_CASE_INSENSITIVE, p(), fs::PathStartsWith(), and UASSERT.

Referenced by runTests().

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

◆ testRemoveLastPathComponent()

void TestFilePath::testRemoveLastPathComponent ( )

References p(), fs::RemoveLastPathComponent(), and UASSERT.

Referenced by runTests().

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

◆ testRemoveLastPathComponentWithTrailingDelimiter()

void TestFilePath::testRemoveLastPathComponentWithTrailingDelimiter ( )

References p(), fs::RemoveLastPathComponent(), and UASSERT.

Referenced by runTests().

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

◆ testRemoveRelativePathComponent()

void TestFilePath::testRemoveRelativePathComponent ( )

References p(), fs::RemoveRelativePathComponents(), 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: