Branch Coverage

lib/Bio/Roary/AnnotateGroups.pm
Criterion Covered Total %
branch 31 44 70.4


line true false branch
42 6 0 if ($group =~ /$prefix([\d]+)$/)
44 4 2 if ($group_id > $highest_group)
71 0 25 unless open my $fh, '>', $self->output_filename
118 48 0 if ($line =~ /ID=["']?([^;"']+)["']?;?/i) { }
125 48 0 if $line =~ /inference=([^;]+);/
126 48 0 if $line =~ /product=([^;]+)[;\n]/
139 78 31 unless defined $self->_ids_to_product->{$id_name}
145 18 45 if (@sorted_product_keys > 0) { }
157 0 29 unless open my $fh, $self->groups_filename
162 98 0 if ($line =~ /^(.+): (.+)$/)
183 57 186 if (defined $self->_ids_to_gene_names->{$id_name} and $self->_ids_to_gene_names->{$id_name} ne '')
195 28 114 if (@sorted_gene_names > 0) { }
213 78 31 unless defined $current_gene_size
214 0 31 if $current_gene_size < 1
218 45 18 if @gene_lengths == 0
237 91 0 if $group_name =~ /$group_prefix/
244 0 91 unless $group_name =~ /$group_prefix/
247 0 91 if (defined $gene_name_freq{$consensus_gene_name}) { }
281 0 0 if (@{$self->_groups_to_id_names->{$group};} == 0)
310 2 10 unless defined $self->_ids_to_verbose_stats->{$id_name}{'product'}
316 6 1 if (@sorted_product_keys > 0) { }
330 2 10 unless defined $self->_ids_to_verbose_stats->{$g}{'inference'}