Branch Coverage

Bio/DB/Taxonomy/list.pm
Criterion Covered Total %
branch 42 64 65.6


line true false branch
115 250 2 if %args
140 0 331 unless $names and ref $names eq 'ARRAY'
145 39 292 if ($ranks)
146 0 39 unless ref $ranks eq 'ARRAY'
148 0 39 unless $names_idx == scalar @$ranks - 1
197 282 275 if ($my_ancestor_id eq $this_ancestor_id)
203 52 223 if $i >= $names_idx
207 5 229 if ($my_child_name eq $node_data->{$this_child_id}[0])
208 5 0 if ($my_ancestor_id) { }
211 0 5 if ($my_ancestor_id eq $this_ancestor_id)
230 2728 282 unless (defined $node_id)
239 114 2896 if (defined $rank and not defined $node_data->{$node_id}[1])
244 2679 331 if ($my_ancestor_id)
245 0 2679 if ($self->{'ancestors'}{$node_id} and $self->{'ancestors'}{$node_id} ne $my_ancestor_id)
311 2145 4732 if (scalar @args == 1) { }
318 2 4730 if ($name)
321 2 4730 if ($names)
328 0 2 if (scalar @taxonids > 1 and scalar @$names > 1)
336 0 0 if ($db_ancestor)
339 0 0 unless ($query_ancestor_name eq $db_ancestor_name)
344 0 0 if ($matched == 1)
353 0 2 if (scalar @taxonids > 1)
354 0 0 if scalar @taxonids > 1
364 6873 4 if ($node)
371 53 6820 if ($rank)
402 2 255 unless $self->{'name_to_id'}{$name}
257 0 wantarray ? :
421 0 4476 unless $taxon
422 0 4476 unless ref $taxon and $taxon->isa('Bio::Taxon')
423 0 4476 unless $taxon->db_handle and $taxon->db_handle eq $self
445 0 18 unless ref $taxon and $taxon->isa('Bio::Taxon')
446 0 18 unless $taxon->db_handle and $taxon->db_handle eq $self