Branch Coverage

third_party/modest/source/modest/finder/match.c
Criterion Covered Total %
branch 53 188 28.1


line true false branch
25 0 0 if(key == NULL)
28 0 0 while (attr)
30 0 0 if(attr->key.length == key_len) {
31 0 0 if(mycore_strncasecmp(key, attr->key.data, key_len) == 0)
43 173 0 if(key == NULL || value == NULL)
0 173 if(key == NULL || value == NULL)
46 56 135 while (attr)
48 38 18 if(attr->key.length == key_len) {
49 38 0 if(mycore_strncasecmp(key, attr->key.data, key_len) == 0)
51 38 0 if(attr->value.length == value_len) {
52 0 38 if(case_sensitive) {
53 0 0 if(strncmp(value, attr->value.data, value_len) == 0) {
58 38 0 if(mycore_strncasecmp(value, attr->value.data, value_len) == 0) {
76 325 0 if(key == NULL || value == NULL)
0 325 if(key == NULL || value == NULL)
79 421 228 while (attr)
81 97 324 if(attr->key.length == key_len) {
82 97 0 if(mycore_strncasecmp(key, attr->key.data, key_len) == 0)
87 65 32 if(attr->value.length >= value_len) {
88 64 1 if(case_sensitive)
90 80 40 while(i < attr->value.length)
93 384 64 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
368 16 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
368 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
368 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
368 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
368 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
95 32 48 if((i - begin) == value_len && (mycore_strncmp(value, &attr->value.data[begin], value_len) == 0)) {
24 8 if((i - begin) == value_len && (mycore_strncmp(value, &attr->value.data[begin], value_len) == 0)) {
99 32 40 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
16 16 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
0 16 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
0 16 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
0 16 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
0 16 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
103 1 0 while(i < attr->value.length)
106 4 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
3 1 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
3 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
3 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
3 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
3 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], !=, &&)) {i++;}
108 1 0 if((i - begin) == value_len && (mycore_strncasecmp(value, &attr->value.data[begin], value_len) == 0)) {
1 0 if((i - begin) == value_len && (mycore_strncasecmp(value, &attr->value.data[begin], value_len) == 0)) {
112 0 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
0 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
0 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
0 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
0 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
0 0 while(i < attr->value.length && mycore_utils_whithspace(attr->value.data[i], ==, ||)) {i++;}
129 0 0 if(key == NULL || value == NULL)
0 0 if(key == NULL || value == NULL)
132 0 0 while (attr)
134 0 0 if(attr->key.length == key_len) {
135 0 0 if(mycore_strncasecmp(key, attr->key.data, key_len) == 0)
137 0 0 if(attr->value.length >= value_len) {
138 0 0 if(case_sensitive) {
139 0 0 if(mycore_strncmp(value, attr->value.data, value_len) == 0)
143 0 0 if(mycore_strncasecmp(value, attr->value.data, value_len) == 0)
160 0 0 if(key == NULL || value == NULL)
0 0 if(key == NULL || value == NULL)
163 0 0 while (attr)
165 0 0 if(attr->key.length == key_len) {
166 0 0 if(mycore_strncasecmp(key, attr->key.data, key_len) == 0)
168 0 0 if(attr->value.length >= value_len) {
169 0 0 if(case_sensitive) {
170 0 0 if(mycore_strncmp(value, &attr->value.data[ (attr->value.length - value_len) ], value_len) == 0)
174 0 0 if(mycore_strncasecmp(value, &attr->value.data[ (attr->value.length - value_len) ], value_len) == 0)
191 0 0 if(key == NULL || value == NULL)
0 0 if(key == NULL || value == NULL)
194 0 0 while (attr)
196 0 0 if(attr->key.length == key_len) {
197 0 0 if(mycore_strncasecmp(key, attr->key.data, key_len) == 0)
199 0 0 if(attr->value.length >= value_len) {
202 0 0 if(case_sensitive)
204 0 0 while ((i + value_len) <= attr->value.length)
206 0 0 if(mycore_strncmp(value, &attr->value.data[i], value_len) == 0)
213 0 0 while ((i + value_len) <= attr->value.length)
215 0 0 if(mycore_strncasecmp(value, &attr->value.data[i], value_len) == 0)
235 0 0 if(key == NULL || value == NULL)
0 0 if(key == NULL || value == NULL)
238 0 0 while (attr)
240 0 0 if(attr->key.length == key_len) {
241 0 0 if(mycore_strncasecmp(key, attr->key.data, key_len) == 0)
243 0 0 if(attr->value.length == value_len) {
244 0 0 if(case_sensitive) {
245 0 0 if(mycore_strncmp(value, attr->value.data, value_len) == 0)
249 0 0 if(mycore_strncasecmp(value, attr->value.data, value_len) == 0)
253 0 0 else if(attr->value.length > value_len) {
254 0 0 if(case_sensitive) {
255 0 0 if(mycore_strncmp(value, attr->value.data, value_len) == 0) {
256 0 0 if(attr->value.data[value_len] == '-')
261 0 0 if(mycore_strncasecmp(value, attr->value.data, value_len) == 0) {
262 0 0 if(attr->value.data[value_len] == '-')