Branch Coverage

src/xs/Io.cc
Criterion Covered Total %
branch 19 24 79.1


line true false branch
6 0 125 if (!sv) return;
7 11 114 if (SvTYPE(sv) == SVt_PVIO) return;
8 10 104 if (SvTYPE(sv) == SVt_PVGV && GvIOp(sv)) {
9 1 if (SvTYPE(sv) == SVt_PVGV && GvIOp(sv)) {
13 60 45 if (SvROK(sv)) {
15 47 13 if (SvTYPE(val) == SVt_PVIO) {
16 47 0 Sv::operator=(val);
19 8 5 if (SvTYPE(val) == SVt_PVGV && GvIOp(val)) {
8 0 if (SvTYPE(val) == SVt_PVGV && GvIOp(val)) {
20 8 0 Sv::operator=(GvIOp(val));
25 4 46 if (is_undef()) return reset();
27 46 0 throw std::invalid_argument("SV is neither IO or IO reference, nor Glob or Glob reference with IO slot set");