Public Member Functions | |
TestFileSys () | |
const char * | getName () |
void | runTests (IGameDef *gamedef) |
void | testIsDirDelimiter () |
void | testPathStartsWith () |
void | testRemoveLastPathComponent () |
void | testRemoveLastPathComponentWithTrailingDelimiter () |
void | testRemoveRelativePathComponent () |
void | testSafeWriteToFile () |
void | testCopyFileContents () |
Public Member Functions inherited from TestBase | |
bool | testModule (IGameDef *gamedef) |
std::string | getTestTempDirectory () |
std::string | getTestTempFile () |
virtual void | runTests (IGameDef *gamedef)=0 |
virtual const char * | getName ()=0 |
void | runTest (const char *name, std::function< void()> &&test) |
Additional Inherited Members | |
Public Attributes inherited from TestBase | |
u32 | num_tests_failed |
u32 | num_tests_run |
|
inline |
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References TEST, testCopyFileContents(), testIsDirDelimiter(), testPathStartsWith(), testRemoveLastPathComponent(), testRemoveLastPathComponentWithTrailingDelimiter(), testRemoveRelativePathComponent(), and testSafeWriteToFile().
void TestFileSys::testCopyFileContents | ( | ) |
References fs::CopyFileContents(), DIR_DELIM, TestBase::getTestTempDirectory(), fs::ReadFile(), UASSERT, and UASSERTEQ.
Referenced by runTests().
void TestFileSys::testIsDirDelimiter | ( | ) |
References fs::IsDirDelimiter(), and UASSERT.
Referenced by runTests().
void TestFileSys::testPathStartsWith | ( | ) |
References FILESYS_CASE_INSENSITIVE, p(), fs::PathStartsWith(), and UASSERT.
Referenced by runTests().
void TestFileSys::testRemoveLastPathComponent | ( | ) |
References p(), fs::RemoveLastPathComponent(), and UASSERT.
Referenced by runTests().
void TestFileSys::testRemoveLastPathComponentWithTrailingDelimiter | ( | ) |
References p(), fs::RemoveLastPathComponent(), and UASSERT.
Referenced by runTests().
void TestFileSys::testRemoveRelativePathComponent | ( | ) |
References p(), fs::RemoveRelativePathComponents(), and UASSERT.
Referenced by runTests().
void TestFileSys::testSafeWriteToFile | ( | ) |
References TestBase::getTestTempFile(), fs::PathExists(), fs::ReadFile(), fs::safeWriteToFile(), UASSERT, and UASSERTEQ.
Referenced by runTests().