Condition Coverage

blib/lib/HTML/Summary.pm
Criterion Covered Total %
condition 20 24 83.3


and 3 conditions

line !l l&&!r l&&r condition
225 24 1 1 $self->{'USE_META'} and $summary = $self->_get_summary_from_meta($tree)
465 20 2 1 $node->tag eq 'meta' and defined $node->attr('name')
22 0 1 $node->tag eq 'meta' and defined $node->attr('name') and lc $node->attr('name') eq 'description'
2 0 1 $node->tag eq 'meta' and defined $node->attr('name') and lc $node->attr('name') eq 'description' and defined $node->attr('content')

or 3 conditions

line l !l&&r !l&&!r condition
361 260 0 210 shift() || $DEFAULT_SCORE
394 458 180 338 $ELEMENT_SCORES{$tag} or not _has_scoring_element($node)
413 260 0 84 $ELEMENT_SCORES{$tag} || $DEFAULT_SCORE
528 30015 338 3972 $has_scoring_element ||= $ELEMENT_SCORES{$tag}