Branch Coverage

third_party/modest/source/modest/finder/pseudo_class.c
Criterion Covered Total %
branch 0 344 0.0


line true false branch
34 0 0 for(size_t i = 0; i < list->entries_list_length; i++)
39 0 0 if(i_found == true)
62 0 0 for(size_t i = 0; i < list->entries_list_length; i++)
68 0 0 if(sel_entry->combinator == MyCSS_SELECTORS_COMBINATOR_UNDEF)
73 0 0 if(i_found == true)
82 0 0 if(base_node == NULL)
86 0 0 if(text_node == NULL)
90 0 0 if(text == NULL)
94 0 0 for(size_t i = 0; i < list->entries_list_length; i++) {
97 0 0 if(data == NULL) {
102 0 0 if(sel_entry->key->data){
107 0 0 if(new_data == NULL) {
117 0 0 while(next) {
118 0 0 if(next->key->data) {
120 0 0 const char *whitespace = (prev > 0) ? " " : "";
125 0 0 if(new_data == NULL) {
136 0 0 if(strstr(text, data) != NULL) {
156 0 0 for(size_t i = 0; i < list->entries_list_length; i++)
161 0 0 if(i_found == true) {
164 0 0 if(is_true == false)
179 0 0 for(size_t i = 0; i < list->entries_list_length; i++)
184 0 0 if(i_found == true)
191 0 0 if(work_spec.a)
193 0 0 else if(work_spec.b)
195 0 0 else if(work_spec.c)
203 0 0 for(size_t i = 0; i < list->entries_list_length; i++)
208 0 0 if(*i_found) {
227 0 0 if(selector->value == NULL)
235 0 0 if(anb->of) {
239 0 0 if(spec->b)
242 0 0 if(modest_finder_selector_sub_type_pseudo_class_function_nth_child_check_selectors(finder, &i_found, node, anb->of, spec) == false)
248 0 0 while(node)
250 0 0 for(size_t i = 0; i < anb->of->entries_list_length; i++)
255 0 0 if(i_found) {
265 0 0 while(node) {
266 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)
273 0 0 if(anb->a == 0) {
274 0 0 if(anb->b == node_pos)
280 0 0 if(n >= 0.0f && (n - (double)((long)(n))) == 0.0f)
0 0 if(n >= 0.0f && (n - (double)((long)(n))) == 0.0f)
294 0 0 if(selector->value == NULL)
302 0 0 if(anb->of) {
306 0 0 if(spec->b)
309 0 0 if(modest_finder_selector_sub_type_pseudo_class_function_nth_child_check_selectors(finder, &i_found, node, anb->of, spec) == false)
312 0 0 while(node)
314 0 0 for(size_t i = 0; i < anb->of->entries_list_length; i++)
319 0 0 if(i_found == true) {
329 0 0 while(node) {
330 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)
337 0 0 if(anb->a == 0) {
338 0 0 if(anb->b == node_pos)
344 0 0 if(n >= 0.0f && (n - (double)((long)(n))) == 0.0f)
0 0 if(n >= 0.0f && (n - (double)((long)(n))) == 0.0f)
358 0 0 if(selector->value == NULL)
366 0 0 while(node) {
367 0 0 if(node->tag_id == base_node->tag_id && node->ns == base_node->ns) {
0 0 if(node->tag_id == base_node->tag_id && node->ns == base_node->ns) {
374 0 0 if(anb->a == 0) {
375 0 0 if(anb->b != node_pos)
381 0 0 if(n < 0.0f || (n - (double)((long)(n))) != 0.0f)
0 0 if(n < 0.0f || (n - (double)((long)(n))) != 0.0f)
390 0 0 if(selector->value == NULL)
398 0 0 while(node) {
399 0 0 if(node->tag_id == base_node->tag_id && node->ns == base_node->ns) {
0 0 if(node->tag_id == base_node->tag_id && node->ns == base_node->ns) {
406 0 0 if(anb->a == 0) {
407 0 0 if(anb->b != node_pos)
413 0 0 if(n < 0.0f || (n - (double)((long)(n))) != 0.0f)
0 0 if(n < 0.0f || (n - (double)((long)(n))) != 0.0f)
428 0 0 if (base_node->token)
435 0 0 if(base_node->tag_id == MyHTML_TAG_A ||
0 0 if(base_node->tag_id == MyHTML_TAG_A ||
436 0 0 base_node->tag_id == MyHTML_TAG_AREA ||
439 0 0 if(base_node->token)
450 0 0 while(node) {
451 0 0 if(node->tag_id != MyHTML_TAG__COMMENT) {
452 0 0 if(node->tag_id != MyHTML_TAG__TEXT)
455 0 0 if(node->token) {
459 0 0 for(size_t i = 0; i < len; i++) {
460 0 0 if(data[i] != ' ' && data[i] != '\t' && data[i] != '\n' && data[i] != '\r')
0 0 if(data[i] != ' ' && data[i] != '\t' && data[i] != '\n' && data[i] != '\r')
0 0 if(data[i] != ' ' && data[i] != '\t' && data[i] != '\n' && data[i] != '\r')
0 0 if(data[i] != ' ' && data[i] != '\t' && data[i] != '\n' && data[i] != '\r')
466 0 0 if(node->child)
469 0 0 while(node != base_node && node->next == NULL)
0 0 while(node != base_node && node->next == NULL)
472 0 0 if(node == base_node)
484 0 0 if(base_node->tag_id == MyHTML_TAG_INPUT || base_node->tag_id == MyHTML_TAG_MENUITEM)
0 0 if(base_node->tag_id == MyHTML_TAG_INPUT || base_node->tag_id == MyHTML_TAG_MENUITEM)
488 0 0 while (attr)
490 0 0 if(attr->key.length == 4) {
491 0 0 if(mycore_strncasecmp("type", attr->key.data, 4) == 0)
493 0 0 if(attr->value.length == 8) {
494 0 0 if(mycore_strncasecmp("checkbox", attr->value.data, 8) == 0) {
498 0 0 else if(attr->value.length == 5) {
499 0 0 if(mycore_strncasecmp("radio", attr->value.data, 5) == 0) {
511 0 0 else if(base_node->tag_id == MyHTML_TAG_OPTION)
515 0 0 else if(base_node->token && base_node->tag_id >= MyHTML_TAG_LAST_ENTRY)
0 0 else if(base_node->token && base_node->tag_id >= MyHTML_TAG_LAST_ENTRY)
534 0 0 if(base_node->token == NULL)
537 0 0 if(base_node->tag_id == MyHTML_TAG_BUTTON ||
0 0 if(base_node->tag_id == MyHTML_TAG_BUTTON ||
538 0 0 base_node->tag_id == MyHTML_TAG_INPUT ||
539 0 0 base_node->tag_id == MyHTML_TAG_SELECT ||
542 0 0 if(modest_finder_match_attribute_only_key(base_node->token->attr_first, "disabled", 8))
547 0 0 while(node) {
549 0 0 if(node->tag_id == MyHTML_TAG_FIELDSET) {
550 0 0 if(node->child && node->child->tag_id != MyHTML_TAG_LEGEND) {
0 0 if(node->child && node->child->tag_id != MyHTML_TAG_LEGEND) {
551 0 0 if(node->token && modest_finder_match_attribute_only_key(node->token->attr_first, "disabled", 8))
0 0 if(node->token && modest_finder_match_attribute_only_key(node->token->attr_first, "disabled", 8))
563 0 0 if(base_node->tag_id == MyHTML_TAG_OPTION) {
564 0 0 if(modest_finder_match_attribute_only_key(base_node->token->attr_first, "disabled", 8))
569 0 0 while(node) {
570 0 0 if(node->tag_id == MyHTML_TAG_OPTGROUP) {
571 0 0 if(node->token)
583 0 0 if(base_node->tag_id == MyHTML_TAG_OPTGROUP ||
0 0 if(base_node->tag_id == MyHTML_TAG_OPTGROUP ||
588 0 0 if(base_node->tag_id == MyHTML_TAG_FIELDSET)
590 0 0 if(modest_finder_match_attribute_only_key(base_node->token->attr_first, "disabled", 8))
595 0 0 while(node) {
597 0 0 if(node->tag_id == MyHTML_TAG_FIELDSET) {
598 0 0 if(node->child && node->child->tag_id != MyHTML_TAG_LEGEND) {
0 0 if(node->child && node->child->tag_id != MyHTML_TAG_LEGEND) {
599 0 0 if(node->token && modest_finder_match_attribute_only_key(node->token->attr_first, "disabled", 8))
0 0 if(node->token && modest_finder_match_attribute_only_key(node->token->attr_first, "disabled", 8))
611 0 0 if(base_node->token && base_node->tag_id >= MyHTML_TAG_LAST_ENTRY)
0 0 if(base_node->token && base_node->tag_id >= MyHTML_TAG_LAST_ENTRY)
613 0 0 if (modest_finder_match_attribute_only_key(base_node->token->attr_first, "disabled", 8))
630 0 0 while(node) {
631 0 0 if(node->tag_id != MyHTML_TAG__COMMENT)
634 0 0 if(node->child)
637 0 0 while(node != base_node && node->next == NULL)
0 0 while(node != base_node && node->next == NULL)
640 0 0 if(node == base_node)
659 0 0 while(node) {
660 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)
673 0 0 while(node) {
674 0 0 if(node->tag_id == base_node->tag_id && node->ns == base_node->ns)
0 0 if(node->tag_id == base_node->tag_id && node->ns == base_node->ns)
685 0 0 if (base_node->token)
697 0 0 if (base_node->token)
721 0 0 while(node) {
722 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)
735 0 0 while(node) {
736 0 0 if(node->tag_id == base_node->tag_id && node->ns == base_node->ns)
0 0 if(node->tag_id == base_node->tag_id && node->ns == base_node->ns)
747 0 0 if(base_node->tag_id == MyHTML_TAG_A ||
0 0 if(base_node->tag_id == MyHTML_TAG_A ||
748 0 0 base_node->tag_id == MyHTML_TAG_AREA ||
751 0 0 if(base_node->token)
774 0 0 if(base_node->tag_id == MyHTML_TAG_INPUT ||
0 0 if(base_node->tag_id == MyHTML_TAG_INPUT ||
775 0 0 base_node->tag_id == MyHTML_TAG_SELECT ||
778 0 0 if(base_node->token)
799 0 0 if(base_node->tag_id == MyHTML_TAG_INPUT ||
0 0 if(base_node->tag_id == MyHTML_TAG_INPUT ||
802 0 0 if(base_node->token)
811 0 0 if(modest_finder_selector_sub_type_pseudo_class_read_write(finder, base_node, selector, spec))
819 0 0 if(base_node->tag_id == MyHTML_TAG_INPUT ||
0 0 if(base_node->tag_id == MyHTML_TAG_INPUT ||
822 0 0 if(modest_finder_match_attribute_only_key(base_node->token->attr_first, "readonly", 8))
833 0 0 if(base_node->tag_id == MyHTML_TAG_INPUT ||
0 0 if(base_node->tag_id == MyHTML_TAG_INPUT ||
834 0 0 base_node->tag_id == MyHTML_TAG_SELECT ||
837 0 0 if(base_node->token)
846 0 0 if(base_node->tree && base_node->tree->node_html == base_node)
0 0 if(base_node->tree && base_node->tree->node_html == base_node)