Branch Coverage

third_party/modest/source/myhtml/parser.c
Criterion Covered Total %
branch 33 74 44.5


line true false branch
27 1685 0 if((((myhtml_tree_t*)(qnode->context))->parse_flags & MyHTML_TREE_PARSE_FLAGS_WITHOUT_BUILD_TREE) == 0) {
28 603 1685 while(myhtml_rules_tree_dispatcher(qnode->context, qnode->args)){}
38 186 0 if((relative_begin + length) <= buffer->size) {
39 186 0 if(tree->encoding == MyENCODING_UTF_8)
51 0 0 while(buffer) {
52 0 0 if((relative_begin + length) > buffer->size)
59 0 0 if(relative_end > 0) {
60 0 0 if(tree->encoding == MyENCODING_UTF_8)
74 0 0 if(length > 0) {
75 0 0 if(tree->encoding == MyENCODING_UTF_8)
96 61 0 if((relative_begin + length) <= buffer->size) {
97 61 0 if(tree->encoding == MyENCODING_UTF_8)
109 0 0 while(buffer) {
110 0 0 if((relative_begin + length) > buffer->size)
117 0 0 if(relative_end > 0) {
118 0 0 if(tree->encoding == MyENCODING_UTF_8)
133 0 0 if(length > 0) {
134 0 0 if(tree->encoding == MyENCODING_UTF_8)
155 883 1 if((relative_begin + length) <= buffer->size) {
163 2 0 while(buffer) {
164 1 1 if((relative_begin + length) > buffer->size)
204 0 1685 if((tree->parse_flags & MyHTML_TREE_PARSE_FLAGS_WITHOUT_PROCESS_TOKEN) &&
205 0 0 (tree->parse_flags & 2))
207 0 0 if(tree->callback_before_token)
212 0 0 if(tree->callback_after_token)
220 22 1663 if(tree->myhtml->thread_batch)
226 0 1685 if(tree->callback_before_token)
229 993 692 if(token->tag_id == MyHTML_TAG__TEXT ||
230 61 932 token->tag_id == MyHTML_TAG__COMMENT)
242 692 61 if(token->type & MyHTML_TOKEN_TYPE_DATA) {
247 61 0 else if(token->type & MyHTML_TOKEN_TYPE_RCDATA || token->type & MyHTML_TOKEN_TYPE_CDATA) {
0 61 else if(token->type & MyHTML_TOKEN_TYPE_RCDATA || token->type & MyHTML_TOKEN_TYPE_CDATA) {
253 150 782 else if(token->attr_first)
260 238 150 while(attr)
262 186 52 if(attr->raw_key_length) {
272 192 46 if(attr->raw_value_length) {
295 0 1685 if(tree->callback_after_token)