Branch Coverage

src/dt_util.c
Criterion Covered Total %
branch 9 24 37.5


line true false branch
30 40 38 return ((y & 3) == 0 && (y % 100 != 0 || y % 400 == 0));
0 40 return ((y & 3) == 0 && (y % 100 != 0 || y % 400 == 0));
0 0 return ((y & 3) == 0 && (y % 100 != 0 || y % 400 == 0));
35 3 1 return dt_leap_year(y) ? 366 : 365;
44 17 0 if (q < 1 || q > 4)
0 17 if (q < 1 || q > 4)
55 57 0 if (m < 1 || m > 12)
0 57 if (m < 1 || m > 12)
63 0 0 if (year < 1)
67 0 0 return (d == 3 || (d == 2 && dt_leap_year(year))) ? 53 : 52;
0 0 return (d == 3 || (d == 2 && dt_leap_year(year))) ? 53 : 52;
0 0 return (d == 3 || (d == 2 && dt_leap_year(year))) ? 53 : 52;