Branch Coverage

src/dt_arithmetic.c
Criterion Covered Total %
branch 5 94 5.3


line true false branch
35 0 0 if (adjust == DT_EXCESS || d < 365)
0 0 if (adjust == DT_EXCESS || d < 365)
42 0 0 if (d > diy || (adjust == DT_SNAP && d == dt_days_in_year(y)))
0 0 if (d > diy || (adjust == DT_SNAP && d == dt_days_in_year(y)))
0 0 if (d > diy || (adjust == DT_SNAP && d == dt_days_in_year(y)))
53 0 0 if (adjust == DT_EXCESS || d < 90)
0 0 if (adjust == DT_EXCESS || d < 90)
60 0 0 if (rq < 1 || rq > 4) {
0 0 if (rq < 1 || rq > 4) {
63 0 0 if (rq < 1)
68 0 0 if (d > diq || (adjust == DT_SNAP && d == dt_days_in_quarter(y, q)))
0 0 if (d > diq || (adjust == DT_SNAP && d == dt_days_in_quarter(y, q)))
0 0 if (d > diq || (adjust == DT_SNAP && d == dt_days_in_quarter(y, q)))
79 80 0 if (adjust == DT_EXCESS || d < 28)
80 0 if (adjust == DT_EXCESS || d < 28)
86 0 0 if (rm < 1 || rm > 12) {
0 0 if (rm < 1 || rm > 12) {
89 0 0 if (rm < 1)
94 0 0 if (d > dim || (adjust == DT_SNAP && d == dt_days_in_month(y, m)))
0 0 if (d > dim || (adjust == DT_SNAP && d == dt_days_in_month(y, m)))
0 0 if (d > dim || (adjust == DT_SNAP && d == dt_days_in_month(y, m)))
110 0 0 if (ny > 0 && nd < 0) {
0 0 if (ny > 0 && nd < 0) {
114 0 0 else if (ny < 0 && nd > 0) {
0 0 else if (ny < 0 && nd > 0) {
119 0 0 if (yp) *yp = ny;
120 0 0 if (dp) *dp = nd;
133 0 0 if (nq > 0 && nd < 0) {
0 0 if (nq > 0 && nd < 0) {
137 0 0 else if (nq < 0 && nd > 0) {
0 0 else if (nq < 0 && nd > 0) {
145 0 0 if (qp) *yp = ny;
146 0 0 if (qp) *qp = nq;
147 0 0 if (dp) *dp = nd;
160 0 0 if (nm > 0 && nd < 0) {
0 0 if (nm > 0 && nd < 0) {
164 0 0 else if (nm < 0 && nd > 0) {
0 0 else if (nm < 0 && nd > 0) {
172 0 0 if (yp) *yp = ny;
173 0 0 if (mp) *mp = nm;
174 0 0 if (dp) *dp = nd;
185 0 0 if (complete) {
186 0 0 if (dt1 > dt2)
202 0 0 if (complete) {
203 0 0 if (dt1 > dt2)
219 86 0 if (complete) {
220 40 46 if (dt1 > dt2)