Branch Coverage

lib/HTML/SummaryBasic.pm
Criterion Covered Total %
branch 21 36 58.3


line true false branch
119 0 2 ref $class ? :
121 2 0 ref $_[0] ? :
128 0 2 unless $$self{'PATH'}
140 0 2 if (defined $path)
141 0 0 if (ref $path) { }
149 2 0 if ($$self{'PATH'})
150 0 2 unless $html = $self->_load_file
155 0 2 unless ($p = 'HTML::TokeParser'->new($html))
159 1 1 if ($token = $p->get_tag('h1')) { }
163 0 1 if ($token = $p->get_tag('h2')) { }
169 0 2 unless ($p = 'HTML::TokeParser'->new($html))
173 1 1 if ($token = $p->get_tag('p')) { }
211 3 4 if $i == 2
212 4 3 if (exists $$collect{$name})
231 0 2 if ref $path
233 0 2 if (defined $path) { }
0 2 elsif (not $$self{'PATH'}) { }
240 0 2 unless (open IN, $$self{'PATH'})