Branch Coverage

/usr/local/lib/perl5/site_perl/5.26.1/x86_64-linux/XS/Framework.x/i/xs/Ref.h
Criterion Covered Total %
branch 2 16 12.5


line true false branch
10 0 0 Ref (SV* sv, bool policy = INCREMENT) : Scalar(sv, policy) { _validate(); }
28 5 0 if (sv) rv = (policy == INCREMENT) ? newRV(sv) : newRV_noinc(sv);
5 0 if (sv) rv = (policy == INCREMENT) ? newRV(sv) : newRV_noinc(sv);
85 0 0 template enable_if_sv_t value () const { return T(sv ? SvRV(sv) : nullptr); }
106 0 0 if (!sv) return;
107 0 0 if (SvROK(sv)) return;
108 0 0 if (is_undef()) return reset();
110 0 0 throw std::invalid_argument("SV is not a reference");