line |
true |
false |
branch |
24
|
4661 |
0 |
if (mt->sec < MIN_RANGE || mt->sec > MAX_RANGE) |
|
0 |
4661 |
if (mt->sec < MIN_RANGE || mt->sec > MAX_RANGE) |
93
|
119 |
0 |
if (v < 1 || v > 9999) |
|
0 |
119 |
if (v < 1 || v > 9999) |
99
|
4 |
0 |
if (v < 1 || v > 4) |
|
0 |
4 |
if (v < 1 || v > 4) |
105
|
222 |
0 |
if (v < 1 || v > 12) |
|
0 |
222 |
if (v < 1 || v > 12) |
111
|
0 |
0 |
if (v < 1 || v > 53) |
|
0 |
0 |
if (v < 1 || v > 53) |
117
|
368 |
0 |
if (v < 1 || v > 366) |
|
0 |
368 |
if (v < 1 || v > 366) |
123
|
100 |
0 |
if (v < 1 || v > 92) |
|
0 |
100 |
if (v < 1 || v > 92) |
129
|
169 |
0 |
if (v < 1 || v > 31) |
|
0 |
169 |
if (v < 1 || v > 31) |
135
|
0 |
0 |
if (v < 1 || v > 7) |
|
0 |
0 |
if (v < 1 || v > 7) |
141
|
162 |
0 |
if (v < 0 || v > 23) |
|
0 |
162 |
if (v < 0 || v > 23) |
147
|
234 |
0 |
if (v < 0 || v > 59) |
|
0 |
234 |
if (v < 0 || v > 59) |
153
|
9 |
0 |
if (v < 0 || v > 1439) |
|
0 |
9 |
if (v < 0 || v > 1439) |
159
|
234 |
0 |
if (v < 0 || v > 59) |
|
0 |
234 |
if (v < 0 || v > 59) |
165
|
36 |
0 |
if (v < 0 || v > 86399) |
|
0 |
36 |
if (v < 0 || v > 86399) |
171
|
4 |
0 |
if (v < 0 || v > 999) |
|
0 |
4 |
if (v < 0 || v > 999) |
177
|
5 |
0 |
if (v < 0 || v > 999999) |
|
0 |
5 |
if (v < 0 || v > 999999) |
183
|
744 |
0 |
if (v < 0 || v > 999999999) |
|
0 |
744 |
if (v < 0 || v > 999999999) |
189
|
1009 |
0 |
if (v < -1080 || v > 1080) |
|
0 |
1009 |
if (v < -1080 || v > 1080) |
195
|
624 |
0 |
if (!VALID_EPOCH_SEC(v)) |
|
0 |
624 |
if (!VALID_EPOCH_SEC(v)) |
201
|
0 |
0 |
if (v < MIN_RATA_DIE_DAY || v > MAX_RATA_DIE_DAY) |
|
0 |
0 |
if (v < MIN_RATA_DIE_DAY || v > MAX_RATA_DIE_DAY) |
207
|
40 |
0 |
if (v < MIN_UNIT_YEARS || v > MAX_UNIT_YEARS) |
|
0 |
40 |
if (v < MIN_UNIT_YEARS || v > MAX_UNIT_YEARS) |
213
|
120 |
0 |
if (v < MIN_UNIT_MONTHS || v > MAX_UNIT_MONTHS) |
|
0 |
120 |
if (v < MIN_UNIT_MONTHS || v > MAX_UNIT_MONTHS) |
219
|
40 |
0 |
if (v < MIN_UNIT_WEEKS || v > MAX_UNIT_WEEKS) |
|
0 |
40 |
if (v < MIN_UNIT_WEEKS || v > MAX_UNIT_WEEKS) |
225
|
904 |
0 |
if (v < MIN_UNIT_DAYS || v > MAX_UNIT_DAYS) |
|
0 |
904 |
if (v < MIN_UNIT_DAYS || v > MAX_UNIT_DAYS) |
231
|
80 |
0 |
if (v < MIN_UNIT_HOURS || v > MAX_UNIT_HOURS) |
|
0 |
80 |
if (v < MIN_UNIT_HOURS || v > MAX_UNIT_HOURS) |
237
|
80 |
0 |
if (v < MIN_UNIT_MINUTES || v > MAX_UNIT_MINUTES) |
|
0 |
80 |
if (v < MIN_UNIT_MINUTES || v > MAX_UNIT_MINUTES) |
243
|
328 |
0 |
if (v < MIN_UNIT_SECONDS || v > MAX_UNIT_SECONDS) |
|
0 |
328 |
if (v < MIN_UNIT_SECONDS || v > MAX_UNIT_SECONDS) |
249
|
80 |
0 |
if (v < MIN_UNIT_MILLIS || v > MAX_UNIT_MILLIS) |
|
0 |
80 |
if (v < MIN_UNIT_MILLIS || v > MAX_UNIT_MILLIS) |
255
|
80 |
0 |
if (v < MIN_UNIT_MICROS || v > MAX_UNIT_MICROS) |
|
0 |
80 |
if (v < MIN_UNIT_MICROS || v > MAX_UNIT_MICROS) |
276
|
394 |
0 |
if (precision < 0 || precision > 9) |
|
0 |
394 |
if (precision < 0 || precision > 9) |
279
|
394 |
0 |
if (!(sec > SEC_MIN && sec < SEC_MAX)) |
|
0 |
394 |
if (!(sec > SEC_MIN && sec < SEC_MAX)) |
284
|
191 |
203 |
if (n < 0) |
298
|
672 |
0 |
if (precision < 0 || precision > 9) |
|
0 |
672 |
if (precision < 0 || precision > 9) |
301
|
672 |
0 |
if (!(sd > SD_MIN && sd < SD_MAX)) |
|
0 |
672 |
if (!(sd > SD_MIN && sd < SD_MAX)) |
304
|
672 |
0 |
if (!(epoch > SD_MIN && epoch < SD_MAX)) |
|
0 |
672 |
if (!(epoch > SD_MIN && epoch < SD_MAX)) |
307
|
548 |
124 |
if (sd >= epoch) { |
322
|
140 |
532 |
if (f < 0.0) |
329
|
672 |
0 |
if (d < 1 || d > 3652059) |
|
0 |
672 |
if (d < 1 || d > 3652059) |
338
|
5 |
667 |
if (*nsec >= NANOS_PER_SEC) { |
354
|
0 |
225 |
if (r < 0) { |
355
|
0 |
0 |
if (r == -1) |
370
|
0 |
223 |
if (r < 0) { |
371
|
0 |
0 |
if (r == -1) |
387
|
0 |
224 |
if (r < 0) { |
388
|
0 |
0 |
if (r == -1) |
404
|
0 |
114 |
if (D > 28) { |
406
|
0 |
0 |
if (D > dim) |
431
|
0 |
9 |
if (d > 28) { |
433
|
0 |
0 |
if (d > dim) |
474
|
0 |
0 |
if (w > 52) { |
476
|
0 |
0 |
if (w > wiy) |
489
|
26 |
29 |
if (d > 28) { |
491
|
0 |
26 |
if (d > dim) |
504
|
9 |
91 |
if (d > 90) { |
506
|
0 |
9 |
if (d > diq) |
519
|
2 |
366 |
if (d > 365) { |
521
|
0 |
2 |
if (v > diy) |
622
|
438 |
0 |
if (v < 0 || v > INT64_C(86400000000000)) |
|
0 |
438 |
if (v < 0 || v > INT64_C(86400000000000)) |
632
|
144 |
0 |
if (v < 0 || v > INT64_C(86400000000)) |
|
0 |
144 |
if (v < 0 || v > INT64_C(86400000000)) |
639
|
150 |
0 |
if (v < 0 || v > INT64_C(86400000)) |
|
0 |
150 |
if (v < 0 || v > INT64_C(86400000)) |
729
|
42 |
198 |
if (nsec < 0) { |
733
|
2 |
196 |
else if (nsec >= NANOS_PER_SEC) { |
835
|
700 |
0 |
if (precision < -3 || precision > 9) |
|
0 |
700 |
if (precision < -3 || precision > 9) |
840
|
12 |
688 |
if (precision <= 0) { |
862
|
76 |
536 |
if (d.nsec < 0) { |
934
|
102 |
0 |
if (d.sec > kMaxSec || d.sec < -kMaxSec) |
|
0 |
102 |
if (d.sec > kMaxSec || d.sec < -kMaxSec) |
1013
|
6 |
14 |
if (r == 0) |
1025
|
0 |
0 |
if (r == 0) |
1035
|
0 |
0 |
if (precision < -3 || precision > 9) |
|
0 |
0 |
if (precision < -3 || precision > 9) |
1038
|
0 |
0 |
if (precision < 0) { |
1059
|
0 |
0 |
if (r == 0 && precision != 0) { |
|
0 |
0 |
if (r == 0 && precision != 0) { |
1211
|
27 |
12 |
if (v != 0) { |
1212
|
132 |
3 |
for (i = 8; i > 0; i--) { |
1213
|
24 |
108 |
if ((v % kPow10[i]) == 0) |
1219
|
9 |
3 |
if (v != 0) { |
1220
|
3 |
6 |
if ((v % 3600) == 0) return -2; |
1221
|
3 |
3 |
else if ((v % 60) == 0) return -1; |