Branch Coverage

SockAddr_xsgen.cc
Criterion Covered Total %
branch 170 444 38.2


line true false branch
173 0 5 if (items != 2)
179 5 0 SockAddr oth = xs::in(ST(1));
188 5 0 RETVALSV = xs::out(RETVAL, PROTO).detach();
189 5 0 RETVALSV = sv_2mortal(RETVALSV);
194 5 0 }); }
201 0 3 if (items != 1)
205 3 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 3 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
213 3 0 RETVALSV = xs::out(RETVAL, PROTO).detach();
214 3 0 RETVALSV = sv_2mortal(RETVALSV);
219 3 0 }); }
226 0 2 if (items != 1)
230 2 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 2 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
235 2 0 ST(0) = boolSV(RETVAL);
238 2 0 }); }
245 0 1 if (items != 1)
249 1 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 1 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
254 1 0 ST(0) = boolSV(RETVAL);
257 1 0 }); }
267 0 1 if (items != 1)
271 1 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 1 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
276 1 0 ST(0) = boolSV(RETVAL);
279 1 0 }); }
287 0 4 if (items != 1)
291 4 0 dXSTARG;
0 0 dXSTARG;
292 4 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 4 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
298 4 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 4 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
301 4 0 }); }
308 0 3 if (items < 1)
312 0 3 dXSTARG;
3 0 dXSTARG;
313 3 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 3 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
320 3 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 3 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
323 3 0 }); }
330 0 7 if (items < 2)
334 7 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 7 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
336 7 0 SockAddr oth = xs::in(ST(1));
341 7 0 ST(0) = boolSV(RETVAL);
344 7 0 }); }
351 0 3 if (items < 2)
355 3 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 3 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
357 3 0 SockAddr oth = xs::in(ST(1));
362 3 0 ST(0) = boolSV(RETVAL);
365 3 0 }); }
372 0 3 if (items != 2)
377 0 3 uint16_t port = (uint16_t)SvUV(ST(1))
3 0 uint16_t port = (uint16_t)SvUV(ST(1))
381 3 0 const char* __addr_buf = SvPV(ST(0), __addr_len);
0 0 const char* __addr_buf = SvPV(ST(0), __addr_len);
391 3 0 RETVALSV = xs::out(RETVAL, PROTO).detach();
392 3 0 RETVALSV = sv_2mortal(RETVALSV);
397 3 0 }); }
404 0 10 if (items != 3)
409 0 10 uint16_t port = (uint16_t)SvUV(ST(2))
10 0 uint16_t port = (uint16_t)SvUV(ST(2))
413 10 0 const char* __ip_buf = SvPV(ST(1), __ip_len);
0 0 const char* __ip_buf = SvPV(ST(1), __ip_len);
422 9 0 RETVALSV = xs::out(RETVAL, PROTO).detach();
423 9 0 RETVALSV = sv_2mortal(RETVALSV);
428 9 0 }); }
435 0 4 if (items != 1)
439 4 0 dXSTARG;
0 0 dXSTARG;
440 4 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 4 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
445 4 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 4 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
448 4 0 }); }
455 0 4 if (items != 1)
459 4 0 dXSTARG;
0 0 dXSTARG;
460 4 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 4 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
465 0 4 XSprePUSH; PUSHu((UV)RETVAL);
4 0 XSprePUSH; PUSHu((UV)RETVAL);
468 4 0 }); }
475 0 3 if (items != 1)
479 3 0 dXSTARG;
0 0 dXSTARG;
480 3 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 3 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
485 3 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 3 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
488 3 0 }); }
495 3 0 if (items < 2 || items > 4)
0 3 if (items < 2 || items > 4)
500 0 3 uint16_t port = (uint16_t)SvUV(ST(1))
3 0 uint16_t port = (uint16_t)SvUV(ST(1))
506 3 0 const char* __addr_buf = SvPV(ST(0), __addr_len);
0 0 const char* __addr_buf = SvPV(ST(0), __addr_len);
510 2 1 if (items < 3)
513 1 0 scope_id = (uint32_t)SvUV(ST(2))
514 0 1 ;
517 2 1 if (items < 4)
520 1 0 flow_info = (uint32_t)SvUV(ST(3))
521 0 1 ;
530 3 0 RETVALSV = xs::out(RETVAL, PROTO).detach();
531 3 0 RETVALSV = sv_2mortal(RETVALSV);
536 3 0 }); }
543 5 0 if (items < 3 || items > 5)
0 5 if (items < 3 || items > 5)
548 0 5 uint16_t port = (uint16_t)SvUV(ST(2))
5 0 uint16_t port = (uint16_t)SvUV(ST(2))
554 5 0 const char* __ip_buf = SvPV(ST(1), __ip_len);
0 0 const char* __ip_buf = SvPV(ST(1), __ip_len);
558 4 1 if (items < 4)
561 1 0 scope_id = (uint32_t)SvUV(ST(3))
562 0 1 ;
565 4 1 if (items < 5)
568 1 0 flow_info = (uint32_t)SvUV(ST(4))
569 0 1 ;
577 4 0 RETVALSV = xs::out(RETVAL, PROTO).detach();
578 4 0 RETVALSV = sv_2mortal(RETVALSV);
583 4 0 }); }
590 0 3 if (items != 1)
594 3 0 dXSTARG;
0 0 dXSTARG;
595 3 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 3 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
600 3 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 3 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
603 3 0 }); }
610 0 3 if (items != 1)
614 3 0 dXSTARG;
0 0 dXSTARG;
615 3 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 3 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
620 0 3 XSprePUSH; PUSHu((UV)RETVAL);
3 0 XSprePUSH; PUSHu((UV)RETVAL);
623 3 0 }); }
630 0 3 if (items != 1)
634 3 0 dXSTARG;
0 0 dXSTARG;
635 3 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 3 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
640 0 3 XSprePUSH; PUSHu((UV)RETVAL);
3 0 XSprePUSH; PUSHu((UV)RETVAL);
643 3 0 }); }
650 0 3 if (items != 1)
654 3 0 dXSTARG;
0 0 dXSTARG;
655 3 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 3 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
660 0 3 XSprePUSH; PUSHu((UV)RETVAL);
3 0 XSprePUSH; PUSHu((UV)RETVAL);
663 3 0 }); }
670 0 2 if (items != 1)
674 2 0 dXSTARG;
0 0 dXSTARG;
675 2 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 2 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
680 2 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 2 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
683 2 0 }); }
693 0 3 if (items != 2)
700 3 0 const char* __path_buf = SvPV(ST(1), __path_len);
0 0 const char* __path_buf = SvPV(ST(1), __path_len);
709 2 0 RETVALSV = xs::out(RETVAL, PROTO).detach();
710 2 0 RETVALSV = sv_2mortal(RETVALSV);
715 2 0 }); }
722 0 3 if (items != 1)
726 3 0 dXSTARG;
0 0 dXSTARG;
727 3 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 3 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
0 0 SockAddr* THIS = xs::in(ST(0)); if (!SvOK(ST(0))) throw "undef not allowed as THIS";
732 3 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 3 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
0 0 XSprePUSH; PUSHp(RETVAL.data(), RETVAL.length());
735 3 0 }); }
747 0 5 dVAR; dXSBOOTARGSXSAPIVERCHK;
0 5 dVAR; dXSBOOTARGSXSAPIVERCHK;
840 5 0 }); }