Branch Coverage

lib/Bio/Roary/ReformatInputGFFs.pm
Criterion Covered Total %
branch 24 38 63.1


line true false branch
41 1 8 if (defined $file_md5s{$digest}) { }
56 0 8 if (@{$ids_from_file;} < 1) { }
63 2 31 if ($gene_ids_seen_before{$gene_id})
68 2 0 if defined $updated_file
78 6 2 if ($ids_seen == 0)
93 6 0 if $suffix eq '.gff'
96 0 0 unless -d $self->output_directory
98 0 0 unless copy($input_file, $output_file)
106 3 0 unless -d $self->output_directory
125 3 660 if ($line =~ /^\#\#FASTA/)
129 645 18 if ($line =~ /\#/ or $found_fasta == 1)
138 10 42 if ($tags[$i] =~ /^(ID=["']?)([^;"']+)(["']?)/)
147 8 10 if ($found_id == 0)
155 0 3 if ($found_fasta == 0)
171 49 51 unless $feature->primary_tag =~ /$tags_regex/
173 51 0 if defined $gene_id
181 51 0 if ($feature->has_tag('ID')) { }
0 0 elsif ($feature->has_tag('locus_tag')) { }
191 0 51 if $gene_id eq ''