Condition Coverage

blib/lib/Games/Maze.pm
Criterion Covered Total %
condition 57 100 57.0


or 2 conditions

line l !l condition
136 6 2 $args->{'dimensions'} //= []
271 6 2 $self->{'fn_choosedir'} || \&Games::Maze::_random_dir

or 3 conditions

line l !l&&r !l&&!r condition
331 690 54 10 $c != $fin_c or $r != $fin_r
744 4 6 $c != $fin_c or $r != $fin_r or $l != $fin_l
689 0 0 2 $cols < 2 or $rows < 2
0 0 2 $cols < 2 or $rows < 2 or $lvls < 1
711 0 0 1 not defined $start[0] or $start[0] < 1
0 0 1 not defined $start[0] or $start[0] < 1 or $start[0] > $self->{'_cols'}
717 0 0 1 not defined $start[1] or $start[1] < 1
0 0 1 not defined $start[1] or $start[1] < 1 or $start[1] > $self->{'_rows'}
723 0 0 1 not defined $start[2] or $start[2] < 1
0 0 1 not defined $start[2] or $start[2] < 1 or $start[2] > $self->{'_rows'}
780 0 0 1 $entry[0] < 1 or $entry[0] > $self->{'_cols'}
800 0 0 1 $exit[0] < 1 or $exit[0] > $self->{'_cols'}
853 145 153 64 $dir == $Games::Maze::North or $dir == $Games::Maze::South
46 13 5 $dir == $Games::Maze::East or $dir == $Games::Maze::West
1072 0 0 2 $cols < 2 or $rows < 2
0 0 2 $cols < 2 or $rows < 2 or $lvls < 1
1085 0 0 4 $cols < 2 or $rows < 1
0 0 4 $cols < 2 or $rows < 1 or $lvls < 1
1109 0 0 5 not defined $start[0] or $start[0] < 1
0 0 5 not defined $start[0] or $start[0] < 1 or $start[0] > $self->{'_cols'}
1115 0 0 5 not defined $start[1] or $start[1] < 1
0 0 5 not defined $start[1] or $start[1] < 1 or $start[1] > $self->{'_rows'}
1123 1 0 4 not defined $start[2] or $start[2] < 1
1 0 4 not defined $start[2] or $start[2] < 1 or $start[2] > $self->{'_rows'}
1297 0 0 5 $entry[0] < 1 or $entry[0] > $self->{'_cols'}
1322 0 0 5 $exit[0] < 1 or $exit[0] > $self->{'_cols'}
1381 473 348 641 $dir == $Games::Maze::North or $dir == $Games::Maze::South
11 18 612 $dir == $Games::Maze::Ceiling or $dir == $Games::Maze::Floor
1393 19 9 276 $dir == $Games::Maze::NorthWest or $dir == $Games::Maze::NorthEast
1397 61 129 118 $dir == $Games::Maze::SouthWest or $dir == $Games::Maze::SouthEast
1400 90 164 358 $dir == $Games::Maze::NorthWest or $dir == $Games::Maze::SouthWest
56 302 0 $dir == $Games::Maze::NorthEast or $dir == $Games::Maze::SouthEast