Branch Coverage

jsonxs_inline.h
Criterion Covered Total %
branch 56 84 66.6


line true false branch
35 0 20 if (expect_false (--maxdepth <= 0))
36 0 0 while (((U8)*s - '0') < 10)
43 20 41 if (expect_false (dig >= 10))
45 8 12 if (dig == (U8)((U8)'.' - (U8)'0'))
50 8 4 else if ((dig | ' ') == 'e' - '0')
57 2 6 if (*s == '-')
62 2 4 else if (*s == '+')
65 9 8 while ((dig = (U8)*s - '0') < 10)
68 2 6 *expo += neg ? -exp2 : exp2;
83 0 41 if (uaccum >= (UV_MAX - 9) / 10)
85 0 0 if (postdp) *expo -= eaccum;
87 0 0 if (postdp) *expo += eaccum;
100 8 12 if (postdp) *expo -= eaccum;
113 2 10 if (*s == '-')
122 2 10 return neg ? -accum : accum;
134 2 10 if (*c == '-')
137 3 9 if (*c == '0') {
139 0 3 if (*c >= '0' && *c <= '9') {
0 0 if (*c >= '0' && *c <= '9') {
142 9 0 } else if (*c < '0' || *c > '9') {
0 9 } else if (*c < '0' || *c > '9') {
147 5 5 } while (*c >= '0' && *c <= '9');
1 4 } while (*c >= '0' && *c <= '9');
150 8 4 if (*c == '.') {
153 8 0 if (*c < '0' || *c > '9')
0 8 if (*c < '0' || *c > '9')
158 27 1 } while (*c >= '0' && *c <= '9');
20 7 } while (*c >= '0' && *c <= '9');
163 6 6 if (*c == 'e' || *c == 'E') {
2 4 if (*c == 'e' || *c == 'E') {
166 6 2 if (*c == '-' || *c == '+')
2 4 if (*c == '-' || *c == '+')
169 8 0 if (*c < '0' || *c > '9')
0 8 if (*c < '0' || *c > '9')
174 8 1 } while (*c >= '0' && *c <= '9');
1 7 } while (*c >= '0' && *c <= '9');
179 0 12 if (!is_nv) {
183 0 0 if (*start == '-')
213 0 0 if (numtype & IS_NUMBER_IN_UV
215 0 0 if (numtype & IS_NUMBER_NEG)
217 0 0 if (uv < (UV) IV_MIN
228 0 0 if (len <= NV_DIG