Branch Coverage

third_party/modest/source/modest/finder/finder.c
Criterion Covered Total %
branch 20 140 14.2


line true false branch
41 0 0 if(finder == NULL)
44 0 0 if(self_destroy) {
56 0 0 if(finder == NULL)
59 0 0 if(modest_finder_init(finder) != MODEST_STATUS_OK)
69 89 0 if(myhtml_collection_check_size(collection, 1, 1024) == MyHTML_STATUS_OK) {
79 0 0 if(*is == false)
109 0 0 if(collection == NULL || base_node == NULL || stylesheet == NULL)
0 0 if(collection == NULL || base_node == NULL || stylesheet == NULL)
0 0 if(collection == NULL || base_node == NULL || stylesheet == NULL)
114 0 0 if(finder == NULL)
119 0 0 if(status != MODEST_STATUS_OK) {
124 0 0 if(*collection == NULL) {
128 0 0 if(status) {
138 0 0 while(selector_list) {
139 0 0 for(size_t i = 0; i < selector_list->entries_list_length; i++) {
154 0 0 if(finder == NULL || selector_list == NULL || scope_node == NULL || collection == NULL)
0 0 if(finder == NULL || selector_list == NULL || scope_node == NULL || collection == NULL)
0 0 if(finder == NULL || selector_list == NULL || scope_node == NULL || collection == NULL)
0 0 if(finder == NULL || selector_list == NULL || scope_node == NULL || collection == NULL)
157 0 0 if(*collection == NULL) {
161 0 0 if(status)
165 0 0 for(size_t i = 0; i < selector_list->entries_list_length; i++) {
179 0 0 if(selector == NULL)
185 0 0 while(node) {
186 0 0 if(node->tag_id != MyHTML_TAG__TEXT && node->tag_id != MyHTML_TAG__COMMENT &&
189 0 0 if(selector->next == NULL) {
190 0 0 if(callback_found)
196 0 0 if(find_node == NULL) {
197 0 0 while(node != base_node && node->next == NULL)
0 0 while(node != base_node && node->next == NULL)
200 0 0 if(node == base_node)
209 0 0 if(node->child)
212 0 0 while(node != base_node && node->next == NULL)
0 0 while(node != base_node && node->next == NULL)
215 0 0 if(node == base_node)
230 0 0 if(selector == NULL)
235 0 0 if(base_node->tag_id != MyHTML_TAG__TEXT && base_node->tag_id != MyHTML_TAG__COMMENT &&
237 0 0 if(selector->next == NULL) {
238 0 0 if(callback_found)
254 0 120 if(selector == NULL)
259 2316 0 while(node) {
262 1169 1147 if(node->tag_id != MyHTML_TAG__TEXT && node->tag_id != MyHTML_TAG__COMMENT &&
265 180 12 if(selector->next == NULL) {
266 180 0 if(callback_found)
272 12 0 if(find_node == NULL) {
273 12 0 while(node != base_node && node->next == NULL)
0 12 while(node != base_node && node->next == NULL)
276 0 12 if(node == base_node)
285 584 1720 if(node->child)
288 2304 120 while(node != base_node && node->next == NULL)
704 1600 while(node != base_node && node->next == NULL)
291 120 1600 if(node == base_node)
306 0 0 if(selector == NULL)
311 0 0 while(node) {
314 0 0 if(node->tag_id != MyHTML_TAG__TEXT && node->tag_id != MyHTML_TAG__COMMENT &&
317 0 0 if(selector->next == NULL) {
318 0 0 if(callback_found)
337 0 0 if(selector == NULL)
342 0 0 while(node) {
343 0 0 if(node->tag_id != MyHTML_TAG__TEXT && node->tag_id != MyHTML_TAG__COMMENT)
0 0 if(node->tag_id != MyHTML_TAG__TEXT && node->tag_id != MyHTML_TAG__COMMENT)
347 0 0 if(modest_finder_static_selector_type_map[selector->type](finder, node, selector, &match_spec)) {
348 0 0 if(selector->next == NULL) {
349 0 0 if(callback_found)
371 0 0 if(selector == NULL)
376 0 0 while(node) {
379 0 0 if(node->tag_id != MyHTML_TAG__TEXT && node->tag_id != MyHTML_TAG__COMMENT &&
382 0 0 if(selector->next == NULL) {
383 0 0 if(callback_found)
402 0 0 if(selector == NULL)