MCPcopy Create free account
hub / github.com/F-Stack/f-stack / cover_trees

Function cover_trees

freebsd/contrib/zlib/test/infcover.c:617–638  ·  view source on GitHub ↗

cover remaining lines in inftrees.c */

Source from the content-addressed store, hash-verified

615
616/* cover remaining lines in inftrees.c */
617local void cover_trees(void)
618{
619 int ret;
620 unsigned bits;
621 unsigned short lens[16], work[16];
622 code *next, table[ENOUGH_DISTS];
623
624 /* we need to call inflate_table() directly in order to manifest not-
625 enough errors, since zlib insures that enough is always enough */
626 for (bits = 0; bits < 15; bits++)
627 lens[bits] = (unsigned short)(bits + 1);
628 lens[15] = 15;
629 next = table;
630 bits = 15;
631 ret = inflate_table(DISTS, lens, 16, &next, &bits, work);
632 assert(ret == 1);
633 next = table;
634 bits = 1;
635 ret = inflate_table(DISTS, lens, 16, &next, &bits, work);
636 assert(ret == 1);
637 fputs("inflate_table not enough errors\n", stderr);
638}
639
640/* cover remaining inffast.c decoding and window copying */
641local void cover_fast(void)

Callers 1

mainFunction · 0.85

Calls 1

inflate_tableFunction · 0.85

Tested by

no test coverage detected