Branch Coverage

ptable.h
Criterion Covered Total %
branch 32 60 53.3


line true false branch
100 0 189954 Newxz(tbl->tbl_ary, tbl->tbl_max + 1, PTABLE_ENTRY_t*);
116 340977 276287 for (; tblent; tblent = tblent->next) {
117 340977 0 if (tblent->key == key)
127 340974 1 return tblent ? tblent->value : NULL;
140 0 0 Renew(ary, newsize, PTABLE_ENTRY_t*);
141 0 0 Zero(&ary[oldsize], newsize - oldsize, PTABLE_ENTRY_t*);
145 0 0 for (i = 0; i < oldsize; i++, ary++) {
147 0 0 if (!*ary)
150 0 0 for (entp = ary, ent = *ary; ent; ent = *entp) {
151 0 0 if ((newsize & PTABLE_HASH(ent->key)) != i) {
170 3 276286 if (tblent) {
181 0 276286 if (tblent->next && (tbl->tbl_items > tbl->tbl_max))
0 0 if (tblent->next && (tbl->tbl_items > tbl->tbl_max))
194 2774093 0 if (tbl && tbl->tbl_items) {
272987 2501106 if (tbl && tbl->tbl_items) {
201 276286 139769344 while (entry) {
213 139496357 272987 } while (riter--);
308 24841 0 if (flags & PTABLE_FLAG_AUTOCLEAN)
310 0 24841 if (tbl->tbl_items == 0) {
316 0 24841 PTABLE_ITER_NEXT_ELEM(iter, tbl);
0 0 PTABLE_ITER_NEXT_ELEM(iter, tbl);
0 6976810 PTABLE_ITER_NEXT_ELEM(iter, tbl);
6951969 24841 PTABLE_ITER_NEXT_ELEM(iter, tbl);
334 25477 24841 PTABLE_ITER_NEXT_ELEM(iter, tbl);
0 25477 PTABLE_ITER_NEXT_ELEM(iter, tbl);
49682 5741782 PTABLE_ITER_NEXT_ELEM(iter, tbl);
5741146 636 PTABLE_ITER_NEXT_ELEM(iter, tbl);
344 24841 0 if (iter->table->cur_iter == iter)
366 0 189954 if (!tbl)
370 0 189954 if (tbl->cur_iter) {