Branch Coverage

Bio/Tree/DistanceFactory.pm
Criterion Covered Total %
branch 23 84 27.3


line true false branch
143 0 1 unless (defined $matrix and ref $matrix and $matrix->isa('Bio::Matrix::MatrixI'))
150 1 0 if ($method =~ /NJ/i) { }
0 0 elsif ($method =~ /UPGMA/i) { }
191 0 1 if ($N < 2) { }
0 1 elsif ($N == 2) { }
220 55 99 unless defined $nodes[$i]
222 65 451 unless defined $nodes[$j]
224 32 419 if (not defined $min or $dist <= $min)
236 0 11 if ($dist_i < 0) { }
0 11 elsif ($dist_j < 0) { }
239 0 0 if $dist_j < 0
243 0 0 if $dist_i < 0
259 66 88 unless defined $nodes[$m]
260 77 11 if ($m != $mini)
300 3 11 if (defined $nodes[$k])
314 0 1 if ($dist_i < 0) { }
0 1 elsif ($dist_j < 0) { }
0 1 elsif ($dist_k < 0) { }
318 0 0 if ($dist_j < 0) { }
0 0 elsif ($dist_k < 0) { }
321 0 0 if $dist_k < 0
325 0 0 if $dist_j < 0
331 0 0 if ($dist_i < 0) { }
0 0 elsif ($dist_k < 0) { }
334 0 0 if $dist_k < 0
338 0 0 if $dist_i < 0
344 0 0 if ($dist_i < 0) { }
0 0 elsif ($dist_j < 0) { }
347 0 0 if $dist_j < 0
351 0 0 if $dist_i < 0
405 0 0 if (not defined $min or $d <= $min)
406 0 0 if (defined $min and $min == $d) { }
420 0 0 unless (defined $min)
424 0 0 if (not defined $min or $dij <= $min)
426 0 0 if (defined $min and $min == $dij) { }
446 0 0 unless (defined $nodes[$nid])
461 0 0 if ($y != $K)
472 0 0 if ($i != $x) { }
503 0 0 if (not defined $distances->[$i_id][$j_id]) { }
528 1 1 if @_
554 0 0 unless $len >= 4
566 0 0 unless ($DijDkm == $DikDjm and $DijDkm >= $DimDjk or $DijDkm == $DimDjk and $DijDkm >= $DikDjm or $DikDjm == $DimDjk and $DikDjm >= $DijDkm)