Branch Coverage

lib/Net/Prometheus/PerlCollector.xs
Criterion Covered Total %
branch 35 46 76.0


line true false branch
64 2 3 if(detail)
66 1 4 if(detail > 1)
69 1661 5 for(arena = PL_sv_arenaroot; arena; arena = (SV *)SvANY(arena)) {
75 280709 1661 for(sv = arena + 1; sv < arenaend; sv++)
76 280115 594 if(SvTYPE(sv) != 0xFF && SvREFCNT(sv)) {
280115 0 if(SvTYPE(sv) != 0xFF && SvREFCNT(sv)) {
79 112106 168009 if(svs_by_type) {
82 112088 18 sv_setiv(*countp, SvIOK(*countp) ? SvIV(*countp) + 1 : 1);
112088 0 sv_setiv(*countp, SvIOK(*countp) ? SvIV(*countp) + 1 : 1);
84 56083 56023 if(svs_by_class && SvOBJECT(sv)) {
274 55809 if(svs_by_class && SvOBJECT(sv)) {
85 274 0 char *class = HvNAME(SvSTASH(sv));
274 0 char *class = HvNAME(SvSTASH(sv));
0 274 char *class = HvNAME(SvSTASH(sv));
0 0 char *class = HvNAME(SvSTASH(sv));
274 0 char *class = HvNAME(SvSTASH(sv));
0 274 char *class = HvNAME(SvSTASH(sv));
87 251 23 sv_setiv(*countp, SvIOK(*countp) ? SvIV(*countp) + 1 : 1);
251 0 sv_setiv(*countp, SvIOK(*countp) ? SvIV(*countp) + 1 : 1);
93 0 5 EXTEND(SP, 4);
96 2 3 if(svs_by_type)
98 1 4 if(svs_by_class)
100 3 2 XSRETURN(2 + !!svs_by_type + !!svs_by_class);