Condition Coverage

blib/lib/Game/TextMapper/Schroeder/Alpine.pm
Criterion Covered Total %
condition 90 123 73.1


and 3 conditions

line !l l&&!r l&&r condition
216 238 1976 786 $legal and $altitude->{$other} > $altitude->{$coordinates}
218 238 1137 839 $legal and $water->{$other}
1137 753 86 $legal and $water->{$other} and $water->{$other} == ($i - 3) % 6
237 1336 155 0 not $legal and $altitude->{$coordinates} < $lowest
155 1122 214 $legal and $altitude->{$other} < $lowest
291 585 0 15 not defined $water->{$coordinates} and $world->{$coordinates} ne "ocean"
349 0 146 4 $coordinates && $seen{$coordinates}
353 13 0 133 $self->legal($coordinates) and $world->{$coordinates} ne "ocean"
387 2 11 2 $start && defined $water->{$start}
406 325 0 275 $altitude->{$_} == 7 || $altitude->{$_} == 8 || $world->{$_} =~ /water/u && $altitude->{$_} > $self->bottom and not $flow->{$_}
487 59 369 30 $altitude->{$coordinates} and $current_altitude < $altitude->{$coordinates}
428 0 30 $altitude->{$coordinates} and $current_altitude < $altitude->{$coordinates} and not $world->{$coordinates} =~ /water|ocean/u
718 49 348 11 $world->{$other} and $world->{$other} =~ /water|ocean/u
748 3248 68 242 $distance <= 3 and !$best_distance || $distance <= $best_distance
68 162 80 $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 2033 2026 $water->{$next} || 'none'
233 52 1931 $loop{$next} || 'no'
343 10427 48 $altitude->{$a} || 0
10437 38 $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 1 0 28 $current_altitude > 10 or $current_altitude < 0
181 14 14 0 $delta < -1 or $delta > 1
188 1 0 118 $current_altitude > 10 or $current_altitude < 0
237 585 0 1491 not defined $direction or not $legal and $altitude->{$coordinates} < $lowest
0 249 1242 not defined $direction or not $legal and $altitude->{$coordinates} < $lowest or $legal and $altitude->{$other} < $lowest
371 15 38 55 not defined $water->{$from} or $water->{$from} != $i
406 263 336 1 $altitude->{$_} == 7 || $altitude->{$_} == 8 || $world->{$_} =~ /water/u && $altitude->{$_} > $self->bottom
600 0 0 2 $self->wind // $self->random_neighbor
604 273 64 263 $altitude->{$coordinates} < 7 or $altitude->{$coordinates} > 8
669 34 13 38 $world->{$coordinates} =~ s/light-green bushes/light-green grass/u or $world->{$coordinates} =~ s/light-green grass/dust grass/u
47 4 34 $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 86 156 68 !$best_distance || $distance <= $best_distance
86 39 117 !$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