Lines Matching refs:inflate
1 /* infcover.c -- test zlib's inflate routines with full code coverage
18 #include "inflate.h"
236 /* -- inflate test routines -- */
275 /* generic inflate() run, where hex is the hexadecimal input data, what is the
277 inflate() on each call, or zero to feed it all, win is the window bits
279 is the error code expected from the first inflate() call (the second
280 inflate() call is expected to return Z_STREAM_END). If win is 47, then
283 inflate() is run until all of the input data is consumed. */
320 ret = inflate(&strm, Z_NO_FLUSH); assert(err == 9 || ret == err);
333 ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_BUF_ERROR);
349 /* cover all of the lines in inflate.c up to inflate() */
359 mem_used(&strm, "inflate init");
384 fputs("inflate built-in memory routines\n", stderr);
387 /* cover all inflate() header and trailer cases and code after inflate() */
394 ret = inflate(Z_NULL, 0); assert(ret == Z_STREAM_ERROR);
397 fputs("inflate bad parameters\n", stderr);
422 ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_MEM_ERROR);
423 ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_MEM_ERROR);
433 ret = inflate(&strm, Z_NO_FLUSH); assert(ret == Z_STREAM_ERROR);
506 /* do a raw inflate of data in hexadecimal with both inflate and inflateBack */
528 /* first with inflate */
541 ret = inflate(&strm, Z_TREES);
580 /* cover deflate data cases in both inflate() and inflateBack() */
599 /* also trailer mismatch just in inflate() */