Condition Coverage

blib/lib/Game/TextPatterns.pm
Criterion Covered Total %
condition 31 54 57.4


and 3 conditions

line !l l&&!r l&&r condition
126 1 0 1 defined $char and length $char
340 0 0 6 defined $cols && &looks_like_number($cols)
393 8 4 4 substr($row, $c, 1) =~ /$re/u and rand() < $to_fill / $total

or 3 conditions

line l !l&&r !l&&!r condition
119 0 0 1 not &looks_like_number($width) or $width < 1
154 0 1 45 $p->[0] < 0 or $p->[0] >= $cols
1 0 45 $p->[0] < 0 or $p->[0] >= $cols or $p->[1] < 0
1 0 45 $p->[0] < 0 or $p->[0] >= $cols or $p->[1] < 0 or $p->[1] >= $rows
175 1 0 15 $p2->[0] == 0 or $p2->[1] == 0
210 0 0 2 $p->[0] < 0 or $p->[0] > $max_col
0 0 2 $p->[0] < 0 or $p->[0] > $max_col or $p->[1] < 0
0 0 2 $p->[0] < 0 or $p->[0] > $max_col or $p->[1] < 0 or $p->[1] > $max_row
253 2 1 2 $reduce_row //= $reduce_col
340 0 0 6 not defined $cols && &looks_like_number($cols) or $cols < 1
346 0 0 4 not &looks_like_number($rows) or $rows < 1
369 0 1 3 $p->[0] < 0 or $p->[0] >= $cols
1 0 3 $p->[0] < 0 or $p->[0] >= $cols or $p->[1] < 0
1 0 3 $p->[0] < 0 or $p->[0] >= $cols or $p->[1] < 0 or $p->[1] >= $rows
446 2 18 0 $sep //= $/