Branch Coverage

third_party/modest/source/mycss/selectors/function_parser.c
Criterion Covered Total %
branch 4 218 1.8


line true false branch
26 0 0 if(token->type == entry->parser_ending_token) {
27 0 0 if(mycss_entry_parser_list_current_is_local(entry) == false) {
62 0 0 if(mycss_entry_parser_list_current_is_local(entry) &&
0 0 if(mycss_entry_parser_list_current_is_local(entry) &&
83 0 0 if(list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD)
86 0 0 if(list->entries_list_length == 0 || list->entries_list[0].entry == NULL) {
0 0 if(list->entries_list_length == 0 || list->entries_list[0].entry == NULL) {
99 0 0 for(size_t i = 0; i < selectors_list->entries_list_length; i++) {
102 0 0 while(selector) {
103 0 0 if(selector->sub_type == MyCSS_SELECTORS_SUB_TYPE_PSEUDO_CLASS_FUNCTION_MATCHES ||
0 0 if(selector->sub_type == MyCSS_SELECTORS_SUB_TYPE_PSEUDO_CLASS_FUNCTION_MATCHES ||
104 0 0 selector->sub_type == MyCSS_SELECTORS_SUB_TYPE_PSEUDO_CLASS_FUNCTION_NOT ||
105 0 0 selector->sub_type == MyCSS_SELECTORS_SUB_TYPE_PSEUDO_CLASS_FUNCTION_CURRENT ||
108 0 0 if((selectors_list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
129 0 0 if(selectors->specificity && selectors->entry_last && (
0 0 if(selectors->specificity && selectors->entry_last && (
0 0 if(selectors->specificity && selectors->entry_last && (
130 0 0 selectors->entry_last->sub_type == MyCSS_SELECTORS_SUB_TYPE_PSEUDO_CLASS_FUNCTION_MATCHES ||
139 0 0 if(selectors_list == NULL) {
140 0 0 if(selectors->entry_last) {
145 0 0 else if((selectors_list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) && selectors->entry_last) {
0 0 else if((selectors_list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) && selectors->entry_last) {
149 0 0 if(token->type == entry->parser_ending_token) {
154 0 0 if(selectors_list)
157 0 0 if(selectors->entry_last)
171 0 0 for(size_t i = 0; i < selectors_list->entries_list_length; i++) {
174 0 0 while(selector) {
175 0 0 if(selector->type == MyCSS_SELECTORS_TYPE_PSEUDO_ELEMENT) {
176 0 0 if((selectors_list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
200 0 0 if(selectors_list == NULL) {
201 0 0 if(selectors->entry_last) {
206 0 0 else if((selectors_list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) && selectors->entry_last) {
0 0 else if((selectors_list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) && selectors->entry_last) {
210 0 0 if(token->type == entry->parser_ending_token) {
215 0 0 if(selectors_list)
218 0 0 if(selectors->entry_last)
232 0 0 for(size_t i = 0; i < selectors_list->entries_list_length; i++) {
235 0 0 while(selector) {
236 0 0 if(selector->type == MyCSS_SELECTORS_TYPE_PSEUDO_ELEMENT) {
237 0 0 if((selectors_list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
261 0 0 if(selectors_list == NULL) {
262 0 0 if(selectors->entry_last) {
267 0 0 else if((selectors_list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) && selectors->entry_last) {
0 0 else if((selectors_list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) && selectors->entry_last) {
271 0 0 if(token->type == entry->parser_ending_token) {
276 0 0 if(selectors_list)
279 0 0 if(selectors->entry_last)
296 0 1 if(mycss_selector_value_an_plus_b(selector->value)->is_broken)
298 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
314 0 1 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) {
317 0 1 else if(token->type == MyCSS_TOKEN_TYPE_IDENT) {
326 0 0 if(mycore_strcasecmp(str.data, "of") != 0) {
327 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
353 1 0 else if(token->type == entry->parser_ending_token) {
361 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
373 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) {
385 0 0 if(selectors_list == NULL) {
386 0 0 if(selectors->entry_last) {
391 0 0 else if((selectors_list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) && selectors->entry_last) {
0 0 else if((selectors_list->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) && selectors->entry_last) {
395 0 0 if(token->type == entry->parser_ending_token) {
400 0 0 if(selectors_list)
403 0 0 if(selectors->entry_last)
420 0 0 if(mycss_selector_value_an_plus_b(selector->value)->is_broken)
422 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
438 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) {
444 0 0 if(token->type == entry->parser_ending_token) {
449 0 0 if((selectors->entry_last->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
463 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) {
466 0 0 else if(token->type == MyCSS_TOKEN_TYPE_IDENT) {
474 0 0 if(mycore_strcasecmp(str.data ,"active") == 0) {
477 0 0 else if(mycore_strcasecmp(str.data ,"valid") == 0) {
480 0 0 else if(mycore_strcasecmp(str.data ,"invalid") == 0) {
484 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
494 0 0 else if(token->type == entry->parser_ending_token) {
514 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
526 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) {
529 0 0 else if(token->type == MyCSS_TOKEN_TYPE_COLUMN) {
532 0 0 else if(token->type == entry->parser_ending_token) {
540 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
552 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) {
555 0 0 else if(token->type == MyCSS_TOKEN_TYPE_IDENT) {
558 0 0 else if(token->type == entry->parser_ending_token) {
561 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
570 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
585 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) {
588 0 0 else if(token->type == MyCSS_TOKEN_TYPE_IDENT) {
596 0 0 else if(token->type == entry->parser_ending_token) {
599 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
609 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
621 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) {
624 0 0 else if(token->type == entry->parser_ending_token) {
630 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
645 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) {
648 0 0 else if(token->type == MyCSS_TOKEN_TYPE_IDENT ||
0 0 else if(token->type == MyCSS_TOKEN_TYPE_IDENT ||
654 0 0 if(selector->value) {
657 0 0 while(lang->next)
672 0 0 else if(token->type == entry->parser_ending_token) {
675 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
685 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
697 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) {
700 0 0 else if(token->type == MyCSS_TOKEN_TYPE_COMMA) {
703 0 0 else if(token->type == entry->parser_ending_token) {
711 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)
723 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE) {
726 0 0 else if(token->type == MyCSS_TOKEN_TYPE_IDENT ||
0 0 else if(token->type == MyCSS_TOKEN_TYPE_IDENT ||
736 0 0 if((selector->flags & MyCSS_SELECTORS_FLAGS_SELECTOR_BAD) == 0)