Branch Coverage

NetIpXs.xs
Criterion Covered Total %
branch 195 270 72.2


line true false branch
66 0 88 if (!sv_isa(self, "Net::IP::XS::N128")) {
69 88 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
85 0 7 if (!sv_isa(self, "Net::IP::XS::N128")) {
88 7 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
104 0 39 if (!sv_isa(self, "Net::IP::XS::N128")) {
107 39 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
123 0 49 if (!sv_isa(self, "Net::IP::XS::N128")) {
126 49 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
141 28 0 if (!sv_isa(self, "Net::IP::XS::N128")
142 0 28 || !sv_isa(other, "Net::IP::XS::N128")) {
145 28 0 Copy(SvPV(SvRV(self), len), &num1, 1, n128_t);
146 28 0 Copy(SvPV(SvRV(other), len), &num2, 1, n128_t);
160 0 16 if (!sv_isa(self, "Net::IP::XS::N128")) {
163 16 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
179 0 8 if (!sv_isa(self, "Net::IP::XS::N128")) {
182 8 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
199 2 0 if (!sv_isa(self, "Net::IP::XS::N128")
200 0 2 || !sv_isa(other, "Net::IP::XS::N128")) {
203 2 0 Copy(SvPV(SvRV(self), len), &num1, 1, n128_t);
204 2 0 Copy(SvPV(SvRV(other), len), &num2, 1, n128_t);
221 3 0 if (!sv_isa(self, "Net::IP::XS::N128")
222 0 3 || !sv_isa(other, "Net::IP::XS::N128")) {
225 3 0 Copy(SvPV(SvRV(self), len), &num1, 1, n128_t);
226 3 0 Copy(SvPV(SvRV(other), len), &num2, 1, n128_t);
243 3 0 if (!sv_isa(self, "Net::IP::XS::N128")
244 0 3 || !sv_isa(other, "Net::IP::XS::N128")) {
247 3 0 Copy(SvPV(SvRV(self), len), &num1, 1, n128_t);
248 3 0 Copy(SvPV(SvRV(other), len), &num2, 1, n128_t);
265 13 0 if (!sv_isa(self, "Net::IP::XS::N128")
266 0 13 || !sv_isa(other, "Net::IP::XS::N128")) {
269 13 0 Copy(SvPV(SvRV(self), len), &num1, 1, n128_t);
270 13 0 Copy(SvPV(SvRV(other), len), &num2, 1, n128_t);
287 9 0 if (!sv_isa(self, "Net::IP::XS::N128")
288 0 9 || !sv_isa(other, "Net::IP::XS::N128")) {
291 9 0 Copy(SvPV(SvRV(self), len), &num1, 1, n128_t);
292 9 0 Copy(SvPV(SvRV(other), len), &num2, 1, n128_t);
308 0 6 if (!sv_isa(self, "Net::IP::XS::N128")) {
311 6 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
326 0 4 if (!sv_isa(self, "Net::IP::XS::N128")) {
329 4 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
345 0 513 if (!sv_isa(self, "Net::IP::XS::N128")) {
348 513 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
362 0 146 if (!sv_isa(self, "Net::IP::XS::N128")) {
365 146 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
381 0 129 if (!sv_isa(self, "Net::IP::XS::N128")) {
384 129 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
400 0 12 if (!sv_isa(self, "Net::IP::XS::N128")) {
403 12 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
418 0 0 if (!sv_isa(self, "Net::IP::XS::N128")) {
421 0 0 Copy(SvPV(SvRV(self), len), &num, 1, n128_t);
488 9 4 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
501 14 1 RETVAL = (res) ? newSViv(result) : &PL_sv_undef;
514 4 9 if (res) {
515 0 4 XPUSHs(sv_2mortal(newSVpv(buf, 0)));
516 0 4 XPUSHs(sv_2mortal(newSViv(len)));
527 4 5 RETVAL = (res) ? newSViv(1) : &PL_sv_undef;
541 41 13 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
555 22 3 RETVAL = (res) ? newSViv(result) : &PL_sv_undef;
568 9 1 RETVAL = (res) ? newSVpv(buf, NI_iplengths(ipversion)) : &PL_sv_undef;
582 7 1 RETVAL = (res) ? newSVpv(buf, NI_iplengths(ipversion)) : &PL_sv_undef;
593 3 1 RETVAL = (res) ? newSViv(res) : &PL_sv_undef;
606 11 2 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
628 2 2 RETVAL = (res) ? newSViv(res) : &PL_sv_undef;
643 10 2 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
657 174 10 : &PL_sv_undef;
672 18 5 RETVAL = (res) ? newSViv(result) : &PL_sv_undef;
685 2 4 RETVAL = (res) ? newSViv(res) : &PL_sv_undef;
702 3 13 if (!res) {
703 0 3 for (i = 0; i < pcount; i++) {
708 211 13 for (i = 0; i < pcount; i++) {
709 0 211 XPUSHs(sv_2mortal(newSVpv(prefixes[i], 0)));
722 4 4 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
738 7 7 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
752 19 3 if (res) {
753 0 19 XPUSHs(sv_2mortal(newSVpv(ip, 0)));
754 0 19 XPUSHs(sv_2mortal(newSVpv(buf, 0)));
770 23 7 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
785 31 24 if (res >= 1) {
786 0 31 XPUSHs(sv_2mortal(newSVpv(buf1, 0)));
788 29 26 if (res >= 2) {
789 0 29 XPUSHs(sv_2mortal(newSVpv(buf2, 0)));
800 6 3 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
814 16 2 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
829 12 4 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
842 9 1 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
857 48 87 ipversion = (items > 2) ? SvIV(ST(2)) : 0;
48 0 ipversion = (items > 2) ? SvIV(ST(2)) : 0;
863 8 127 if (!res) {
879 1 7 if (!sv_isa(self, "Net::IP::XS")) {
883 5 2 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
895 1 19 if (!sv_isa(self, "Net::IP::XS")) {
899 17 2 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
911 1 19 if (!sv_isa(self, "Net::IP::XS")) {
915 17 2 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
927 1 7 if (!sv_isa(self, "Net::IP::XS")) {
931 5 2 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
943 1 7 if (!sv_isa(self, "Net::IP::XS")) {
947 6 1 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
959 1 8 if (!sv_isa(self, "Net::IP::XS")) {
963 6 2 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
975 1 9 if (!sv_isa(self, "Net::IP::XS")) {
979 6 3 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
991 1 7 if (!sv_isa(self, "Net::IP::XS")) {
995 5 2 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
1007 1 6 if (!sv_isa(self, "Net::IP::XS")) {
1012 4 2 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
1024 1 13 if (!sv_isa(self, "Net::IP::XS")) {
1029 10 3 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
1041 1 18 if (!sv_isa(self, "Net::IP::XS")) {
1046 16 2 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
1058 1 9 if (!sv_isa(self, "Net::IP::XS")) {
1063 8 1 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
1075 1 34 if (!sv_isa(self, "Net::IP::XS")) {
1080 34 0 RETVAL = (res) ? newSVpv(buf, 0) : &PL_sv_undef;
1094 4 1 if (!sv_isa(self, "Net::IP::XS") || !sv_isa(other, "Net::IP::XS")) {
0 4 if (!sv_isa(self, "Net::IP::XS") || !sv_isa(other, "Net::IP::XS")) {
1098 3 1 RETVAL = (res) ? newSViv(result) : &PL_sv_undef;
1110 4 1 if (!sv_isa(self, "Net::IP::XS") || !sv_isa(other, "Net::IP::XS")) {
0 4 if (!sv_isa(self, "Net::IP::XS") || !sv_isa(other, "Net::IP::XS")) {
1114 3 1 RETVAL = (new_ip) ? new_ip : &PL_sv_undef;
1126 5 1 if (!sv_isa(self, "Net::IP::XS") || !sv_isa(other, "Net::IP::XS")) {
1 4 if (!sv_isa(self, "Net::IP::XS") || !sv_isa(other, "Net::IP::XS")) {
1130 2 2 RETVAL = (new_ip) ? new_ip : &PL_sv_undef;
1143 11 1 if (!sv_isa(self, "Net::IP::XS") || !sv_isa(other, "Net::IP::XS")) {
0 11 if (!sv_isa(self, "Net::IP::XS") || !sv_isa(other, "Net::IP::XS")) {
1147 10 1 RETVAL = (res) ? newSViv(result) : &PL_sv_undef;
1161 1 1 if (!sv_isa(self, "Net::IP::XS")) {
1166 1 0 if (!res) {
1167 0 1 for (i = 0; i < pcount; i++) {
1172 0 0 for (i = 0; i < pcount; i++) {
1173 0 0 XPUSHs(sv_2mortal(newSVpv(prefixes[i], 0)));
1187 1 785 if (!sv_isa(self, "Net::IP::XS")) {
1191 774 11 RETVAL = (new_ip) ? new_ip : &PL_sv_undef;
1202 0 0 if (!sv_isa(self, "Net::IP::XS")) {
1206 0 0 RETVAL = (res) ? newSViv(1) : &PL_sv_undef;