diff -r 000000000000 -r e4d67989cc36 compressionlibs/ziplib/engineering/PREQ1583 ZLib Use Cases v0.5.mm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/compressionlibs/ziplib/engineering/PREQ1583 ZLib Use Cases v0.5.mm Tue Feb 02 02:01:42 2010 +0200 @@ -0,0 +1,732 @@ + + + + + + + + + + + + + + + + + + + + + + + + +Took 40 minutes to expand this tree and come up with test cases + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +deflateTune + + + + + +Write a test to check that the values are actually set correctly. + + + + + + + + + + + + + +Try this with a compression level of < 4 and >= 4 as a result of this parameter being used only when compression level is >= 4 + + + + + + + +Try this with a compression level of < 4 and >= 4 as a result of this parameter being used only when compression level is >= 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +values set in configuration_table + + + + + + +deflateSetHeader Do we need a test for using a CRC/invalid CRC? + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +if windowBits is set to -8..-15 in deflateInit2 ouput will be in raw format + + + + + + + + + + + + + + + + + + + + + + + + +deflatePrime this function can only be used for raw deflate, and must be used before the first deflate() call after a deflateInit2() or deflateReset(). + + + + + + + + + + + + + + + +Check that bi_buf is set correctly. + + + + + + + + + + + +The documentation states that bits should be <= 16. However, bits is not ranged checked. As a result we will not provide a test to check if bits is > 17. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +inflateGetHeader inflateGetHeader() may be called after inflateInit2() or inflateReset(), and before the first call of inflate(). + + + + + + + + + + + + + + +head is not checked to see if it is NULL. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +inflatePrime This function should only be used with raw inflate, and should be used before the first inflate() call after inflateInit2() or inflateReset(). + + + + + + + + + + + + + + + +Check that bi_buf is set correctly. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +inflateCopy + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +No check to see if in and out functions are provided. + + + + + + + + + +Write an input function that will not provide input when requested. + + + + +Write an out function that cannot make space when window is full. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +20 mins to expand tree to find test cases + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +adler32_combine This can be tested by generating adler1 and adler2 for two sequence of text and then using adler32_combine to generate a checksum for the concatentation of the two sequences. This can then be compared against adler3 which is the generated checksum after concatenating the two sequences. + + + + + + + + + + + + + +crc32_combine This can be tested by generating crc1 and crc2 for two sequence of text and then using crc32_combine to generate a checksum for the concatentation of the two sequences. This can then be compared against crc3 which is the generated checksum after concatenating the two sequences. + + + + + + + + + +zlibCompileFlags Check some of the bits to see if they match the compile time flags + + + + + + + +