Branch Coverage

blib/lib/Algorithm/TravelingSalesman/BitonicTour.pm
Criterion Covered Total %
branch 42 42 100.0


line true false branch
280 4 243 if (exists $self->_points->{$x}) { }
316 1 467 if $self->N < 1
343 27 80326 unless ($self->_sorted_points)
389 1 22 if ($self->N < 1) { }
10 12 elsif ($self->N == 1) { }
429 1 200 $$a[0] < $$b[0] ? :
481 1 20112 unless $i < $j
485 204 19908 if $i + 1 == $j
489 19907 1 if $i + 1 < $j
514 2 19701 $$a[0] < $$b[0] ? :
546 1 280867 unless $i < $j
548 1 280866 unless $j < $self->N
550 20122 260744 unless $self->_tour->{$i}{$j}
565 20123 40035 if (@_)
566 1 20122 unless $_[0] > 0
570 60155 1 if (exists $self->tour($i, $j)->[0]) { }
591 20125 40034 if (@_)
592 1 20124 unless $i == $_[0]
594 1 20123 unless $j == $_[-1]
596 1 20122 unless scalar @_ == $j + 1
600 60155 1 if (exists $self->tour($i, $j)->[1]) { }