Branch Coverage

third_party/modest/source/myhtml/tokenizer_script.c
Criterion Covered Total %
branch 0 218 0.0


line true false branch
26 0 0 while (html_offset < html_size)
28 0 0 if(html[html_offset] == '<') {
45 0 0 if(html[html_offset] == '/')
50 0 0 else if(html[html_offset] == '!')
64 0 0 if(html[html_offset] == '-') {
77 0 0 if(html[html_offset] == '-') {
90 0 0 if(myhtml_ascii_char_cmp(html[html_offset])) {
0 0 if(myhtml_ascii_char_cmp(html[html_offset])) {
0 0 if(myhtml_ascii_char_cmp(html[html_offset])) {
0 0 if(myhtml_ascii_char_cmp(html[html_offset])) {
103 0 0 while(html_offset < html_size)
105 0 0 if(myhtml_whithspace(html[html_offset], ==, ||))
0 0 if(myhtml_whithspace(html[html_offset], ==, ||))
0 0 if(myhtml_whithspace(html[html_offset], ==, ||))
0 0 if(myhtml_whithspace(html[html_offset], ==, ||))
0 0 if(myhtml_whithspace(html[html_offset], ==, ||))
107 0 0 if(((html_offset + tree->global_offset) - token_node->str.length) != 6) {
116 0 0 if(mycore_strncasecmp(tem_name, "script", 6) == 0)
119 0 0 if(token_node == NULL) {
138 0 0 else if(html[html_offset] == '/')
140 0 0 if(((html_offset + tree->global_offset) - token_node->str.length) != 6) {
149 0 0 if(mycore_strncasecmp(tem_name, "script", 6) == 0)
152 0 0 if(token_node == NULL) {
171 0 0 else if(html[html_offset] == '>')
173 0 0 if(((html_offset + tree->global_offset) - token_node->str.length) != 6) {
182 0 0 if(mycore_strncasecmp(tem_name, "script", 6) == 0)
185 0 0 if(token_node == NULL) {
199 0 0 if(myhtml_queue_add(tree, html_offset, token_node) != MyHTML_STATUS_OK) {
213 0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
227 0 0 if(html[html_offset] == '-') {
232 0 0 if(html[html_offset] == '<') {
235 0 0 else if(html[html_offset] == '>') {
249 0 0 if(html[html_offset] == '/') {
253 0 0 else if(myhtml_ascii_char_cmp(html[html_offset])) {
0 0 else if(myhtml_ascii_char_cmp(html[html_offset])) {
0 0 else if(myhtml_ascii_char_cmp(html[html_offset])) {
0 0 else if(myhtml_ascii_char_cmp(html[html_offset])) {
266 0 0 if(myhtml_ascii_char_cmp(html[html_offset])) {
0 0 if(myhtml_ascii_char_cmp(html[html_offset])) {
0 0 if(myhtml_ascii_char_cmp(html[html_offset])) {
0 0 if(myhtml_ascii_char_cmp(html[html_offset])) {
279 0 0 while(html_offset < html_size)
281 0 0 if(myhtml_whithspace(html[html_offset], ==, ||))
0 0 if(myhtml_whithspace(html[html_offset], ==, ||))
0 0 if(myhtml_whithspace(html[html_offset], ==, ||))
0 0 if(myhtml_whithspace(html[html_offset], ==, ||))
0 0 if(myhtml_whithspace(html[html_offset], ==, ||))
283 0 0 if(((html_offset + tree->global_offset) - token_node->str.length) != 6) {
292 0 0 if(mycore_strncasecmp(tem_name, "script", 6) == 0)
295 0 0 if(token_node == NULL) {
314 0 0 else if(html[html_offset] == '/')
316 0 0 if(((html_offset + tree->global_offset) - token_node->str.length) != 6) {
325 0 0 if(mycore_strncasecmp(tem_name, "script", 6) == 0)
328 0 0 if(token_node == NULL) {
347 0 0 else if(html[html_offset] == '>')
349 0 0 if(((html_offset + tree->global_offset) - token_node->str.length) != 6) {
358 0 0 if(mycore_strncasecmp(tem_name, "script", 6) == 0)
361 0 0 if(token_node == NULL) {
377 0 0 if(myhtml_queue_add(tree, html_offset, token_node) != MyHTML_STATUS_OK) {
388 0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
402 0 0 while(html_offset < html_size)
404 0 0 if(html[html_offset] == '-')
410 0 0 else if(html[html_offset] == '<')
425 0 0 if(html[html_offset] == '-') {
429 0 0 else if(html[html_offset] == '<') {
432 0 0 else if(html[html_offset] == '\0') {
445 0 0 while(html_offset < html_size)
447 0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
449 0 0 if(((html_offset + tree->global_offset) - token_node->str.length) != 6) {
458 0 0 if(mycore_strncasecmp(tem_name, "script", 6) == 0) {
468 0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
482 0 0 while(html_offset < html_size)
484 0 0 if(html[html_offset] == '-')
490 0 0 else if(html[html_offset] == '<')
505 0 0 if(html[html_offset] == '-')
509 0 0 else if(html[html_offset] == '<')
524 0 0 if(html[html_offset] == '-') {
529 0 0 if(html[html_offset] == '<')
533 0 0 else if(html[html_offset] == '>')
548 0 0 if(html[html_offset] == '/') {
563 0 0 while(html_offset < html_size)
565 0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
0 0 if(myhtml_whithspace(html[html_offset], ==, ||) || html[html_offset] == '/' || html[html_offset] == '>')
567 0 0 if(((html_offset + tree->global_offset) - token_node->str.length) != 6) {
576 0 0 if(mycore_strncasecmp(tem_name, "script", 6) == 0) {
586 0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))
0 0 else if(myhtml_ascii_char_unless_cmp(html[html_offset]))