Branch Coverage

third_party/modest/source/mycss/an_plus_b.c
Criterion Covered Total %
branch 12 92 13.0


line true false branch
41 0 74 if(anb == NULL)
44 74 0 if(self_destroy) {
70 0 0 if(anb_entry == NULL)
73 0 0 if(self_destroy) {
98 1 0 if(anb_entry->a != 0) {
101 1 0 if(len > 0)
107 1 0 if(anb_entry->b != 0) {
108 1 0 if(anb_entry->b >= 0)
113 1 0 if(len > 0)
143 0 0 if(mycore_strncasecmp(str.data, "-n-", 3) == 0)
147 0 0 if(str.length == 3) {
157 0 0 if(mycss_convert_data_to_integer(&str.data[2], len, &anb_entry->b) != len) {
165 0 0 else if(mycore_strncasecmp(str.data, "-n", 2) == 0) {
170 0 0 if(str.length == 2) {
178 0 0 if(mycss_convert_data_to_integer(&str.data[2], len, &anb_entry->b) != len) {
185 0 0 else if(mycore_strncasecmp(str.data, "n-", 2) == 0)
189 0 0 if(str.length == 2) {
197 0 0 if(mycss_convert_data_to_integer(&str.data[1], len, &anb_entry->b) != len) {
205 0 0 else if(mycore_strncasecmp(str.data, "n", 1) == 0)
209 0 0 if(str.length == 1) {
217 0 0 if(mycss_convert_data_to_integer(&str.data[1], len, &anb_entry->b) != len) {
225 0 0 else if(mycore_strcasecmp(str.data, "even") == 0) {
232 0 0 else if(mycore_strcasecmp(str.data, "odd") == 0) {
251 0 0 if(*token->data == '+') {
281 0 1 if(mycore_strncasecmp(&str.data[consumed_len], "n-", 2) == 0)
285 0 0 if(rem == 2) {
293 0 0 if(mycss_convert_data_to_integer(&str.data[(consumed_len + 1)], rem, &anb_entry->b) != rem) {
301 1 0 else if(mycore_strncasecmp(&str.data[consumed_len], "n", 1) == 0)
305 1 0 if(rem == 0) {
312 0 0 if(mycss_convert_data_to_integer(&str.data[(consumed_len + 1)], rem, &anb_entry->b) != rem) {
345 0 0 switch (token->type) {
350 0 0 if(mycore_strncasecmp(str.data, "n-", 2) == 0)
352 0 0 if(str.length == 2) {
360 0 0 if(mycss_convert_data_to_integer(&str.data[1], len, &anb_entry->b) != len) {
368 0 0 else if(mycore_strncasecmp(str.data, "n", 1) == 0) {
395 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
400 0 0 if(token->type == MyCSS_TOKEN_TYPE_NUMBER) {
402 0 0 if(mycore_string_chars_num_map[ (const unsigned char)(*token->data) ] != 0xff)
434 0 1 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
441 0 0 if(*token->data == '+') {
444 0 0 else if(*token->data == '-') {
455 0 1 if(*token->data == '+' || *token->data == '-')
0 0 if(*token->data == '+' || *token->data == '-')
485 0 0 if(token->type == MyCSS_TOKEN_TYPE_WHITESPACE)
490 0 0 if(token->type == MyCSS_TOKEN_TYPE_NUMBER) {
492 0 0 if(mycore_string_chars_num_map[ (const unsigned char)(*token->data) ] != 0xff)