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

Public Member Functions

 TestCompression ()
 
const char * getName ()
 
void runTests (IGameDef *gamedef)
 
void testRLECompression ()
 
void testZlibCompression ()
 
void testZlibLargeData ()
 
void testZlibLimit ()
 
void _testZlibLimit (u32 size, u32 limit)
 
- 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

◆ TestCompression()

TestCompression::TestCompression ( )
inline

References TestManager::registerTestModule().

+ Here is the call graph for this function:

Member Function Documentation

◆ _testZlibLimit()

void TestCompression::_testZlibLimit ( u32  size,
u32  limit 
)

References compressZlib(), decompressZlib(), infostream, UASSERTEQ, and UTEST.

Referenced by testZlibLimit().

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

◆ getName()

const char* TestCompression::getName ( )
inlinevirtual

Implements TestBase.

◆ runTests()

void TestCompression::runTests ( IGameDef gamedef)
virtual

Implements TestBase.

References TEST, testRLECompression(), testZlibCompression(), testZlibLargeData(), and testZlibLimit().

+ Here is the call graph for this function:

◆ testRLECompression()

void TestCompression::testRLECompression ( )

References compress(), decompress(), SharedBuffer< T >::getSize(), infostream, UASSERT, and UASSERTEQ.

Referenced by runTests().

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

◆ testZlibCompression()

void TestCompression::testZlibCompression ( )

References compress(), decompress(), SharedBuffer< T >::getSize(), infostream, SER_FMT_VER_HIGHEST_READ, UASSERT, and UASSERTEQ.

Referenced by runTests().

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

◆ testZlibLargeData()

void TestCompression::testZlibLargeData ( )

References compressZlib(), decompressZlib(), infostream, PseudoRandom::range(), UASSERTEQ, and UTEST.

Referenced by runTests().

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

◆ testZlibLimit()

void TestCompression::testZlibLimit ( )

References _testZlibLimit().

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: