Branch Coverage

Bio/SearchIO/psl.pm
Criterion Covered Total %
branch 32 50 64.0


line true false branch
207 0 6 unless $q_length > 0
212 0 6 unless $match_total > 0
217 1 5 if (defined $lastquery and $lastquery ne $q_name) { }
2 3 elsif (not defined $lastquery) { }
0 3 elsif ($lasthit ne $t_name) { }
335 3 2 if ($strand eq '+') { }
401 30 8 if ($strand eq '+') { }
425 1 2 if (defined $lasthit or defined $lastquery)
448 9 82 if (my $type = $Bio::SearchIO::psl::MODEMAP{$nm})
450 9 0 if ($self->_eventHandler->will_handle($type))
456 2 89 if ($nm eq 'PSLOutput')
483 9 82 if (my $type = $Bio::SearchIO::psl::MODEMAP{$nm}) { }
82 0 elsif ($Bio::SearchIO::psl::MAPPING{$nm}) { }
484 9 0 if ($self->_eventHandler->will_handle($type))
493 0 82 if (ref($Bio::SearchIO::psl::MAPPING{$nm}) =~ /hash/i) { }
511 2 89 if defined $nm and defined $Bio::SearchIO::psl::MODEMAP{$nm} and $Bio::SearchIO::psl::MODEMAP{$nm} eq 'result'
548 0 82 unless defined $data->{'Data'}
549 0 82 if ($data->{'Data'} =~ /^\s+$/)
550 0 0 unless $data->{'Name'} =~ /Hsp\_(midline|qseq|hseq)/
553 0 82 if ($self->in_element('hsp') and $data->{'Name'} =~ /Hsp\_(qseq|hseq|midline)/)
577 9 0 if (defined $value)
600 0 0 if not defined $name || defined $self->{'_elements'} or scalar @{$self->{'_elements'};} == 0
602 0 0 if ($_ eq $name)
624 0 82 unless defined $self->{'_elements'}[0]
696 3 2 if @_