Branch Coverage

third_party/modest/source/mycss/tokenizer_global.c
Criterion Covered Total %
branch 31 254 12.2


line true false branch
31 1 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
43 0 2 if(css[css_offset] == '%')
50 0 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
55 0 2 else if(css[css_offset] == '-') {
60 0 2 else if(css[css_offset] == '\\') {
65 1 1 else if(mycss_begin_chars_state_map[ (const unsigned char)(css[css_offset]) ] == MyCSS_TOKENIZER_STATE_NAME_START_CODE_POINT) {
78 1 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
88 0 0 if(mycss_begin_chars_state_map[ (const unsigned char)(css[css_offset]) ] == MyCSS_TOKENIZER_STATE_NAME_START_CODE_POINT) {
96 0 0 else if(css[css_offset] == '\\') {
105 0 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
116 0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
120 0 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
139 0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
143 0 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
166 2 0 while(css_offset < css_size)
168 1 1 if(css[css_offset] < '0' || css[css_offset] > '9')
1 0 if(css[css_offset] < '0' || css[css_offset] > '9')
170 0 2 if(css[css_offset] == '.') {
176 2 0 else if(css[css_offset] == 'E' || css[css_offset] == 'e') {
0 2 else if(css[css_offset] == 'E' || css[css_offset] == 'e') {
198 0 0 if(css[css_offset] >= '0' && css[css_offset] <= '9') {
0 0 if(css[css_offset] >= '0' && css[css_offset] <= '9') {
212 0 0 while(css_offset < css_size)
214 0 0 if(css[css_offset] < '0' || css[css_offset] > '9')
0 0 if(css[css_offset] < '0' || css[css_offset] > '9')
216 0 0 if(css[css_offset] == 'E' || css[css_offset] == 'e') {
0 0 if(css[css_offset] == 'E' || css[css_offset] == 'e') {
237 0 0 if(css[css_offset] == '+' || css[css_offset] == '-') {
0 0 if(css[css_offset] == '+' || css[css_offset] == '-') {
241 0 0 else if(css[css_offset] >= '0' && css[css_offset] <= '9') {
0 0 else if(css[css_offset] >= '0' && css[css_offset] <= '9') {
255 0 0 if(css[css_offset] >= '0' && css[css_offset] <= '9') {
0 0 if(css[css_offset] >= '0' && css[css_offset] <= '9') {
269 0 0 while(css_offset < css_size)
271 0 0 if(css[css_offset] < '0' || css[css_offset] > '9')
0 0 if(css[css_offset] < '0' || css[css_offset] > '9')
290 0 0 while(css_offset < css_size)
292 0 0 if(css[css_offset] != '\r' && css[css_offset] != 0x0C &&
0 0 if(css[css_offset] != '\r' && css[css_offset] != 0x0C &&
0 0 if(css[css_offset] != '\r' && css[css_offset] != 0x0C &&
293 0 0 css[css_offset] != '\n' && css[css_offset] != '\t' && css[css_offset] != ' ')
0 0 css[css_offset] != '\n' && css[css_offset] != '\t' && css[css_offset] != ' ')
295 0 0 if(css[css_offset] == '"') {
304 0 0 else if(css[css_offset] == '\'') {
328 0 0 if(token->type == MyCSS_TOKEN_TYPE_BAD_STRING)
340 0 0 while(css_offset < css_size)
342 0 0 if(css[css_offset] == ')') {
346 0 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
353 0 0 else if(css[css_offset] == '\r' || css[css_offset] == 0x0C ||
0 0 else if(css[css_offset] == '\r' || css[css_offset] == 0x0C ||
0 0 else if(css[css_offset] == '\r' || css[css_offset] == 0x0C ||
354 0 0 css[css_offset] == '\n' || css[css_offset] == '\t' || css[css_offset] == ' ')
0 0 css[css_offset] == '\n' || css[css_offset] == '\t' || css[css_offset] == ' ')
363 0 0 else if(css[css_offset] == '"' || css[css_offset] == '\'' || css[css_offset] == '(' ||
0 0 else if(css[css_offset] == '"' || css[css_offset] == '\'' || css[css_offset] == '(' ||
0 0 else if(css[css_offset] == '"' || css[css_offset] == '\'' || css[css_offset] == '(' ||
0 0 else if(css[css_offset] == '"' || css[css_offset] == '\'' || css[css_offset] == '(' ||
365 0 0 u_css[css_offset] == 0x00 || u_css[css_offset] == 0x08 || u_css[css_offset] == 0x0B ||
0 0 u_css[css_offset] == 0x00 || u_css[css_offset] == 0x08 || u_css[css_offset] == 0x0B ||
0 0 u_css[css_offset] == 0x00 || u_css[css_offset] == 0x08 || u_css[css_offset] == 0x0B ||
366 0 0 u_css[css_offset] == 0x7F || (u_css[css_offset] >= 0x0E && u_css[css_offset] <= 0x1F))
0 0 u_css[css_offset] == 0x7F || (u_css[css_offset] >= 0x0E && u_css[css_offset] <= 0x1F))
373 0 0 else if(css[css_offset] == '\\') {
387 0 0 while(css_offset < css_size)
389 0 0 if(css[css_offset] != '\r' && css[css_offset] != 0x0C &&
0 0 if(css[css_offset] != '\r' && css[css_offset] != 0x0C &&
0 0 if(css[css_offset] != '\r' && css[css_offset] != 0x0C &&
390 0 0 css[css_offset] != '\n' && css[css_offset] != '\t' && css[css_offset] != ' ')
0 0 css[css_offset] != '\n' && css[css_offset] != '\t' && css[css_offset] != ' ')
392 0 0 if(css[css_offset] == ')') {
395 0 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
415 0 0 if(css[css_offset] != '\n' && css[css_offset] != '\r' && css[css_offset] != 0x0C) {
0 0 if(css[css_offset] != '\n' && css[css_offset] != '\r' && css[css_offset] != 0x0C) {
0 0 if(css[css_offset] != '\n' && css[css_offset] != '\r' && css[css_offset] != 0x0C) {
427 0 0 while(css_offset < css_size)
429 0 0 if(css[css_offset] == ')') {
433 0 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
457 63 0 while(css_offset < css_size)
459 7 56 if(css[css_offset] == '"')
469 56 0 else if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
56 0 else if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
0 56 else if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
476 0 56 else if(css[css_offset] == '\\') {
491 0 0 if(css[css_offset] == '\r')
502 0 0 if(css[css_offset] == '\n')
512 0 0 while(css_offset < css_size)
514 0 0 if(css[css_offset] == '\'')
525 0 0 else if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
0 0 else if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
0 0 else if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
532 0 0 else if(css[css_offset] == '\\') {
547 0 0 if(css[css_offset] == '\r')
558 0 0 if(css[css_offset] == '\n')
572 1 35 if(css[css_offset] == '(')
574 0 1 if(mycss_tokenizer_token_strcasecmp(entry, token, "url", 3) == 0) {
586 1 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
594 35 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
610 492 109 while(css_offset < css_size)
612 37 455 if(mycss_chars_name_code_point_map[ u_css[css_offset] ] == 0xff)
614 0 37 if(css[css_offset] == '\\') {
617 0 0 if(css_offset >= css_size) {
622 0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
647 0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
0 0 if(css[css_offset] == '\n' || css[css_offset] == '\r' || css[css_offset] == 0x0C) {
677 0 0 while(css_offset < css_size)
679 0 0 if(mycore_string_chars_hex_map[ u_css[css_offset] ] != 0xff)
683 0 0 if(entry->help_counter == 6) {
692 0 0 else if(css[css_offset] == '?') {
696 0 0 else if(css[css_offset] == '-') {
708 0 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
722 0 0 while(css_offset < css_size)
724 0 0 if(css[css_offset] == '?') {
727 0 0 if(entry->help_counter == 6) {
733 0 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
743 0 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);
759 0 0 while(css_offset < css_size)
761 0 0 if(mycore_string_chars_hex_map[ u_css[css_offset] ] != 0xff)
765 0 0 if(entry->help_counter == 6) {
773 0 0 if(entry->help_counter == 0) {
783 0 0 MyCSS_TOKEN_READY_CALLBACK_FUNCTION(entry, token);