Branch Coverage

blib/lib/HTML/Summary.pm
Criterion Covered Total %
branch 22 32 68.7


line true false branch
225 1 25 if ($self->{'USE_META'} and $summary = $self->_get_summary_from_meta($tree))
252 25 110 if ($tot_length += $_->{'length'}) > $self->{'LENGTH'}
291 0 0 unless defined $option
293 0 0 unless grep {$_ eq $option;} keys %DEFAULTS
296 0 0 if (defined $val)
320 0 25 unless @_ % 2 == 0
340 867 0 unless $self->{'VERBOSE'}
363 30 440 unless $text =~ /\w/
381 1001 338 if ($flag)
384 25 976 if $tag eq 'head'
394 638 338 if ($ELEMENT_SCORES{$tag} or not _has_scoring_element($node))
411 344 294 if ($text =~ /\S/)
465 1 0 if ($node->tag eq 'meta' and defined $node->attr('name') and lc $node->attr('name') eq 'description' and defined $node->attr('content'))
471 0 1 if $summary eq 'content'
479 1 1 defined $summary ? :
504 1874 5482 unless ref $node