Branch Coverage

blib/lib/Game/TextMapper/Solo.pm
Criterion Covered Total %
branch 0 160 0.0


line true false branch
94 0 0 if $self->loglevel
118 0 0 unless $source == $self->flows->[$start]
122 0 0 if $log->level eq "debug"
128 0 0 if $log->level eq "debug"
141 0 0 unless ($seen{$to})
144 0 0 if $log->level eq "debug"
165 0 0 if ($altitude == 0) { }
0 0 elsif ($altitude == 1) { }
0 0 elsif ($altitude == 2) { }
0 0 elsif ($altitude == 3) { }
0 0 elsif ($altitude == 4) { }
0 0 elsif ($altitude == 5) { }
0 0 elsif ($altitude == 6) { }
0 0 elsif ($altitude == 7) { }
0 0 elsif ($altitude == 8) { }
0 0 elsif ($altitude == 9) { }
167 0 0 $wet ? :
168 0 0 $wet ? :
169 0 0 $wet ? :
170 0 0 $wet ? :
171 0 0 $wet ? :
172 0 0 $wet ? :
174 0 0 special() ? :
177 0 0 if ($settlement) { }
0 0 elsif ($roll == 7) { }
180 0 0 if ($tile eq 'forest' or $tile eq 'forest-hill') { }
0 0 elsif ($tile eq 'desert' or $tile eq 'swamp' or $tile eq 'green-hills') { }
186 0 0 if $log->level eq "debug"
193 0 0 if defined $self->altitudes->[$_]
0 0 if (&all(sub { $self->altitudes->[$_] <= 1 if defined $self->altitudes->[$_]; } , @neighbours))
201 0 0 if (defined $self->flows->[$_] and $self->flows->[$_] == $to and defined $self->altitudes->[$_] and $self->altitudes->[$_] < $max)
209 0 0 if ($roll == 2) { }
0 0 elsif ($roll == 3) { }
0 0 elsif ($roll == 10) { }
0 0 elsif ($roll == 11) { }
0 0 elsif ($roll == 12) { }
215 0 0 if $altitude > $max
216 0 0 if $altitude < 0
217 0 0 if defined $self->altitudes->[$_]
0 0 if $altitude == 0 and &any(sub { $self->altitudes->[$_] > 1 if defined $self->altitudes->[$_]; } , @neighbours)
225 0 0 if defined $self->flows->[$to]
227 0 0 if defined $self->altitudes->[$to] and $self->altitudes->[$to] == 0
229 0 0 if ($source and not $self->tiles->[$to] and $self->altitudes->[$to] >= 1 and $self->altitudes->[$to] <= 8 or &any(sub { $self->flows->[$_] == $to if defined $self->flows->[$_]; } , @neighbours))
230 0 0 if defined $self->flows->[$_]
235 0 0 unless not defined $self->altitudes->[$_]
239 0 0 if (@candidates)
244 0 0 if (@neighbours < 6)
252 0 0 if $self->altitudes->[$_] == $self->altitudes->[$to]
255 0 0 if (@candidates)
261 0 0 if (@candidates)
267 0 0 if ($self->altitudes->[$to] > 1)
280 0 0 if $to == $from
290 0 0 unless defined $self->flows->[$coordinate]
291 0 0 if $self->altitudes->[$coordinate] <= 1
292 0 0 if $seen{$coordinate}
294 0 0 if (&none(sub { $self->flows->[$_] == $coordinate if defined $self->flows->[$_]; } , $self->neighbours($coordinate)))
295 0 0 if defined $self->flows->[$_]
301 0 0 if $coordinate == -1
322 0 0 if ($seen)
324 0 0 if @candidates
334 0 0 if ($coordinate % 2) { }
336 0 0 if $coordinate < $self->cols
337 0 0 if $coordinate >= ($self->rows - 1) * $self->cols
338 0 0 if $coordinate % $self->cols == 0
339 0 0 if $coordinate % $self->cols == $self->cols - 1
342 0 0 if $coordinate < $self->cols
343 0 0 if $coordinate >= ($self->rows - 1) * $self->cols
344 0 0 if $coordinate % $self->cols == 0
345 0 0 if $coordinate % $self->cols == $self->cols - 1
355 0 0 if ($from % 2) { }
361 0 0 if $from + $offsets[$i] == $to
369 0 0 unless $self->tiles->[$i]
371 0 0 if defined $self->flows->[$i] and $log->level eq "debug"
375 0 0 if ref $river and @$river > 1
378 0 0 if ref $trail and @$trail > 1
396 0 0 if ($coordinates[$i] == -1) { }
408 0 0 if ($x == 1) { }
0 0 elsif ($x == $self->cols) { }
0 0 elsif ($y == 1) { }
0 0 elsif ($y == $self->rows) { }