Branch Coverage

blib/lib/Bio/Gonzales/Seq/Validate/fasta.pm
Criterion Covered Total %
branch 32 46 69.5


line true false branch
81 1 370 if (not $is_dos and /\r\n/)
87 371 0 if $is_dos
91 182 189 if (/^>/) { }
4 185 elsif (/[^>]+>/) { }
0 185 elsif (/^\s*$/) { }
185 0 elsif ($header or $seq_type) { }
92 4 178 if ($header and $probably_seq_in_header) { }
1 177 elsif ($header) { }
104 9 355 if /\s+($re)\s*$/ || /\s+($re)\s*$/i and length $1 > 3
109 182 0 if (/^>([^\s]+)/) { }
0 0 elsif (/^>\s*$/) { }
110 0 182 if length $1 > 50
113 1 181 if exists $seen{$1}
124 1 3 if $header
132 0 185 if ($seq_type and not /^$seq_type$/i) { }
134 0 0 if (@unknown > 1) { }
140 180 5 if (/^$pre$/i) { }
0 5 elsif (/^$nre$/i) { }
146 5 0 if (@unknown > 0) { }
159 1 0 if (keys %{$self->_error_cache;} > 0) { }
169 16 1 unless defined $self->_error_cache->{$line}
180 131 45 unless $c =~ /$re/i
193 4 0 if (length $seq >= $len) { }