line |
true |
false |
branch |
53
|
0 |
0 |
Simple (SV* sv, bool policy = INCREMENT) : Scalar(sv, policy) { _validate(); } |
57
|
23 |
0 |
Simple (const Scalar& oth) : Scalar(oth) { _validate(); } |
74
|
0 |
0 |
Simple (const panda::string_view& s) { sv = newSVpvn(s.data(), s.length()); } |
157
|
0 |
53 |
if (!sv) return T(); |
159
|
53 |
0 |
const char* buf = SvPV_nomg(sv, len); |
|
0 |
0 |
const char* buf = SvPV_nomg(sv, len); |
193
|
0 |
23 |
if (!sv) return; |
194
|
23 |
0 |
if (SvTYPE(sv) > SVt_PVMG || SvROK(sv)) { |
|
0 |
23 |
if (SvTYPE(sv) > SVt_PVMG || SvROK(sv)) { |
196
|
0 |
0 |
throw std::invalid_argument("SV is not a number or string"); |