Branch Coverage

t/lib/MyTest.xs.cc
Criterion Covered Total %
branch 27 248 10.8


line true false branch
176 0 0 if (items < 6 || items > 7)
0 0 if (items < 6 || items > 7)
180 0 0 dXSTARG;
0 0 dXSTARG;
181 0 0 int64_t sec = (int64_t)SvIV(ST(0))
0 0 int64_t sec = (int64_t)SvIV(ST(0))
183 0 0 int64_t min = (int64_t)SvIV(ST(1))
0 0 int64_t min = (int64_t)SvIV(ST(1))
185 0 0 int64_t hour = (int64_t)SvIV(ST(2))
0 0 int64_t hour = (int64_t)SvIV(ST(2))
187 0 0 int64_t mday = (int64_t)SvIV(ST(3))
0 0 int64_t mday = (int64_t)SvIV(ST(3))
189 0 0 int64_t mon = (int64_t)SvIV(ST(4))
0 0 int64_t mon = (int64_t)SvIV(ST(4))
191 0 0 int64_t year = (int64_t)SvIV(ST(5))
0 0 int64_t year = (int64_t)SvIV(ST(5))
195 0 0 if (items < 7)
199 0 0 ;
0 0 ;
213 0 0 XSprePUSH; PUSHi((IV)RETVAL);
0 0 XSprePUSH; PUSHi((IV)RETVAL);
216 0 0 }); }
223 0 2 if (items != 2)
227 2 0 dXSTARG;
0 0 dXSTARG;
228 2 0 const char* fmt = (const char *)SvPV_nolen(ST(0))
0 0 const char* fmt = (const char *)SvPV_nolen(ST(0))
230 2 0 time_t epoch = (time_t)SvIV(ST(1))
0 0 time_t epoch = (time_t)SvIV(ST(1))
240 2 0 sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
0 2 sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
0 0 sv_setpv(TARG, RETVAL); XSprePUSH; PUSHTARG;
243 2 0 }); }
254 0 0 if (items != 3)
258 0 0 ptime_t step = (ptime_t)SvIV(ST(0))
0 0 ptime_t step = (ptime_t)SvIV(ST(0))
260 0 0 ptime_t from = (ptime_t)SvIV(ST(1))
0 0 ptime_t from = (ptime_t)SvIV(ST(1))
262 0 0 ptime_t till = (ptime_t)SvIV(ST(2))
0 0 ptime_t till = (ptime_t)SvIV(ST(2))
323 0 0 ST(0) = boolSV(RETVAL);
0 0 ST(0) = boolSV(RETVAL);
326 0 0 }); }
334 0 0 if (items != 3)
338 0 0 ptime_t step = (ptime_t)SvIV(ST(0))
0 0 ptime_t step = (ptime_t)SvIV(ST(0))
340 0 0 ptime_t from = (ptime_t)SvIV(ST(1))
0 0 ptime_t from = (ptime_t)SvIV(ST(1))
342 0 0 ptime_t till = (ptime_t)SvIV(ST(2))
0 0 ptime_t till = (ptime_t)SvIV(ST(2))
459 0 0 ST(0) = boolSV(RETVAL);
462 0 0 }); }
470 0 0 if (items != 1)
474 0 0 ptime_t epoch = (ptime_t)SvIV(ST(0))
0 0 ptime_t epoch = (ptime_t)SvIV(ST(0))
498 0 0 if (!RETVAL) XSRETURN_UNDEF;
499 0 0 RETVALSV = newRV_noinc(RETVAL.detach());
500 0 0 RETVALSV = sv_2mortal(RETVALSV);
501 0 0 ST(0) = RETVALSV;
505 0 0 }); }
513 0 0 if (items != 1)
517 0 0 time_t epoch = (time_t)SvIV(ST(0))
0 0 time_t epoch = (time_t)SvIV(ST(0))
541 0 0 if (!RETVAL) XSRETURN_UNDEF;
542 0 0 RETVALSV = newRV_noinc(RETVAL.detach());
543 0 0 RETVALSV = sv_2mortal(RETVALSV);
544 0 0 ST(0) = RETVALSV;
548 0 0 }); }
556 0 0 if (items != 6)
560 0 0 dXSTARG;
0 0 dXSTARG;
561 0 0 ptime_t sec = (ptime_t)SvIV(ST(0))
0 0 ptime_t sec = (ptime_t)SvIV(ST(0))
563 0 0 ptime_t min = (ptime_t)SvIV(ST(1))
0 0 ptime_t min = (ptime_t)SvIV(ST(1))
565 0 0 ptime_t hour = (ptime_t)SvIV(ST(2))
0 0 ptime_t hour = (ptime_t)SvIV(ST(2))
567 0 0 ptime_t mday = (ptime_t)SvIV(ST(3))
0 0 ptime_t mday = (ptime_t)SvIV(ST(3))
569 0 0 ptime_t mon = (ptime_t)SvIV(ST(4))
0 0 ptime_t mon = (ptime_t)SvIV(ST(4))
571 0 0 ptime_t year = (ptime_t)SvIV(ST(5))
0 0 ptime_t year = (ptime_t)SvIV(ST(5))
592 0 0 XSprePUSH; PUSHi((IV)RETVAL);
0 0 XSprePUSH; PUSHi((IV)RETVAL);
595 0 0 }); }
603 0 0 if (items != 6)
607 0 0 dXSTARG;
0 0 dXSTARG;
608 0 0 int64_t sec = (int64_t)SvIV(ST(0))
0 0 int64_t sec = (int64_t)SvIV(ST(0))
610 0 0 int64_t min = (int64_t)SvIV(ST(1))
0 0 int64_t min = (int64_t)SvIV(ST(1))
612 0 0 int64_t hour = (int64_t)SvIV(ST(2))
0 0 int64_t hour = (int64_t)SvIV(ST(2))
614 0 0 int64_t mday = (int64_t)SvIV(ST(3))
0 0 int64_t mday = (int64_t)SvIV(ST(3))
616 0 0 int64_t mon = (int64_t)SvIV(ST(4))
0 0 int64_t mon = (int64_t)SvIV(ST(4))
618 0 0 int64_t year = (int64_t)SvIV(ST(5))
0 0 int64_t year = (int64_t)SvIV(ST(5))
637 0 0 XSprePUSH; PUSHi((IV)RETVAL);
0 0 XSprePUSH; PUSHi((IV)RETVAL);
640 0 0 }); }
652 0 26 dVAR; dXSBOOTARGSXSAPIVERCHK;
0 26 dVAR; dXSBOOTARGSXSAPIVERCHK;
674 26 0 cv = newXS_deffile("MyTest::systimegm", XS_MyTest_systimegm);
676 26 0 cv = newXS_deffile("MyTest::systimelocal", XS_MyTest_systimegm);
678 26 0 newXS_deffile("MyTest::strftime", XS_MyTest_strftime);
680 26 0 cv = newXS_deffile("MyTest::test_gmtime", XS_MyTest_test_gmtime);
682 26 0 cv = newXS_deffile("MyTest::test_localtime", XS_MyTest_test_gmtime);
684 26 0 cv = newXS_deffile("MyTest::test_timegm", XS_MyTest_test_timegm);
686 26 0 cv = newXS_deffile("MyTest::test_timelocal", XS_MyTest_test_timegm);
688 26 0 cv = newXS_deffile("MyTest::gmtime_bench", XS_MyTest_gmtime_bench);
690 26 0 cv = newXS_deffile("MyTest::localtime_bench", XS_MyTest_gmtime_bench);
692 26 0 cv = newXS_deffile("MyTest::posix_gmtime_bench", XS_MyTest_posix_gmtime_bench);
694 26 0 cv = newXS_deffile("MyTest::posix_localtime_bench", XS_MyTest_posix_gmtime_bench);
696 26 0 cv = newXS_deffile("MyTest::timegm_bench", XS_MyTest_timegm_bench);
698 26 0 cv = newXS_deffile("MyTest::timegml_bench", XS_MyTest_timegm_bench);
700 26 0 cv = newXS_deffile("MyTest::timelocal_bench", XS_MyTest_timegm_bench);
702 26 0 cv = newXS_deffile("MyTest::timelocall_bench", XS_MyTest_timegm_bench);
704 26 0 cv = newXS_deffile("MyTest::posix_timegm_bench", XS_MyTest_posix_timegm_bench);
706 26 0 cv = newXS_deffile("MyTest::posix_timelocal_bench", XS_MyTest_posix_timegm_bench);
728 26 0 }); }