Branch Coverage

ptable.h
Criterion Covered Total %
branch 18 36 50.0


line true false branch
71 0 22 Newxz(tbl->tbl_ary, tbl->tbl_max + 1, PTABLE_ENTRY_t*);
82 665 516 for (; tblent; tblent = tblent->next) {
83 498 167 if (tblent->key == key)
93 498 0 return tblent ? tblent->value : NULL;
103 0 516 if (tblent) {
114 74 442 if (tblent->next && (tbl->tbl_items > tbl->tbl_max))
0 74 if (tblent->next && (tbl->tbl_items > tbl->tbl_max))
129 0 0 Renew(ary, newsize, PTABLE_ENTRY_t*);
130 0 0 Zero(&ary[oldsize], newsize - oldsize, PTABLE_ENTRY_t*);
134 0 0 for (i = 0; i < oldsize; i++, ary++) {
136 0 0 if (!*ary)
139 0 0 for (entp = ary, ent = *ary; ent; ent = *entp) {
140 0 0 if ((newsize & PTABLE_HASH(ent->key)) != i) {
157 22 0 if (tbl && tbl->tbl_items) {
16 6 if (tbl && tbl->tbl_items) {
164 516 8192 while (entry) {
176 8176 16 } while (riter--);
187 0 22 if (!tbl) {