Condition Coverage

blib/lib/Game/TextMapper/Schroeder/Alpine.pm
Criterion Covered Total %
condition 92 123 74.8


and 3 conditions

line !l l&&!r l&&r condition
216 238 1907 855 $legal and $altitude->{$other} > $altitude->{$coordinates}
218 238 1183 724 $legal and $water->{$other}
1183 607 117 $legal and $water->{$other} and $water->{$other} == ($i - 3) % 6
237 1215 167 0 not $legal and $altitude->{$coordinates} < $lowest
167 1013 202 $legal and $altitude->{$other} < $lowest
291 578 0 22 not defined $water->{$coordinates} and $world->{$coordinates} ne "ocean"
349 0 210 17 $coordinates && $seen{$coordinates}
353 19 0 191 $self->legal($coordinates) and $world->{$coordinates} ne "ocean"
387 2 17 3 $start && defined $water->{$start}
406 310 0 290 $altitude->{$_} == 7 || $altitude->{$_} == 8 || $world->{$_} =~ /water/u && $altitude->{$_} > $self->bottom and not $flow->{$_}
487 57 373 39 $altitude->{$coordinates} and $current_altitude < $altitude->{$coordinates}
430 2 37 $altitude->{$coordinates} and $current_altitude < $altitude->{$coordinates} and not $world->{$coordinates} =~ /water|ocean/u
718 50 341 19 $world->{$other} and $world->{$other} =~ /water|ocean/u
748 3150 96 218 $distance <= 3 and !$best_distance || $distance <= $best_distance
96 136 82 $distance <= 3 and !$best_distance || $distance <= $best_distance and !$best || $altitude->{$to} < $best_altitude
797 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

or 2 conditions

line l !l condition
225 1174 2078 $water->{$next} || 'none'
233 68 1224 $loop{$next} || 'no'
343 10256 47 $altitude->{$a} || 0
10249 54 $altitude->{$b} || 0
874 0 2 shift() // 30
875 0 2 shift() // 10
876 0 2 shift() // 3
878 0 2 shift() // 10
880 0 2 shift() // 2
881 0 2 shift() // 0
882 0 2 shift() // 2
886 0 2 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
175 2 0 28 $current_altitude > 10 or $current_altitude < 0
181 14 14 0 $delta < -1 or $delta > 1
188 1 0 130 $current_altitude > 10 or $current_altitude < 0
237 578 0 1382 not defined $direction or not $legal and $altitude->{$coordinates} < $lowest
0 236 1146 not defined $direction or not $legal and $altitude->{$coordinates} < $lowest or $legal and $altitude->{$other} < $lowest
371 22 57 57 not defined $water->{$from} or $water->{$from} != $i
406 275 322 3 $altitude->{$_} == 7 || $altitude->{$_} == 8 || $world->{$_} =~ /water/u && $altitude->{$_} > $self->bottom
600 0 1 1 $self->wind // $self->random_neighbor
604 258 67 275 $altitude->{$coordinates} < 7 or $altitude->{$coordinates} > 8
669 28 11 22 $world->{$coordinates} =~ s/light-green bushes/light-green grass/u or $world->{$coordinates} =~ s/light-green grass/dust grass/u
39 3 19 $world->{$coordinates} =~ s/light-green bushes/light-green grass/u or $world->{$coordinates} =~ s/light-green grass/dust grass/u or $world->{$coordinates} =~ s/dust grass/dust hill/u
748 84 134 96 !$best_distance || $distance <= $best_distance
84 40 94 !$best || $altitude->{$to} < $best_altitude
877 0 2 0 shift() // int $self->width * $self->height / 40
879 0 2 0 shift() // int $self->width * $self->height / 40
884 2 0 0 shift() || time