Condition Coverage

blib/lib/HTML/WikiConverter.pm
Criterion Covered Total %
condition 53 84 63.1


and 3 conditions

line !l l&&!r l&&r condition
215 24 0 0 $file and $self->slurp
217 0 0 24 $html and $self->wrap_in_html
327 84 14 0 $$rules{'block'} and !$self->elem_search_lineage($node, {'block', 1}) || $self->elem_search_lineage($node, {'line_format', 'blocks'})
332 84 13 1 $$rules{'block'} and $node->parent->look_up('_tag', $node->tag)
97 0 1 $$rules{'block'} and $node->parent->look_up('_tag', $node->tag) and $trim ne 'none'
420 94 0 0 $passthrough_naked_tags{$node->tag} and not $node->all_external_attr_names
422 63 5 26 $self->strip_empty_tags and not $allowedEmptyTag{$node->tag}
68 16 10 $self->strip_empty_tags and not $allowedEmptyTag{$node->tag} and $self->__elem_is_empty($node)
423 64 1 19 $node->tag eq '~text' and $self->escape_entities
424 27 52 5 $self->base_uri and exists $rel2abs{$node->tag}
455 10 0 16 $content && length $content
555 0 0 5 @dialect_specs == 1 && ref $dialect_specs[0] eq 'HASH'
621 30 66 0 $singleton and keys %$rules != 1
625 0 0 0 $$rules{$_} and $self->__rule_error($tag, "'${opt}' cannot be combined with '${_}'")
630 66 30 0 @range and not exists $range{$$rules{$opt}}
769 32 59 0 $self->__rules->{'UNKNOWN'} and not $isKnownTag{$tag}

or 2 conditions

line l !l condition
211 23 1 delete $args{'html'} || ''
212 0 24 delete $args{'file'} || ''
213 1 23 delete $args{'uri'} || ''
299 3 95 $$rules{'trim'} || 'none'
303 3 95 $$rules{'line_format'} || 'none'
342 0 0 $n->tag || ''
372 2 28 $$rules{$k} || ''
464 1 0 $self->encoding || $self->__guess_encoding($res) || 'utf-8'
615 66 30 $$spec{'singleton'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
98 0 5 5 eval "use $dialect_class; 1" or $dialect_class->isa($pkg)
300 3 0 95 $trim eq 'both' or $trim eq 'leading'
301 3 0 95 $trim eq 'both' or $trim eq 'trailing'
327 13 0 1 !$self->elem_search_lineage($node, {'block', 1}) || $self->elem_search_lineage($node, {'line_format', 'blocks'})
628 0 0 0 $$rules{$_} or $self->__rule_error($tag, "'${opt}' must be combined with '${_}'")
741 0 0 0 $dialect eq 'Normalizer' or $dialect eq 'WebApp'