Branch Coverage

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


line true false branch
47 122 93 if (defined $ids) { }
71 104 18 if $self->{'process'}
102 1 121 if $skip
104 28 93 if ($req)
115 62 31 if (grep {@{$_->{'cols'};};} @{$$self{'reqs'};})
127 0 31 if $skip
129 14 17 if ($req)
153 1 185 if exists $excluded->{$req}
157 30 155 if $req->{'match'} and not $req->{'MultiMatch'}
162 6 77 if ('CODE' eq ref $cmp->{'match'}) { }
3 74 elsif ('Regexp' eq ref $cmp->{'match'}) { }
164 4 2 unless $cmp->{'match'}->($id, $oids)
170 2 1 unless $id =~ /$cmp->{'match'}/
176 32 42 unless $id eq $cmp->{'match'}
183 1 44 if ($cmp->{'exclude'})
211 8 55 if $req->{'match'} and not $req->{'MultiMatch'}
219 1 53 if ('CODE' eq ref $cmp->{'match'}) { }
17 36 elsif ('Regexp' eq ref $cmp->{'match'}) { }
221 0 1 unless $cmp->{'match'}->($id, $oids, \@fix_cols)
227 1 16 unless grep {/$cmp->{'match'}/;} @fix_cols
233 20 16 unless grep {$_ eq $cmp->{'match'};} @fix_cols
240 0 33 if $cmp->{'exclude'}
269 0 62 if $skip
271 33 29 if ($req)
283 0 29 if $skip
285 1 28 if ($req)
304 7 69 if ($req->{'class'}) { }
6 63 elsif ($req->{'obj'}) { }
333 734 2799 unless defined $self->{'req'} and exists $self->{'req'}{$method}
338 2128 671 if ('CODE' eq ref $call) { }
348 671 0 if defined $self->{'obj'}
395 37772 11985 if defined $self->{'col'}
398 0 49757 unless (defined $self->{'row'})
414 104 48023 if not $self->{'in_hdr'} and $self->{'prev_hdr'}
431 614 49757 unless defined $self->{'col'}
433 49757 0 defined $self->{'text'} ? :
466 718 3382 unless defined $self->{'row'}
473 167 3215 if ($self->{'in_hdr'}) { }
525 0 3215 if not $self->{'in_hdr'} and $self->{'prev_hdr'}
530 3215 167 unless $self->{'in_hdr'}
547 104 104 unless $self->{'hdr'}
549 2146 0 if defined $_
553 42 62 if (defined $self->{'req'}) { }
561 34 28 if ($self->match_hdr(@header)) { }
589 104 111 if ($self->{'process'})
615 0 49998 if $req->{'DecodeNBSP'}
618 6529 43469 if $req->{'Chomp'}
621 40410 9588 if $req->{'Decode'}
624 6529 43469 if ($req->{'Trim'})