Condition Coverage

blib/lib/Game/TextMapper/Schroeder/Alpine.pm
Criterion Covered Total %
condition 87 123 70.7


and 3 conditions

line !l l&&!r l&&r condition
216 238 1942 820 $legal and $altitude->{$other} > $altitude->{$coordinates}
218 238 1179 763 $legal and $water->{$other}
1179 660 103 $legal and $water->{$other} and $water->{$other} == ($i - 3) % 6
237 1261 161 0 not $legal and $altitude->{$coordinates} < $lowest
161 1051 210 $legal and $altitude->{$other} < $lowest
291 588 0 12 not defined $water->{$coordinates} and $world->{$coordinates} ne "ocean"
349 0 130 10 $coordinates && $seen{$coordinates}
353 12 0 118 $self->legal($coordinates) and $world->{$coordinates} ne "ocean"
387 2 10 0 $start && defined $water->{$start}
406 323 0 277 $altitude->{$_} == 7 || $altitude->{$_} == 8 || $world->{$_} =~ /water/u && $altitude->{$_} > $self->bottom and not $flow->{$_}
487 78 611 15 $altitude->{$coordinates} and $current_altitude < $altitude->{$coordinates}
689 0 15 $altitude->{$coordinates} and $current_altitude < $altitude->{$coordinates} and not $world->{$coordinates} =~ /water|ocean/u
719 44 370 15 $world->{$other} and $world->{$other} =~ /water|ocean/u
749 3268 96 268 $distance <= 3 and !$best_distance || $distance <= $best_distance
96 177 91 $distance <= 3 and !$best_distance || $distance <= $best_distance and !$best || $altitude->{$to} < $best_altitude
798 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 1560 2127 $water->{$next} || 'none'
233 67 1610 $loop{$next} || 'no'
343 6044 48 $altitude->{$a} || 0
6058 34 $altitude->{$b} || 0
875 0 2 shift() // 30
876 0 2 shift() // 10
877 0 2 shift() // 3
879 0 2 shift() // 10
881 0 2 shift() // 2
882 0 2 shift() // 0
883 0 2 shift() // 2
887 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 133 $current_altitude > 10 or $current_altitude < 0
237 588 0 1422 not defined $direction or not $legal and $altitude->{$coordinates} < $lowest
0 255 1167 not defined $direction or not $legal and $altitude->{$coordinates} < $lowest or $legal and $altitude->{$other} < $lowest
371 12 35 28 not defined $water->{$from} or $water->{$from} != $i
406 269 331 0 $altitude->{$_} == 7 || $altitude->{$_} == 8 || $world->{$_} =~ /water/u && $altitude->{$_} > $self->bottom
600 0 2 0 $self->wind // $self->random_neighbor
604 262 69 269 $altitude->{$coordinates} < 7 or $altitude->{$coordinates} > 8
670 14 4 12 $world->{$coordinates} =~ s/light-green bushes/light-green grass/u or $world->{$coordinates} =~ s/light-green grass/dust grass/u
18 0 12 $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
749 86 182 96 !$best_distance || $distance <= $best_distance
86 57 125 !$best || $altitude->{$to} < $best_altitude
878 0 2 0 shift() // int $self->width * $self->height / 40
880 0 2 0 shift() // int $self->width * $self->height / 40
885 2 0 0 shift() || time