Branch Coverage

blib/lib/BioUtil/Seq.pm
Criterion Covered Total %
branch 19 82 23.1


line true false branch
124 0 2 if ($file =~ /^STDIN$/i) { }
2 0 elsif (ref $file eq '' or ref $file eq 'SCALAR') { }
128 0 2 unless open $fh, '<', $file
137 2 0 if $_ eq '>'
140 0 6 if $finished
145 2 2 if substr($_, -1, 1) eq '>'
157 0 4 if substr($head, -1, 1) eq "\r"
159 4 0 if (length $head > 0)
163 4 0 unless $not_trim
168 2 0 if $open_flg
182 0 0 if ($file =~ /^STDIN$/i) { }
186 0 0 unless open $fh, '<', $file
190 0 0 if $finished
195 0 0 if (/^>(.*)/) { }
200 0 0 if ($header ne '')
201 0 0 unless $not_trim
209 0 0 unless $is_stdin
213 0 0 if ($last_header ne '')
214 0 0 unless $not_trim
259 0 1 unless (ref $seqs eq 'HASH')
263 1 0 unless defined $n
265 0 1 unless open my $fh2, ">$file"
284 0 2 unless defined $n
285 0 2 unless ($n =~ /^\d+$/ and $n > 0)
320 1 1 if $seq =~ /[^\.\-\s_*ABCDEFGHIKLMNPQRSTUVWY]/i
387 0 1 if ($seq eq '')
542 0 0 if (exists $genetic_code{$codon}) { }
562 0 0 unless (ref $alphabet eq 'ARRAY')
586 0 0 unless defined $file_out
587 0 0 unless open my $fh2, ">$file_out"
609 0 0 unless open my $fh, '<', $file
610 0 0 unless open my $fh2, '>', $outfile
615 0 0 if (/^\s*>(.*)\r?\n/) { }
617 0 0 if ($head =~ /$regex/)
650 0 0 unless defined $replacement
653 0 0 unless defined $symbols
654 0 0 unless (ref $symbols eq 'ARRAY')
659 0 0 unless open my $fh, '<', $file
660 0 0 unless open my $fh2, '>', $outfile
665 0 0 if (/^\s*>(.*)\r?\n/) { }
667 0 0 if ($head =~ /[$re]/)