Branch Coverage

blib/lib/HTML/TableParser/Table.pm
Criterion Covered Total %
branch 87 98 88.7


line true false branch
41 122 93 if (defined $ids) { }
65 104 18 if $self->{'process'}
93 1 121 if $skip
95 28 93 if ($req)
106 62 31 if (grep {@{$_->{'cols'};};} @{$$self{'reqs'};})
118 0 31 if $skip
120 14 17 if ($req)
140 1 185 if exists $excluded->{$req}
144 30 155 if $req->{'match'} and not $req->{'MultiMatch'}
149 6 77 if ('CODE' eq ref $cmp->{'match'}) { }
3 74 elsif ('Regexp' eq ref $cmp->{'match'}) { }
151 4 2 unless $cmp->{'match'}->($id, $oids)
157 2 1 unless $id =~ /$cmp->{'match'}/
163 32 42 unless $id eq $cmp->{'match'}
170 1 44 if ($cmp->{'exclude'})
194 8 55 if $req->{'match'} and not $req->{'MultiMatch'}
202 1 53 if ('CODE' eq ref $cmp->{'match'}) { }
17 36 elsif ('Regexp' eq ref $cmp->{'match'}) { }
204 0 1 unless $cmp->{'match'}->($id, $oids, \@fix_cols)
210 1 16 unless grep {/$cmp->{'match'}/;} @fix_cols
216 20 16 unless grep {$_ eq $cmp->{'match'};} @fix_cols
223 0 33 if $cmp->{'exclude'}
248 0 62 if $skip
250 33 29 if ($req)
262 0 29 if $skip
264 1 28 if ($req)
279 7 69 if ($req->{'class'}) { }
6 63 elsif ($req->{'obj'}) { }
304 734 2799 unless defined $self->{'req'} and exists $self->{'req'}{$method}
309 2128 671 if ('CODE' eq ref $call) { }
319 671 0 if defined $self->{'obj'}
352 37772 11985 if defined $self->{'col'}
355 0 49757 unless (defined $self->{'row'})
371 104 48023 if not $self->{'in_hdr'} and $self->{'prev_hdr'}
383 614 49757 unless defined $self->{'col'}
385 49757 0 defined $self->{'text'} ? :
410 718 3382 unless defined $self->{'row'}
417 167 3215 if ($self->{'in_hdr'}) { }
471 0 3215 if not $self->{'in_hdr'} and $self->{'prev_hdr'}
476 3215 167 unless $self->{'in_hdr'}
488 104 104 unless $self->{'hdr'}
490 2146 0 if defined $_
494 42 62 if (defined $self->{'req'}) { }
502 34 28 if ($self->match_hdr(@header)) { }
530 104 111 if ($self->{'process'})
552 0 49998 if $req->{'DecodeNBSP'}
555 6529 43469 if $req->{'Chomp'}
558 40410 9588 if $req->{'Decode'}
561 6529 43469 if ($req->{'Trim'})