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 1 12 8.3


line true false branch
10 0 0 Ref (SV* sv, bool policy = INCREMENT) : Scalar(sv, policy) { _validate(); }
85 52 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");