Branch Coverage

Bio/SearchIO/megablast.pm
Criterion Covered Total %
branch 30 50 60.0


line true false branch
160 0 1 unless defined $fmt
184 21 0 if ($fmt == 0)
185 21 0 if (/^\'(\S+)\'\=\=\'(\+|\-)(\S+)\'\s+ \((\d+)\s+(\d+)\s+(\d+)\s+(\d+)\)\s+ (\d+)/ox) { }
192 1 20 if (not defined $lastquery) { }
0 20 elsif ($lastquery ne $query) { }
200 0 0 if defined $lasthit
207 4 17 if (not defined $lasthit or $lasthit ne $hit)
208 3 1 if defined $lasthit
243 18 3 if ($strand eq '-')
271 1 0 if (defined $lastquery and $fmt == 0)
272 1 0 if defined $lasthit
292 1 1 if @_
312 26 153 if (my $type = $Bio::SearchIO::megablast::MODEMAP{$nm})
314 26 0 if ($self->_eventHandler->will_handle($type))
321 1 178 if ($nm eq 'MegaBlastOutput')
345 26 153 if (my $type = $Bio::SearchIO::megablast::MODEMAP{$nm}) { }
153 0 elsif ($Bio::SearchIO::megablast::MAPPING{$nm}) { }
346 26 0 if ($self->_eventHandler->will_handle($type))
354 0 153 if (ref($Bio::SearchIO::megablast::MAPPING{$nm}) =~ /hash/i) { }
365 1 178 if $nm eq 'MegaBlastOutput'
402 0 153 unless defined $data->{'Data'}
420 26 0 if (defined $value)
443 0 0 if not defined $name || defined $self->{'_elements'} or scalar @{$self->{'_elements'};} == 0
445 0 0 if ($_ eq $name)
467 0 0 unless defined $self->{'_elements'}[0]