Branch Coverage

_deHTMLxs.c
Criterion Covered Total %
branch 55 78 70.5


line true false branch
59 0 8 if (*body != '<')
64 8 0 if ((*body == '!') || (*body == '/'))
0 8 if ((*body == '!') || (*body == '/'))
67 0 8 while (isspace((unsigned char) *body))
70 32 8 while (isalpha((unsigned char) *body)) {
71 0 32 if(--tagnamelen == 0)
80 0 8 if (cch == 0)
83 47 0 while ((*body != '\0') && (*body != '>'))
39 8 while ((*body != '\0') && (*body != '>'))
86 0 8 if (*body != '>')
103 8 0 if ((body == NULL) || (*body == '\0'))
0 8 if ((body == NULL) || (*body == '\0'))
107 8 0 for (body = strchr(body, '<'); body != NULL; body = strchr(body + 1, '<')) {
112 0 8 if (pTagEnd == NULL)
116 11 0 for(ppCurTag = ppHtmlSubsetLowerCase; *ppCurTag != NULL; ppCurTag++) {
118 8 3 if((*pCurTag == *tagname) && (strcmp(tagname, pCurTag) == 0))
8 0 if((*pCurTag == *tagname) && (strcmp(tagname, pCurTag) == 0))
137 29 33 if (!isalpha(*s))
140 194 0 for (tags = (CM_PREPROC_html_tags_t*)&CM_PREPROC_html_tags; tags->name && !c; tags++) {
161 33 for (tags = (CM_PREPROC_html_tags_t*)&CM_PREPROC_html_tags; tags->name && !c; tags++) {
143 0 161 if (tlen > offset)
146 33 128 if (!strncmp(s, tags->name, tlen)) {
152 0 33 if (!c)
154 33 0 else if (*s == ';')
167 0 8 if ((t = text) == NULL)
170 8 0 if (!s || !*s)
0 8 if (!s || !*s)
175 31496 8 while ((c = *s++)) {
176 467 31029 if (c == quote) {
178 37 430 if (c == '-' && last != '-')
5 32 if (c == '-' && last != '-')
185 21137 9892 } else if (!quote) {
191 5 1204 if (*s == '!') {
194 1204 0 } else if (*s)
200 1206 0 if (tag)
205 10 74 if (sgml && last == '-')
5 5 if (sgml && last == '-')
213 430 11 if (tag)
225 8554 9671 if (!tag)