Branch Coverage

LibPkgConf.xs
Criterion Covered Total %
branch 68 94 72.3


line true false branch
28 0 2 PUSHMARK(SP);
29 0 2 EXTEND(SP, 1);
37 2 0 value = count > 0 && POPi;
2 0 value = count > 0 && POPi;
2 0 value = count > 0 && POPi;
40 2 0 FREETMPS;
58 0 3 PUSHMARK(SP);
59 0 3 EXTEND(SP,1);
67 3 0 value = count > 0 && POPi;
3 0 value = count > 0 && POPi;
0 3 value = count > 0 && POPi;
70 3 0 FREETMPS;
79 2 100 if(pkgconf_fragment_has_system_dir(client, frag))
110 0 1 if(self->auditf != NULL)
116 1 0 if(self->auditf != NULL)
130 1 2 if(items > 1)
132 1 0 pkgconf_client_set_sysroot_dir(&self->client, SvPV_nolen(ST(1)));
143 1 2 if(items > 1)
145 1 0 pkgconf_client_set_buildroot_dir(&self->client, SvPV_nolen(ST(1)));
156 1 3 if(items > 1)
158 1 0 self->maxdepth = SvIV(ST(1));
173 13 6 PKGCONF_FOREACH_LIST_ENTRY(self->client.dir_list.head, n)
189 7 3 PKGCONF_FOREACH_LIST_ENTRY(self->client.filter_libdirs.head, n)
205 6 3 PKGCONF_FOREACH_LIST_ENTRY(self->client.filter_includedirs.head, n)
217 1 40 if(self->auditf != NULL)
245 1 0 if(fp != NULL)
268 11 30 if(env_only)
274 11 30 if(env_only)
296 1 6 if(val == NULL)
395 10 17 if(type % 2)
401 15 12 eflag = type > 1
408 0 27 if(eflag != PKGCONF_PKG_ERRF_OK)
412 27 0 RETVAL = newSV(len == 1 ? len : len-1);
439 4 8 if(type % 2)
445 7 5 eflag = type > 1
452 0 12 if(eflag != PKGCONF_PKG_ERRF_OK)
455 34 12 PKGCONF_FOREACH_LIST_ENTRY(filtered_list.head, node)
459 34 0 if(frag->type)
463 34 0 if(frag->data)
482 18 2 PKGCONF_FOREACH_LIST_ENTRY(self->vars.head, node)
485 2 16 if(!strcmp(tup->key, key))
504 1 0 if(ret == 0)
506 3 1 for(i=0; i
508 0 3 XPUSHs(sv_2mortal(newSVpv(argv[i],0)));
526 1 2 if(ret < 0)
528 1 1 else if(ret > 0)
565 17 0 RETVAL = newSVpv(ok ? out : in, 0);