Branch Coverage

blib/lib/BLASTaid.pm
Criterion Covered Total %
branch 25 58 43.1


line true false branch
33 0 2 unless ($arg{'report'})
34 0 2 unless (-f $arg{'report'})
35 0 2 unless (-T $arg{'report'})
38 0 2 unless ($arg{'index'})
50 2 0 if (-f $$self{'_index'}) { }
75 0 1 unless (defined $arg{'ignore'})
81 40 1 unless ($$class{'_id'}{$id}{'_name'} eq 'END-OF-FILE')
82 0 40 if (not $arg{'ignore'} eq 'yes') { }
86 40 0 if ($$class{'_id'}{$id}{'_alignments'} eq 'TRUE') { }
95 0 1 if (@queries < 1)
116 0 1 if (not defined $arg{'query'} or $arg{'query'} eq '')
117 0 1 unless (defined $$class{'_queries'}{'_name'}{$arg{'query'}})
122 0 1 unless $REPORT->open("$$class{'_report'}")
129 1 1023 if ($_ =~ /EXIT CODE (\d+)/)
130 1 1023 if $_ =~ /^BLAST/
136 0 1 if ($string eq '')
137 0 1 if ($pass ne 'true')
159 0 0 unless $REPORT->open("$$class{'_report'}")
161 0 0 if (/^(BLAST\S+)\s+/) { }
0 0 elsif (/^Query\=\s+(\S+)/) { }
0 0 elsif (/\s*.+NONE.+\s*/) { }
0 0 elsif ($REPORT->eof) { }
187 0 0 if (not defined $$class{'_id'}{$report}{'_name'} && defined $$class{'_id'}{$report}{'_start'}) { }
223 0 0 unless $OUT->open(">$$class{'_index'}")
250 0 2 unless $IN->open("$$class{'_index'}")
264 0 2 if ($$class{'_id'}{'1'}{'_start'} != 0)
266 0 82 if (not defined $$class{'_id'}{$report}{'_name'} && defined $$class{'_id'}{$report}{'_start'} && defined $$class{'_id'}{$report}{'_type'}) { }
300 0 1 unless ($arg{'report'})
303 1 0 if (defined $$class{'_queries'}{'_name'}{$arg{'report'}}{'_type'}) { }