Branch Coverage

hlist.c
Criterion Covered Total %
branch 45 68 66.1


line true false branch
20 0 93 if (!p) {
29 0 93 if (!hlist) {
38 0 13 if (!hlist) {
47 46 13 for (j = 0; j < hlist->ulen; ++j) {
57 0 192 if (!hlist) {
69 0 99 if (!hlist) {
74 165 99 for (j = 0; j < hlist->ulen; ++j) {
85 29 0 return hlist ? hlist->ulen : 0;
89 0 231 if (!hlist) {
98 0 174 if (!hlist) {
103 139 35 if (!n) {
105 65 74 if (!h) {
121 0 20 if (!hlist) {
130 0 46 if (!hlist) {
134 30 16 if (HLIST_FLAG_GET(hlist, HLIST_FLAGS_SORTED)) {
145 0 0 if (!hlist) {
150 0 0 for (j = 0; j < hlist->ulen; ++j) {
160 20 0 if (!from || !to) {
0 20 if (!from || !to) {
163 0 20 if (pos >= hlist_size(from)) {
175 20 20 if (clear) {
180 94 40 for (j = pos; j < hlist->ulen; ++j) {
186 0 205 if (!hlist) {
189 100 105 if (hlist->ulen < hlist->alen) {
193 12 93 int count = hlist->alen == 0 ? HLIST_INITIAL_SIZE : 2*hlist->alen;
206 25 83 return delta ? delta : header_compare(h1->name, h2->name);
213 0 425 if (!hlist) {
219 729 266 for (j = 0; j < hlist->ulen; ++j) {
221 159 570 if (header_matches_type_or_name(n->header, type, name)) {
225 266 159 if (j >= hlist->ulen) {
230 0 425 if (add) {
231 0 0 if (n) {
243 20 405 if (del) {
244 0 20 if (!n) {