Condition Coverage

blib/lib/Games/Sudoku/Pdf.pm
Criterion Covered Total %
condition 28 54 51.8


and 3 conditions

line !l l&&!r l&&r condition
107 14 11 1 $x_region eq "n" and $jigsaw
290 0 0 1 $media_size->[2] and $media_size->[3]
293 0 0 0 $params->{'pageOrientation'} eq "landscape" and $media_size->[2] < $media_size->[3]
0 0 0 $params->{'pageOrientation'} eq "portrait" and $media_size->[2] > $media_size->[3]
549 54 36 72 $r =~ /^[123567]$/ && $c =~ /^[123567]$/
555 108 36 18 $r =~ /^[147]$/ && $c =~ /^[147]$/
645 20 17 8 defined $c and $c == $color
660 1 0 0 $colors_used != 3 and $colors_used != 4

or 2 conditions

line l !l condition
67 12 0 $puzzle{'extraRegion'} || $self->{'extraRegion'} || 'n'

or 3 conditions

line l !l&&r !l&&!r condition
198 0 0 0 $options{'lineHandler'} || sub { my $line = shift(); return 0 unless $line =~ /^([0-9. ]{81})(?:[\|:,;\t]([1-9]{81})?)?(?:[\|:,;\t]([nNxXhHpPcCdDaAgG])?)?(?:[\|:,;\t](.+)?)?/; ++$puzzles_in_file; if ($puzzle_numbers) { return 0 unless $puzzles_in_file == $next_puzzle_number; } ; return {'clues', $1, 'bottomLine', $4 || sprintf('puzzle # %d', $next_puzzle_number || $puzzles_in_file), 'extraRegion', $3, 'jigsaw', $2}; }
239 0 0 0 shift() || $self->{'appendFile'}
293 0 0 0 $params->{'pageOrientation'} eq "landscape" and $media_size->[2] < $media_size->[3] or $params->{'pageOrientation'} eq "portrait" and $media_size->[2] > $media_size->[3]
546 18 16 128 $r == $c || $r == 8 - $c
552 18 18 108 $r == 8 - $c || $r =~ /^[123]$/ && $c =~ /^[123]$/ || $r =~ /^[567]$/ && $c =~ /^[567]$/
639 8 1 0 $most_neighbours ||= $area
766 0 1 0 shift() || time
781 0 0 0 $PDF::API2::VERSION < "2.042" or $PDF::API2::VERSION > "2.044"

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
576 136 288 288 558 $r > 2 && $r < 6 ^^ $c > 2 && $c < 6