Branch Coverage

Raw.xs
Criterion Covered Total %
branch 47 90 52.2


line true false branch
61 0 0 if (!(sv_isobject (sv) && sv_derived_from (sv, SvPV_nolen (full_type))))
0 0 if (!(sv_isobject (sv) && sv_derived_from (sv, SvPV_nolen (full_type))))
0 0 if (!(sv_isobject (sv) && sv_derived_from (sv, SvPV_nolen (full_type))))
62 0 0 croak("Argument is not of type %s @ (%s:%d)\n",
65 0 0 return INT2PTR (void *, SvIV ((SV *) SvRV (sv)));
82 35 331 if (SvIOKp (sv))
84 0 35 if (SvUOK (sv))
105 25 306 else if (SvPOKp (sv))
107 5 20 if (SvUTF8 (sv))
118 1 305 else if (SvNOKp (sv))
122 43 262 else if (SvROK (sv))
124 20 23 if (sv_isobject (sv) && sv_derived_from (sv, "MsgPack::Raw::Bool"))
10 10 if (sv_isobject (sv) && sv_derived_from (sv, "MsgPack::Raw::Bool"))
126 10 0 if (SvIV (SvRV (sv)))
5 5 if (SvIV (SvRV (sv)))
131 10 23 else if (sv_isobject (sv) && sv_derived_from (sv, "MsgPack::Raw::Ext"))
10 0 else if (sv_isobject (sv) && sv_derived_from (sv, "MsgPack::Raw::Ext"))
137 10 0 if (!type || !SvOK (*type))
0 10 if (!type || !SvOK (*type))
0 0 if (!type || !SvOK (*type))
0 0 if (!type || !SvOK (*type))
139 10 0 if (!data || !SvOK (*data))
0 10 if (!data || !SvOK (*data))
0 0 if (!data || !SvOK (*data))
0 0 if (!data || !SvOK (*data))
141 10 0 if (!SvIOK(*type) || SvIV(*type) < 0 || SvIV(*type)>255)
10 0 if (!SvIOK(*type) || SvIV(*type) < 0 || SvIV(*type)>255)
10 0 if (!SvIOK(*type) || SvIV(*type) < 0 || SvIV(*type)>255)
0 0 if (!SvIOK(*type) || SvIV(*type) < 0 || SvIV(*type)>255)
10 0 if (!SvIOK(*type) || SvIV(*type) < 0 || SvIV(*type)>255)
0 10 if (!SvIOK(*type) || SvIV(*type) < 0 || SvIV(*type)>255)
0 0 if (!SvIOK(*type) || SvIV(*type) < 0 || SvIV(*type)>255)
144 10 0 msgpack_pack_ext (&packer->packer, SvCUR (*data), SvIV (*type));
147 4 19 else if (SvTYPE (SvRV (sv)) == SVt_PVHV)
154 6 4 while ((entry = hv_iternext (hash)))
160 19 0 else if (SvTYPE (SvRV (sv)) == SVt_PVAV)
166 294 19 for (i = 0; i < size; ++i)
169 294 0 if (value && *value)
294 0 if (value && *value)
177 0 0 croak ("encountered object '%s', Data::MessagePack doesn't allow the object",
181 262 0 else if (!SvOK (sv))
262 0 else if (!SvOK (sv))
262 0 else if (!SvOK (sv))
216 4 2 while (size--)
229 4 2 while (size--)