Branch Coverage

bson/bson-iso8601.c
Criterion Covered Total %
branch 0 104 0.0


line true false branch
38 0 0 if (!*remaining) {
46 0 0 for (; *remaining && !found_terminal;
0 0 for (; *remaining && !found_terminal;
48 0 0 for (terminal = terminals; *terminal; terminal++) {
49 0 0 if (**ptr == *terminal) {
56 0 0 if (!found_terminal) {
69 0 0 for (i = 0; i < len; i++) {
70 0 0 if (!isdigit(str[i])) {
90 0 0 if ((digits >= 0 && len != digits) || !digits_only (str, len)) {
0 0 if ((digits >= 0 && len != digits) || !digits_only (str, len)) {
0 0 if ((digits >= 0 && len != digits) || !digits_only (str, len)) {
94 0 0 for (i = 1; i <= len; i++, magnitude *= 10) {
98 0 0 if (value < min || value > max) {
0 0 if (value < min || value > max) {
155 0 0 &year_len) &&
157 0 0 &month_len) &&
159 0 0 &day_len) &&
167 0 0 if (min_ptr[min_len] == ':') {
168 0 0 if (remaining < 2) {
174 0 0 if (!sec_len) {
180 0 0 if (sec_len && sec_ptr[sec_len] == '.') {
0 0 if (sec_len && sec_ptr[sec_len] == '.') {
181 0 0 if (remaining < 2) {
187 0 0 if (!millis_len) {
201 0 0 if (!parse_num (year_ptr, year_len, 4, 1969, 9999, &year)) {
208 0 0 if (!parse_num (month_ptr, month_len, 2, 1, 12, &month)) {
215 0 0 if (!parse_num (day_ptr, day_len, 2, 1, 31, &day)) {
219 0 0 if (!parse_num (hour_ptr, hour_len, 2, 0, 23, &hour)) {
223 0 0 if (!parse_num (min_ptr, min_len, 2, 0, 59, &min)) {
227 0 0 if (sec_len && !parse_num (sec_ptr, sec_len, 2, 0, 60, &sec)) {
0 0 if (sec_len && !parse_num (sec_ptr, sec_len, 2, 0, 60, &sec)) {
231 0 0 if (tz_len > 0) {
232 0 0 if (tz_ptr[0] == 'Z' && tz_len == 1) {
0 0 if (tz_ptr[0] == 'Z' && tz_len == 1) {
234 0 0 } else if (tz_ptr[0] == '+' || tz_ptr[0] == '-') {
0 0 } else if (tz_ptr[0] == '+' || tz_ptr[0] == '-') {
238 0 0 if (tz_len != 5 || !digits_only (tz_ptr + 1, 4)) {
0 0 if (tz_len != 5 || !digits_only (tz_ptr + 1, 4)) {
242 0 0 if (!parse_num (tz_ptr + 1, 2, -1, -23, 23, &tz_hour)) {
246 0 0 if (!parse_num (tz_ptr + 3, 2, -1, 0, 59, &tz_min)) {
253 0 0 (tz_ptr[0] == '-' ? 1 : -1) * ((tz_min * 60) + (tz_hour * 60 * 60));
255 0 0 if (!(tz_adjustment > -86400 && tz_adjustment < 86400)) {
0 0 if (!(tz_adjustment > -86400 && tz_adjustment < 86400)) {
263 0 0 if (millis_len > 0) {
268 0 0 if (millis_len > 3 || !digits_only (millis_ptr, millis_len)) {
0 0 if (millis_len > 3 || !digits_only (millis_ptr, millis_len)) {
272 0 0 for (i = 1, magnitude = 1; i <= millis_len; i++, magnitude *= 10) {
276 0 0 if (millis_len == 1) {
278 0 0 } else if (millis_len == 2) {
282 0 0 if (millis < 0 || millis > 1000) {
0 0 if (millis < 0 || millis > 1000) {
335 0 0 if (millis < 0) {