Condition Coverage

Bio/SearchIO/SearchResultEventBuilder.pm
Criterion Covered Total %
condition 53 98 54.0


and 3 conditions

line !l l&&!r l&&r condition
221 180 0 0 defined $data->{'runid'} and not $data->{'runid'} =~ /^\s+$/
290 7792 0 0 defined $data->{'runid'} and not $data->{'runid'} =~ /^\s+$/
315 6420 1372 0 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 6420 1372 0 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'}
427 0 8391 0 exists $args{'-name'} and $args{'-name'} =~ /BL_ORD_ID/
436 0 0 979 defined $args{'-hsps'} and $args{'-hsps'}[0]
504 0 0 1502 defined $f and ref $f
0 0 1502 defined $f and ref $f and $f->isa('Bio::Factory::ObjectFactoryI')

or 2 conditions

line l !l condition
339 363 7429 $data->{'HSP-query_frame'} ||= 0
340 283 7509 $data->{'HSP-hit_frame'} ||= 0
364 7 4901 $data->{'HSP-homology_seq'} || ''
476 0 2 $hit->{'-bits'} || $hit->{'-hsps'}[0]{'-bits'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
129 0 293 0 $resultF || 'Bio::Factory::ObjectFactory'->new('-type', 'Bio::Search::Result::GenericResult', '-interface', 'Bio::Search::Result::ResultI')
134 0 293 0 $hitF || 'Bio::Factory::ObjectFactory'->new('-type', 'Bio::Search::Hit::GenericHit', '-interface', 'Bio::Search::Hit::HitI')
139 0 293 0 $hspF || 'Bio::Factory::ObjectFactory'->new('-type', 'Bio::Search::HSP::GenericHSP', '-interface', 'Bio::Search::HSP::HSPI')
159 5 0 380 $hit_filter || $filt_func
179 20822 136 0 $type eq 'hsp' || $type eq 'hit' || $type eq 'result'
235 0 0 0 not defined $acc or $acc =~ /^\s+$/
244 0 12 1 $args{'-algorithm_name'} || $data->{'RESULT-algorithm_name'} || $type
304 0 0 0 not defined $acc or $acc =~ /^\s+$/
315 0 0 1372 $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 0 1372 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'}
342 238 6583 971 $data->{'HSP-query_length'} ||= $data->{'RESULT-query_length'}
343 322 1792 5678 $data->{'HSP-hit_length'} ||= $data->{'HIT-length'}
364 2884 7 4901 $data->{'HSP-hsp_length'} ||= length($data->{'HSP-homology_seq'} || '')
370 7671 120 1 $args{'-algorithm_name'} || $data->{'RESULT-algorithm_name'} || $type
421 2501 5890 0 scalar @hsp_data > 0 or exists $data->{'HIT-significance'}
431 8365 25 1 $args{'-algorithm_name'} || $data->{'RESULT-algorithm_name'} || $type
439 95 829 55 $args{'-hsps'}[0]{'-pvalue'} || $args{'-hsps'}[0]{'-evalue'}
472 1215 0 0 $hit->{'-score'} || $hit->{'-hsps'}[0]{'-score'}
526 8943 0 0 $self->{'_factories'}{lc $type} || $self->throw('-class', 'Bio::Root::BadParameter', '-text', "No factory registered for $type")
563 0 0 5 $sig =~ /[^\d.e-]/ or $sig <= 0
603 0 0 5 $score =~ /[^\de+]/ or $score <= 0
634 0 0 5 $bits =~ /[^\de+]/ or $bits <= 0