Branch Coverage

src/panda/time.cc
Criterion Covered Total %
branch 33 42 78.5


line true false branch
48 23764 3 static inline bool is_epoch_valid(ptime_t epoch) { return (epoch <= EPOCH_MAX) && (epoch >= EPOCH_MIN); }
23761 3 static inline bool is_epoch_valid(ptime_t epoch) { return (epoch <= EPOCH_MAX) && (epoch >= EPOCH_MIN); }
70 4723 4 if (is_epoch_valid(epoch)){
81 0 7514 if (border.mday > DAYS_IN_MONTH[is_leap][border.mon]) border.mday -= 7;
88 19038 2 if (r) {
89 14545 4493 if (epoch < zone->ltrans.start) {
90 103755 14538 __PTIME_TRANS_BINFIND(epoch, start);
57690 46065 __PTIME_TRANS_BINFIND(epoch, start);
46058 7 __PTIME_TRANS_BINFIND(epoch, start);
14538 7 __PTIME_TRANS_BINFIND(epoch, start);
95 3 14542 _PTIME_LT_LEAPSEC_CORR(zone->trans[index]);
97 2520 1973 else if (!zone->future.hasdst) { // future with no DST
102 0 2520 _PTIME_LT_LEAPSEC_CORR(zone->ltrans);
108 1104 869 if ((epoch >= _calc_rule_epoch(is_leap, result, zone->future.outer.end) - zone->future.outer.offset) &&
119 0 1973 _PTIME_LT_LEAPSEC_CORR(zone->ltrans);
127 21 9 if (date->isdst > 0) {
138 5818 13251 if (date->isdst > 0) {
155 0 0 strftime(buf, 150, format, timeptr);
156 0 0 printf("%s", buf);
159 26 0 }}
26 0 }}