Branch Coverage

src/ldns/duration.c
Criterion Covered Total %
branch 0 102 0.0


line true false branch
59 0 0 if (!duration) {
80 0 0 if (!d1 && !d2) {
0 0 if (!d1 && !d2) {
83 0 0 if (!d1 || !d2) {
0 0 if (!d1 || !d2) {
84 0 0 return d1?-1:1;
87 0 0 if (d1->years != d2->years) {
90 0 0 if (d1->months != d2->months) {
93 0 0 if (d1->weeks != d2->weeks) {
96 0 0 if (d1->days != d2->days) {
99 0 0 if (d1->hours != d2->hours) {
102 0 0 if (d1->minutes != d2->minutes) {
105 0 0 if (d1->seconds != d2->seconds) {
124 0 0 if (!duration) {
127 0 0 if (!str) {
132 0 0 if (!P) {
139 0 0 if (X) {
145 0 0 if (X && (!T || (size_t) (X-P) < (size_t) (T-P))) {
0 0 if (X && (!T || (size_t) (X-P) < (size_t) (T-P))) {
0 0 if (X && (!T || (size_t) (X-P) < (size_t) (T-P))) {
151 0 0 if (X) {
156 0 0 if (T) {
161 0 0 if (X && T) {
0 0 if (X && T) {
167 0 0 if (X && T && (size_t) (X-P) > (size_t) (T-P)) {
0 0 if (X && T && (size_t) (X-P) > (size_t) (T-P)) {
0 0 if (X && T && (size_t) (X-P) > (size_t) (T-P)) {
173 0 0 if (X && T) {
0 0 if (X && T) {
180 0 0 if (W) {
181 0 0 if (not_weeks) {
203 0 0 while (period > 0) {
222 0 0 if (!duration) {
226 0 0 if (duration->years > 0) {
229 0 0 if (duration->months > 0) {
232 0 0 if (duration->weeks > 0) {
235 0 0 if (duration->days > 0) {
238 0 0 if (duration->hours > 0) {
242 0 0 if (duration->minutes > 0) {
246 0 0 if (duration->seconds > 0) {
250 0 0 if (T) {
258 0 0 if (duration->years > 0) {
265 0 0 if (duration->months > 0) {
272 0 0 if (duration->weeks > 0) {
279 0 0 if (duration->days > 0) {
286 0 0 if (T) {
289 0 0 if (duration->hours > 0) {
296 0 0 if (duration->minutes > 0) {
303 0 0 if (duration->seconds > 0) {
323 0 0 if (duration) {
349 0 0 if (!duration) {