Branch Coverage

src/xs/Glob.cc
Criterion Covered Total %
branch 16 26 61.5


line true false branch
16 1 0 Stash Glob::effective_stash () const { return GvESTASH((GV*)sv); }
21 50 19 SvREFCNT_inc_simple_void(what);
22 69 0 SvREFCNT_dec(old);
28 13 4 SvREFCNT_inc_simple_void(what);
29 17 0 SvREFCNT_dec(old);
34 21 3 if (!val || SvTYPE(val) <= SVt_PVMG) _set_slot(&GvSV(gv), val);
8 13 if (!val || SvTYPE(val) <= SVt_PVMG) _set_slot(&GvSV(gv), val);
11 0 if (!val || SvTYPE(val) <= SVt_PVMG) _set_slot(&GvSV(gv), val);
36 3 0 case SVt_PVCV: _set_slot(gv, (CV*)val); break;
37 3 0 case SVt_PVHV: _set_slot((SV**)&GvHV(gv), val); break;
38 6 0 case SVt_PVAV: _set_slot((SV**)&GvAV(gv), val); break;
39 1 0 case SVt_PVIO: _set_slot((SV**)&GvIOp(gv), val); break;
40 0 0 default: throw std::invalid_argument("can set unsupported type to a typeglob");