Branch Coverage

Bio/Tree/RandomFactory.pm
Criterion Covered Total %
branch 24 42 57.1


line true false branch
162 0 2 if defined $samps and not defined $taxa
163 1 1 if $samplesize and not $num_taxa
164 1 1 if (not defined $taxa) { }
165 0 1 if (not defined $num_taxa or $num_taxa <= 0)
170 0 1 unless (ref($taxa) =~ /ARRAY/i)
177 0 2 if defined $maxcount
200 0 480 if $self->maxcount and $self->{'_count'}++ >= $self->maxcount
205 0 480 if ($rand_type =~ /(birthdeath_forward|birth|BDF)/i) { }
0 480 elsif ($rand_type =~ /(birthdeath_backward|BDB)/i) { }
480 0 elsif ($rand_type =~ /(BY|backwards_yule)/i or $rand_type =~ /^yule/i) { }
220 2884 1924 unless defined $n->{$k}
247 0 480 if (defined $value)
248 0 0 if ($value =~ /^(\d+)/) { }
287 2 480 if (defined $value)
288 0 2 unless (ref($value) =~ /ARRAY/i)
353 0 480 if @_
371 2 960 if (defined $value)
373 0 2 if ($@)
377 0 2 unless ($a->isa('Bio::Tree::NodeI'))
410 1442 0 if (my $r = $taxa->[$in])
462 0 0 if (my $r = $taxa->[$in])