Public Member Functions | |
TestCompression () | |
const char * | getName () |
void | runTests (IGameDef *gamedef) |
void | testRLECompression () |
void | testZlibCompression () |
void | testZlibLargeData () |
void | testZstdLargeData () |
void | testZlibLimit () |
void | _testZlibLimit (u32 size, u32 limit) |
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) |
Additional Inherited Members | |
Public Attributes inherited from TestBase | |
u32 | num_tests_failed |
u32 | num_tests_run |
|
inline |
void TestCompression::_testZlibLimit | ( | u32 | size, |
u32 | limit ) |
References compressZlib(), decompressZlib(), infostream, UASSERTEQ, and UTEST.
Referenced by testZlibLimit().
|
inlinevirtual |
Implements TestBase.
|
virtual |
Implements TestBase.
References TEST, testRLECompression(), testZlibCompression(), testZlibLargeData(), testZlibLimit(), and testZstdLargeData().
void TestCompression::testRLECompression | ( | ) |
References compress(), decompress(), Buffer< T >::getSize(), infostream, UASSERT, and UASSERTEQ.
Referenced by runTests().
void TestCompression::testZlibCompression | ( | ) |
References compressZlib(), decompressZlib(), Buffer< T >::getSize(), infostream, UASSERT, and UASSERTEQ.
Referenced by runTests().
void TestCompression::testZlibLargeData | ( | ) |
References compressZlib(), decompressZlib(), infostream, PseudoRandom::range(), UASSERTEQ, and UTEST.
Referenced by runTests().
void TestCompression::testZlibLimit | ( | ) |
References _testZlibLimit().
Referenced by runTests().
void TestCompression::testZstdLargeData | ( | ) |
References compressZstd(), decompressZstd(), infostream, PseudoRandom::range(), UASSERTEQ, and UTEST.
Referenced by runTests().