Branch Coverage

src/panda/time.cc
Criterion Covered Total %
branch 25 34 73.5


line true false branch
72 0 7514 if (border.mday > DAYS_IN_MONTH[is_leap][border.mon]) border.mday -= 7;
78 14544 4489 if (epoch < zone->ltrans.start) {
79 103746 14537 __PTIME_TRANS_BINFIND(epoch, start);
57683 46063 __PTIME_TRANS_BINFIND(epoch, start);
46056 7 __PTIME_TRANS_BINFIND(epoch, start);
14537 7 __PTIME_TRANS_BINFIND(epoch, start);
84 3 14541 _PTIME_LT_LEAPSEC_CORR(zone->trans[index]);
86 2516 1973 else if (!zone->future.hasdst) { // future with no DST
91 0 2516 _PTIME_LT_LEAPSEC_CORR(zone->ltrans);
97 1104 869 if ((epoch >= _calc_rule_epoch(is_leap, result, zone->future.outer.end) - zone->future.outer.offset) &&
108 0 1973 _PTIME_LT_LEAPSEC_CORR(zone->ltrans);
114 21 9 if (date->isdst > 0) {
125 5818 13250 if (date->isdst > 0) {
142 0 0 strftime(buf, 150, format, timeptr);
143 0 0 printf("%s", buf);
146 18 0 }}
18 0 }}