Branch Coverage

third_party/modest/source/mycss/convert.c
Criterion Covered Total %
branch 5 86 5.8


line true false branch
50 0 0 while(offset < size && (data[offset] >= '0' && data[offset] <= '9'))
0 0 while(offset < size && (data[offset] >= '0' && data[offset] <= '9'))
0 0 while(offset < size && (data[offset] >= '0' && data[offset] <= '9'))
58 0 0 if(offset == size) {
59 0 0 if(is_negative) number = -number;
63 0 0 if(is_float)
70 0 0 if(data[offset] == '.') {
73 0 0 while (offset < size && (data[offset] >= '0' && data[offset] <= '9'))
0 0 while (offset < size && (data[offset] >= '0' && data[offset] <= '9'))
0 0 while (offset < size && (data[offset] >= '0' && data[offset] <= '9'))
85 0 0 if(is_negative) number = -number;
89 0 0 if(is_float)
95 0 0 if(num_digits == 0)
98 0 0 if(is_float)
102 0 0 if(is_negative) number = -number;
107 0 0 if(offset < size && (data[offset] == 'e' || data[offset] == 'E'))
0 0 if(offset < size && (data[offset] == 'e' || data[offset] == 'E'))
0 0 if(offset < size && (data[offset] == 'e' || data[offset] == 'E'))
111 0 0 if(offset >= size || (data[offset] != '-' && data[offset] != '+' &&
0 0 if(offset >= size || (data[offset] != '-' && data[offset] != '+' &&
0 0 if(offset >= size || (data[offset] != '-' && data[offset] != '+' &&
0 0 if(offset >= size || (data[offset] != '-' && data[offset] != '+' &&
112 0 0 (data[offset] < '0' || data[offset] > '9')))
126 0 0 while(offset < size && (data[offset] >= '0' && data[offset] <= '9'))
0 0 while(offset < size && (data[offset] >= '0' && data[offset] <= '9'))
0 0 while(offset < size && (data[offset] >= '0' && data[offset] <= '9'))
132 0 0 if(is_negative) {
144 0 0 if (n < 0) n = -n;
146 0 0 while (n) {
147 0 0 if (n & 1) {
148 0 0 if (exponent < 0) {
161 0 0 if(is_float)
180 3 1 while(offset < size && mycore_string_chars_num_map[u_data[offset]] != 0xff)
2 1 while(offset < size && mycore_string_chars_num_map[u_data[offset]] != 0xff)
186 0 2 if(is_negative)
201 0 0 while(length < size)
203 0 0 if(mycore_string_chars_hex_map[u_data[length]] != 0xff) {
209 0 0 if(max_consumed == 0)
225 0 0 if(length == size) {
230 0 0 if(data[length] == '?')
243 0 0 while(length < size && data[length] == '?');
0 0 while(length < size && data[length] == '?');
248 0 0 if(data[length] == '-') {