Branch Coverage

third_party/modest/source/mycss/property/parser_background.c
Criterion Covered Total %
branch 0 336 0.0


line true false branch
25 0 0 if(position == NULL)
28 0 0 if(position->one.type == MyCSS_PROPERTY_VALUE__LENGTH ||
0 0 if(position->one.type == MyCSS_PROPERTY_VALUE__LENGTH ||
31 0 0 switch (position->two.type) {
47 0 0 if(position->one.type == MyCSS_PROPERTY_BACKGROUND_POSITION_LEFT ||
0 0 if(position->one.type == MyCSS_PROPERTY_BACKGROUND_POSITION_LEFT ||
60 0 0 if(position->four.type == MyCSS_PROPERTY_VALUE_UNDEF)
68 0 0 if(position->four.type == MyCSS_PROPERTY_VALUE_UNDEF ||
0 0 if(position->four.type == MyCSS_PROPERTY_VALUE_UNDEF ||
69 0 0 position->four.type == MyCSS_PROPERTY_VALUE__LENGTH ||
85 0 0 if(position->three.type == MyCSS_PROPERTY_VALUE_UNDEF)
94 0 0 if(position->three.type == MyCSS_PROPERTY_VALUE_UNDEF ||
0 0 if(position->three.type == MyCSS_PROPERTY_VALUE_UNDEF ||
95 0 0 position->three.type == MyCSS_PROPERTY_VALUE__LENGTH ||
98 0 0 if(position->four.type == MyCSS_PROPERTY_VALUE_UNDEF)
110 0 0 if(position->one.type == MyCSS_PROPERTY_BACKGROUND_POSITION_CENTER)
119 0 0 if(position->three.type == MyCSS_PROPERTY_VALUE_UNDEF)
128 0 0 switch (position->three.type) {
133 0 0 if(position->four.type == MyCSS_PROPERTY_VALUE_UNDEF)
147 0 0 switch (position->three.type) {
152 0 0 if(position->four.type == MyCSS_PROPERTY_VALUE_UNDEF)
168 0 0 if(position->one.type == MyCSS_PROPERTY_BACKGROUND_POSITION_TOP ||
0 0 if(position->one.type == MyCSS_PROPERTY_BACKGROUND_POSITION_TOP ||
181 0 0 if(position->four.type == MyCSS_PROPERTY_VALUE_UNDEF)
189 0 0 if(position->four.type == MyCSS_PROPERTY_VALUE_UNDEF ||
0 0 if(position->four.type == MyCSS_PROPERTY_VALUE_UNDEF ||
190 0 0 position->four.type == MyCSS_PROPERTY_VALUE__LENGTH ||
206 0 0 if(position->three.type == MyCSS_PROPERTY_VALUE_UNDEF)
215 0 0 if(position->three.type == MyCSS_PROPERTY_VALUE_UNDEF ||
0 0 if(position->three.type == MyCSS_PROPERTY_VALUE_UNDEF ||
216 0 0 position->three.type == MyCSS_PROPERTY_VALUE__LENGTH ||
219 0 0 if(position->four.type == MyCSS_PROPERTY_VALUE_UNDEF)
240 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
248 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
251 0 0 if(mycss_property_shared_check_declaration_end(entry, token)) {
257 0 0 if(token->type == MyCSS_TOKEN_TYPE_COMMA) {
260 0 0 if(background->color)
271 0 0 if(background->position == NULL)
274 0 0 if(background->position->value == NULL)
280 0 0 if(position->one.type == 0)
282 0 0 else if(position->two.type == 0)
284 0 0 else if(position->three.type == 0)
286 0 0 else if(position->four.type == 0)
293 0 0 if(value_type == MyCSS_PROPERTY_VALUE__LENGTH)
295 0 0 else if(value_type == MyCSS_PROPERTY_VALUE__PERCENTAGE)
303 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
314 0 0 if(mycss_property_shared_background_size(entry, token, &value, &value_type, &str))
319 0 0 if(value) {
324 0 0 else if(value_type == MyCSS_PROPERTY_BACKGROUND_SIZE_AUTO)
342 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
353 0 0 if(mycss_property_shared_background_size(entry, token, &value, &value_type, &str))
357 0 0 if(background->size->value == NULL)
362 0 0 if(value) {
369 0 0 else if(value_type == MyCSS_PROPERTY_BACKGROUND_SIZE_AUTO)
390 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
393 0 0 if(token->type == MyCSS_TOKEN_TYPE_DELIM && *token->data == '/') {
0 0 if(token->type == MyCSS_TOKEN_TYPE_DELIM && *token->data == '/') {
404 0 0 if(mycss_property_shared_background_position(entry, token, &value, &value_type, &str))
408 0 0 if(mycss_property_parser_background_check_position(entry, background, value, value_type))
420 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
429 0 0 if(mycss_property_shared_background_repeat_two(entry, token, &value_type, &str))
453 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
464 0 0 if(dec_entry->value == NULL)
468 0 0 if(mycss_property_shared_image(entry, token, &value, &value_type, &str, &parser_changed))
472 0 0 if(background->image == NULL)
475 0 0 if(background->image->value == NULL)
481 0 0 if(background->image->value_type == MyCSS_PROPERTY_VALUE_UNDEF)
486 0 0 if(parser_changed) {
497 0 0 if(mycss_property_shared_by_value_type(entry, token, &value_type, MyCSS_PROPERTY_BACKGROUND_IMAGE_NONE, &str))
501 0 0 if(background->image == NULL)
504 0 0 if(background->image->value == NULL)
512 0 0 if(background->image->value_type == MyCSS_PROPERTY_VALUE_UNDEF)
520 0 0 if(mycss_property_shared_background_position(entry, token, &value, &value_type, &str))
524 0 0 if(background->position == NULL)
529 0 0 if(mycss_property_parser_background_check_position(entry, background, value, value_type)) {
538 0 0 if(mycss_property_shared_background_repeat_one(entry, token, &value_type, &str))
542 0 0 if(background->repeat == NULL)
545 0 0 if(background->repeat->value == NULL)
557 0 0 if(mycss_property_shared_background_repeat_two(entry, token, &value_type, &str))
561 0 0 if(background->repeat == NULL)
564 0 0 if(background->repeat->value == NULL)
577 0 0 if(mycss_property_shared_color(entry, token, &value, &value_type, &str, &parser_changed))
581 0 0 if(background->color == NULL)
587 0 0 if(parser_changed) {
599 0 0 if(mycss_property_shared_background_attachment(entry, token, &value_type, &str))
603 0 0 if(background->attachment == NULL)
606 0 0 if(background->attachment->value == NULL)
619 0 0 if(mycss_property_shared_background_clip(entry, token, &value_type, &str))
623 0 0 if(background->clip) {
624 0 0 if(background->origin == NULL)
627 0 0 if(background->origin->value == NULL)
638 0 0 if(background->clip->value == NULL)
659 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
662 0 0 if(mycss_property_shared_check_declaration_end(entry, token)) {
666 0 0 if(token->type == MyCSS_TOKEN_TYPE_COMMA) {
676 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
684 0 0 if(mycss_property_shared_background_attachment(entry, token, &value_type, &str))
686 0 0 if(dec_entry->value == NULL)
696 0 0 if(mycss_property_shared_default(entry, token, &dec_entry->value_type, &str)) {
697 0 0 if(dec_entry->value == NULL)
709 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
712 0 0 if(mycss_property_shared_check_declaration_end(entry, token)) {
716 0 0 if(token->type == MyCSS_TOKEN_TYPE_COMMA) {
726 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
734 0 0 if(mycss_property_shared_background_clip(entry, token, &value_type, &str))
736 0 0 if(dec_entry->value == NULL)
746 0 0 if(mycss_property_shared_default(entry, token, &dec_entry->value_type, &str)) {
747 0 0 if(dec_entry->value == NULL)
759 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
762 0 0 if(mycss_property_shared_check_declaration_end(entry, token)) {
766 0 0 if(token->type == MyCSS_TOKEN_TYPE_COMMA) {
776 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
787 0 0 if(mycss_property_shared_image(entry, token, &value, &value_type, &str, &parser_changed))
789 0 0 if(dec_entry->value == NULL)
795 0 0 if(dec_entry->value_type == MyCSS_PROPERTY_VALUE_UNDEF)
798 0 0 if(parser_changed) {
809 0 0 if(mycss_property_shared_by_value_type(entry, token, &value_type, MyCSS_PROPERTY_BACKGROUND_IMAGE_NONE, &str))
811 0 0 if(dec_entry->value == NULL)
817 0 0 if(dec_entry->value_type == MyCSS_PROPERTY_VALUE_UNDEF)
824 0 0 if(mycss_property_shared_default(entry, token, &dec_entry->value_type, &str)) {
825 0 0 if(dec_entry->value == NULL)
837 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
840 0 0 if(mycss_property_shared_check_declaration_end(entry, token)) {
844 0 0 if(token->type == MyCSS_TOKEN_TYPE_COMMA) {
854 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
862 0 0 if(mycss_property_shared_background_clip(entry, token, &value_type, &str))
864 0 0 if(dec_entry->value == NULL)
874 0 0 if(mycss_property_shared_default(entry, token, &dec_entry->value_type, &str)) {
875 0 0 if(dec_entry->value == NULL)
887 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
896 0 0 if(mycss_property_shared_background_position(entry, token, &value, &value_type, &str))
898 0 0 if(dec_entry->value == NULL)
904 0 0 if(position->one.type == 0)
906 0 0 else if(position->two.type == 0)
908 0 0 else if(position->three.type == 0)
910 0 0 else if(position->four.type == 0)
917 0 0 if(value_type == MyCSS_PROPERTY_VALUE__LENGTH)
919 0 0 else if(value_type == MyCSS_PROPERTY_VALUE__PERCENTAGE)
925 0 0 if(mycss_property_shared_default(entry, token, &dec_entry->value_type, &str)) {
926 0 0 if(dec_entry->value == NULL)
932 0 0 if(mycss_property_parser_background_position_check(dec_entry->value)) {
945 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
948 0 0 if(mycss_property_shared_check_declaration_end(entry, token)) {
952 0 0 if(token->type == MyCSS_TOKEN_TYPE_COMMA) {
962 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
965 0 0 if(mycss_property_shared_check_declaration_end(entry, token)) {
969 0 0 if(token->type == MyCSS_TOKEN_TYPE_COMMA) {
979 0 0 if(mycss_property_shared_background_repeat_two(entry, token, &value_type, &str))
995 0 0 if(dec_entry->value == NULL)
1004 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
1012 0 0 if(mycss_property_shared_background_repeat_one(entry, token, &value_type, &str))
1020 0 0 if(mycss_property_shared_background_repeat_two(entry, token, &value_type, &str))
1028 0 0 if(mycss_property_shared_default(entry, token, &dec_entry->value_type, &str)) {
1029 0 0 if(dec_entry->value == NULL)
1041 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
1044 0 0 if(mycss_property_shared_check_declaration_end(entry, token)) {
1048 0 0 if(token->type == MyCSS_TOKEN_TYPE_COMMA) {
1058 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
1067 0 0 if(mycss_property_shared_background_size(entry, token, &value, &value_type, &str))
1072 0 0 if(value) {
1079 0 0 else if(value_type == MyCSS_PROPERTY_BACKGROUND_SIZE_AUTO)
1097 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
1106 0 0 if(mycss_property_shared_background_size(entry, token, &value, &value_type, &str))
1108 0 0 if(dec_entry->value == NULL)
1113 0 0 if(value) {
1120 0 0 else if(value_type == MyCSS_PROPERTY_BACKGROUND_SIZE_AUTO)
1136 0 0 if(mycss_property_shared_default(entry, token, &dec_entry->value_type, &str)) {
1137 0 0 if(dec_entry->value == NULL)