Branch Coverage

Bio/SeqIO/table.pm
Criterion Covered Total %
branch 89 102 87.2


line true false branch
203 0 7 defined $cmtchars ? :
7 0 if not defined $self->comment_char or defined $cmtchars
205 3 4 defined $delim ? :
7 0 if not defined $self->delimiter or defined $delim
207 5 2 if defined $header
208 4 3 if defined $trim
212 5 2 if defined $display_id
213 5 2 if defined $accnr
214 5 2 if defined $seq
215 1 6 if defined $desc
216 4 3 if (defined $taxon)
217 0 4 if (ref $taxon or $taxon =~ /^\d+$/) { }
229 3 4 if ($useann and not ref $useann)
232 1 2 if ($useann =~ /^\[(.*)\]$/) { }
0 2 elsif ($useann =~ /^{(.*)}$/) { }
238 1 6 if (ref $useann) { }
240 1 0 if (ref $useann eq 'ARRAY') { }
244 5 0 $has_header ? :
254 1 5 if ($colnames and not ref $colnames)
259 1 5 if ref $colnames
263 7 0 if (not defined $self->sequence_factory)
287 5 37 if ($line_ok and not $self->_header_skipped and $self->header)
293 4 42 unless $line_ok
300 40 2 if ($self->trim_values)
302 380 20 if ($cols[$i])
317 128 40 if (not ref $attrmap->{$attr} and $attrmap->{$attr} =~ /^\d+$/) { }
328 40 2 if ($annmap and %$annmap)
331 28 212 unless $cols[$col]
365 7 46 if @_
389 5 11 if @_
411 7 42 if @_
438 7 2 if (@_)
441 0 7 unless defined $arg
445 16 4 if (not ref $attr_map->{$key} and $attr_map->{$key} =~ /^\d+$/)
452 0 9 unless exists $self->{'_attribute_map'}
456 22 6 if (not ref $attr_map{$key} and $attr_map{$key} =~ /^\d+$/)
491 5 4 if (@_)
494 0 5 unless defined $arg
508 3 6 unless exists $self->{'_annotation_map'}
539 11 5 if @_
565 1 3 if @_
585 4 46 if @_
672 5 42 if @_
756 4 1 if ($self->keep_annotation)
759 4 0 if ($self->trim_values)
767 3 1 if (not %$annmap) { }
769 1 2 if (my $anncols = $self->annotation_columns) { }
773 0 5 unless (exists $colmap{$col})
780 5 5 if (exists $colmap{$colnames[$i]})
791 6 2 if (not ref $attrcol and $attrcol =~ /^\d+$/)
799 5 5 if (exists $$annmap{$i + 1} and not defined $$annmap{$i + 1})