Condition Coverage

blib/lib/Game/TextMapper/Schroeder/Alpine.pm
Criterion Covered Total %
condition 85 141 60.2


and 3 conditions

line !l l&&!r l&&r condition
222 476 3932 1592 $legal and $altitude->{$other} > $altitude->{$coordinates}
224 476 2383 1549 $legal and $water->{$other}
2383 1276 273 $legal and $water->{$other} and $water->{$other} == ($i - 3) % 6
243 2464 329 0 not $legal and $altitude->{$coordinates} < $lowest
329 2048 416 $legal and $altitude->{$other} < $lowest
297 1160 0 40 not defined $water->{$coordinates} and $world->{$coordinates} ne "ocean"
355 0 448 42 $coordinates && $seen{$coordinates}
359 35 0 413 $self->legal($coordinates) and $world->{$coordinates} ne "ocean"
393 4 31 5 $start && defined $water->{$start}
412 492 0 708 $altitude->{$_} == 7 || $altitude->{$_} == 8 || $world->{$_} =~ /water/u && $altitude->{$_} > $self->bottom and not $flow->{$_}
493 126 909 61 $altitude->{$coordinates} and $current_altitude < $altitude->{$coordinates}
1035 0 61 $altitude->{$coordinates} and $current_altitude < $altitude->{$coordinates} and not $world->{$coordinates} =~ /water|ocean/u
745 90 653 36 $world->{$other} and $world->{$other} =~ /water|ocean/u
775 6224 150 452 $distance <= 3 and !$best_distance || $distance <= $best_distance
150 324 128 $distance <= 3 and !$best_distance || $distance <= $best_distance and !$best || $altitude->{$to} < $best_altitude
824 0 0 0 $altitude->{$coordinates} == $self->bottom and $world->{$coordinates} =~ /water|ocean/u
0 0 0 $altitude->{$coordinates} == $self->bottom and $world->{$coordinates} =~ /water|ocean/u and $altitude->{$coordinates} == $altitude->{$last} - 1
852 0 0 0 $altitude->{$coordinates} >= 2 and $world->{$coordinates} =~ s/(dust|light-grey) desert/light-grey desert/u
0 0 0 $altitude->{$coordinates} >= 4 and $world->{$coordinates} =~ s/light-grey desert/dark-soil desert/u

or 2 conditions

line l !l condition
231 2594 4096 $water->{$next} || 'none'
239 182 2555 $loop{$next} || 'no'
349 36058 129 $altitude->{$a} || 0
36094 93 $altitude->{$b} || 0
924 0 4 shift() // 30
925 0 4 shift() // 10
926 0 4 shift() // 3
928 0 4 shift() // 10
930 0 4 shift() // 2
931 0 4 shift() // 0
932 0 4 shift() // 2
937 0 4 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
181 2 0 56 $current_altitude > 10 or $current_altitude < 0
187 28 28 0 $delta < -1 or $delta > 1
194 1 0 255 $current_altitude > 10 or $current_altitude < 0
243 1160 0 2793 not defined $direction or not $legal and $altitude->{$coordinates} < $lowest
0 485 2308 not defined $direction or not $legal and $altitude->{$coordinates} < $lowest or $legal and $altitude->{$other} < $lowest
377 40 128 109 not defined $water->{$from} or $water->{$from} != $i
412 682 518 0 $altitude->{$_} == 7 || $altitude->{$_} == 8 || $world->{$_} =~ /water/u && $altitude->{$_} > $self->bottom
606 0 2 2 $self->wind // $self->random_neighbor
610 388 130 682 $altitude->{$coordinates} < 7 or $altitude->{$coordinates} > 8
775 162 290 150 !$best_distance || $distance <= $best_distance
162 72 218 !$best || $altitude->{$to} < $best_altitude
852 0 0 0 $world->{$coordinates} =~ s/light-green bushes/rock bushes/u or $world->{$coordinates} =~ s/light-grey grass/rock bush/u
0 0 0 $world->{$coordinates} =~ s/light-green bushes/rock bushes/u or $world->{$coordinates} =~ s/light-grey grass/rock bush/u or $world->{$coordinates} =~ s/dark-grey grass/dark-soil bush/u
0 0 0 $world->{$coordinates} =~ s/light-green bushes/rock bushes/u or $world->{$coordinates} =~ s/light-grey grass/rock bush/u or $world->{$coordinates} =~ s/dark-grey grass/dark-soil bush/u or $world->{$coordinates} =~ s/^grey grass/rock bush/u
0 0 0 $world->{$coordinates} =~ s/light-green bushes/rock bushes/u or $world->{$coordinates} =~ s/light-grey grass/rock bush/u or $world->{$coordinates} =~ s/dark-grey grass/dark-soil bush/u or $world->{$coordinates} =~ s/^grey grass/rock bush/u or $altitude->{$coordinates} >= 4 and $world->{$coordinates} =~ s/light-grey desert/dark-soil desert/u
857 0 0 0 $world->{$coordinates} =~ s/dark-grey swamp2?/light-green bushes/u or $world->{$coordinates} =~ s/^grey swamp2?/light-grey bushes/u
0 0 0 $world->{$coordinates} =~ s/dark-grey swamp2?/light-green bushes/u or $world->{$coordinates} =~ s/^grey swamp2?/light-grey bushes/u or $world->{$coordinates} =~ s/fir-forest/trees/u
927 0 4 0 shift() // int $self->width * $self->height / 40
929 0 4 0 shift() // int $self->width * $self->height / 40
935 2 2 0 shift() || time