Branch Coverage

Bio/SearchIO/SearchResultEventBuilder.pm
Criterion Covered Total %
branch 59 90 65.5


line true false branch
158 0 385 defined $ithresh ? :
160 5 380 if defined $hit_filter
161 5 380 if defined $signif
162 5 380 if defined $score
163 5 380 if defined $bits
221 0 180 if (defined $data->{'runid'} and not $data->{'runid'} =~ /^\s+$/)
224 0 0 if (not $data->{'runid'} =~ /^lcl\|/) { }
232 0 0 if (my @a = split(/\|/, $data->{'RESULT-query_name'}, 0))
235 0 0 if not defined $acc or $acc =~ /^\s+$/
248 96 84 $self->isa('Bio::SearchIO::IteratedSearchResultEventBuilder') ? :
255 96 84 $self->isa('Bio::SearchIO::IteratedSearchResultEventBuilder') ? :
290 0 7792 if (defined $data->{'runid'} and not $data->{'runid'} =~ /^\s+$/)
293 0 0 if (not $data->{'runid'} =~ /^lcl\|/) { }
301 0 0 if (my @a = split(/\|/, $data->{'RESULT-query_name'}, 0))
304 0 0 if not defined $acc or $acc =~ /^\s+$/
315 0 1372 if (defined $data->{'HSP-query_frame'} and $data->{'HSP-query_frame'} < 0 && $data->{'HSP-query_start'} < $data->{'HSP-query_end'} || $data->{'HSP-query_frame'} > 0 && $data->{'HSP-query_start'} > $data->{'HSP-query_end'})
327 0 1372 if (defined $data->{'HSP-hit_frame'} and defined $data->{'HSP-hit_frame'} && $data->{'HSP-hit_frame'} < 0 && $data->{'HSP-hit_start'} < $data->{'HSP-hit_end'} || defined $data->{'HSP-hit_frame'} && $data->{'HSP-hit_frame'} > 0 && $data->{'HSP-hit_start'} > $data->{'HSP-hit_end'})
346 971 6821 unless (defined $data->{'HSP-query_length'})
347 126 845 if (my $hsp_qry_seq = $data->{'HSP-query_seq'}) { }
355 5678 2114 unless (defined $data->{'HSP-hit_length'})
356 131 5547 if (my $hsp_hit_seq = $data->{'HSP-hit_seq'}) { }
374 0 7792 unless $self->{'_hsps'}
421 0 5890 unless scalar @hsp_data > 0 or exists $data->{'HIT-significance'}
427 0 8391 if (exists $args{'-name'} and $args{'-name'} =~ /BL_ORD_ID/)
435 979 7412 unless (defined $args{'-significance'})
436 979 0 if (defined $args{'-hsps'} and $args{'-hsps'}[0])
461 2 5943 if ($hit_filter) { }
465 1 1 unless &$hit_filter($hit)
468 55 5888 if ($self->{'_confirm_significance'})
469 50 5 unless $hit_signif <= $self->{'_max_significance'}
471 1215 4728 if ($self->{'_confirm_score'})
473 1211 4 unless $hit_score >= $self->{'_min_score'}
475 2 5941 if ($self->{'_confirm_bits'})
477 2 0 unless $hit_bits >= $self->{'_min_bits'}
481 4681 1264 if $add_hit
504 0 1502 unless (defined $f and ref $f and $f->isa('Bio::Factory::ObjectFactoryI'))
539 385 102 if @_
561 5 0 if (@_)
563 0 5 if ($sig =~ /[^\d.e-]/ or $sig <= 0)
601 5 0 if (@_)
603 0 5 if ($score =~ /[^\de+]/ or $score <= 0)
632 5 0 if (@_)
634 0 5 if ($bits =~ /[^\de+]/ or $bits <= 0)
661 5 0 if (@_)
663 0 5 unless (ref $func eq 'CODE')