Condition Coverage

blib/lib/Game/TextPatterns.pm
Criterion Covered Total %
condition 40 63 63.4


and 3 conditions

line !l l&&!r l&&r condition
126 1 0 1 defined $char and length $char
370 0 0 6 defined $cols && &looks_like_number($cols)

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
222 2 1 2 $p->[0] == 0 or $p->[1] == 0
223 2 1 2 $p->[0] == 0 or $p->[1] == $max_row
226 2 1 2 $p->[0] == $max_col or $p->[1] == 0
229 2 1 2 $p->[0] == $max_col or $p->[1] == $max_row
240 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
283 2 1 2 $reduce_row //= $reduce_col
370 0 0 6 not defined $cols && &looks_like_number($cols) or $cols < 1
376 0 0 4 not &looks_like_number($rows) or $rows < 1
399 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
452 2 18 0 $sep //= $/