cover all of the lines in inflate.c up to inflate() */
| 348 | |
| 349 | /* cover all of the lines in inflate.c up to inflate() */ |
| 350 | local void cover_support(void) |
| 351 | { |
| 352 | int ret; |
| 353 | z_stream strm; |
| 354 | |
| 355 | mem_setup(&strm); |
| 356 | strm.avail_in = 0; |
| 357 | strm.next_in = Z_NULL; |
| 358 | ret = inflateInit(&strm); assert(ret == Z_OK); |
| 359 | mem_used(&strm, "inflate init"); |
| 360 | ret = inflatePrime(&strm, 5, 31); assert(ret == Z_OK); |
| 361 | ret = inflatePrime(&strm, -1, 0); assert(ret == Z_OK); |
| 362 | ret = inflateSetDictionary(&strm, Z_NULL, 0); |
| 363 | assert(ret == Z_STREAM_ERROR); |
| 364 | ret = inflateEnd(&strm); assert(ret == Z_OK); |
| 365 | mem_done(&strm, "prime"); |
| 366 | |
| 367 | inf("63 0", "force window allocation", 0, -15, 1, Z_OK); |
| 368 | inf("63 18 5", "force window replacement", 0, -8, 259, Z_OK); |
| 369 | inf("63 18 68 30 d0 0 0", "force split window update", 4, -8, 259, Z_OK); |
| 370 | inf("3 0", "use fixed blocks", 0, -15, 1, Z_STREAM_END); |
| 371 | inf("", "bad window size", 0, 1, 0, Z_STREAM_ERROR); |
| 372 | |
| 373 | mem_setup(&strm); |
| 374 | strm.avail_in = 0; |
| 375 | strm.next_in = Z_NULL; |
| 376 | ret = inflateInit_(&strm, ZLIB_VERSION - 1, (int)sizeof(z_stream)); |
| 377 | assert(ret == Z_VERSION_ERROR); |
| 378 | mem_done(&strm, "wrong version"); |
| 379 | |
| 380 | strm.avail_in = 0; |
| 381 | strm.next_in = Z_NULL; |
| 382 | ret = inflateInit(&strm); assert(ret == Z_OK); |
| 383 | ret = inflateEnd(&strm); assert(ret == Z_OK); |
| 384 | fputs("inflate built-in memory routines\n", stderr); |
| 385 | } |
| 386 | |
| 387 | /* cover all inflate() header and trailer cases and code after inflate() */ |
| 388 | local void cover_wrap(void) |
no test coverage detected