Branch Coverage

Bio/SearchIO/blasttable.pm
Criterion Covered Total %
branch 55 76 72.3


line true false branch
178 1 765 if (/^#\s((?:\S+?)?BLAST[NPX])\s(\d+\.\d+.+\d{4}\])/) { }
1 764 elsif (/^#\s+((?:\S+?)?BLAST[NPX])\s+(.+)/) { }
183 1 0 if $alg
184 1 0 if $ver
193 78 686 if /^#/ or /^\s*$/
196 0 686 if @fields == 1
204 8 678 if (@fields == 12) { }
675 3 elsif (@fields == 13) { }
3 0 elsif (@fields == 22 or @fields == 24) { }
222 683 3 if (@fields == 12 or @fields == 13)
233 4 682 if (defined $lastquery and $lastquery ne $qname) { }
11 671 elsif (not defined $lastquery) { }
640 31 elsif ($lasthit ne $hname) { }
244 2 9 if $ver
259 640 0 if ($self->in_element('hit'))
275 671 11 if (not defined $positives and defined $percent_pos)
305 7 1 if (defined $lasthit and defined $lastquery)
306 7 0 if ($self->in_element('hit'))
329 1344 8798 if (my $type = $Bio::SearchIO::blasttable::MODEMAP{$nm})
331 1344 0 if ($self->_will_handle($type))
337 11 10131 if ($nm eq 'Result')
363 1344 8798 if (my $type = $Bio::SearchIO::blasttable::MODEMAP{$nm}) { }
8798 0 elsif ($Bio::SearchIO::blasttable::MAPPING{$nm}) { }
364 1344 0 if ($self->_will_handle($type))
372 0 8798 if (ref($Bio::SearchIO::blasttable::MAPPING{$nm}) =~ /hash/i) { }
383 11 10131 if $nm eq 'Result'
429 0 8798 unless grep /Data/, keys %$data
430 8 8790 unless (defined $data->{'Data'})
434 0 8790 if ($data->{'Data'} =~ /^\s+$/)
435 0 0 unless $data->{'Name'} =~ /Hsp\_(midline|qseq|hseq)/
438 0 8790 if ($self->in_element('hsp') and $data->{'Name'} =~ /Hsp\_(qseq|hseq|midline)/)
461 1344 0 if (defined $value)
484 0 0 if not defined $name || defined $self->{'_elements'} or scalar @{$self->{'_elements'};} == 0
486 0 0 if ($_ eq $name)
508 1 9436 unless defined $self->{'_elements'}[0]
583 12 9 if @_
631 2655 33 defined $self->{'_will_handle_cache'}{$type} ? :
634 2688 0 $will_handle ? :