Condition Coverage

blib/lib/DateTime/Format/PGN.pm
Criterion Covered Total %
condition 43 69 62.3


and 3 conditions

line !l l&&!r l&&r condition
60 0 0 24 $date =~ /(\A|\D)([1-2]\d{3})(\D|\Z)/ and $2 > 0
66 2 3 17 $2 < 13 and $3 > 12
5 0 17 $2 < 13 and $3 > 12 and $3 < 32
3 1 16 $2 < 13 and $3 > 12 and $3 < 32 and $2 > 0
1 0 16 $2 < 13 and $3 > 12 and $3 < 32 and $2 > 0 and $3 > 0
6 0 0 $2 == $3 and $2 < 13
6 0 0 $2 == $3 and $2 < 13 and $2 > 0
1 3 2 $3 < 13 and $2 > 12
4 0 2 $3 < 13 and $2 > 12 and $2 < 32
3 0 2 $3 < 13 and $2 > 12 and $2 < 32 and $2 > 0
0 0 2 $3 < 13 and $2 > 12 and $2 < 32 and $2 > 0 and $3 > 0
90 0 0 1 $date =~ /(\A|\D)(\d{1,2})(\D|\Z)/ and $2 < 32
0 0 1 $date =~ /(\A|\D)(\d{1,2})(\D|\Z)/ and $2 < 32 and $2 > 0
94 5 0 19 index($matches[1], '?') == -1 and index($matches[2], '?') == -1
95 6 13 0 $matches[2] == 31 and $matches[1] == 4 || $matches[1] == 6 || $matches[1] == 9 || $matches[1] == 9 || $matches[1] == 11
100 1 1 2 $matches[2] == 29 and $matches[0] % 4 == 0
2 1 1 $matches[2] == 29 and $matches[0] % 4 == 0 and $matches[0] % 100 > 0

or 3 conditions

line l !l&&r !l&&!r condition
23 0 0 3 not defined $_[0] or $_[0] == 0
31 0 0 4 not defined $_[0] or $_[0] == 0
37 0 6 0 ref $class || $class
66 16 0 6 $2 < 13 and $3 > 12 and $3 < 32 and $2 > 0 and $3 > 0 or $2 == $3 and $2 < 13 and $2 > 0
95 1 1 9 $matches[1] == 4 || $matches[1] == 6 || $matches[1] == 9 || $matches[1] == 9 || $matches[1] == 11
100 1 0 3 $matches[2] == 29 and $matches[0] % 4 == 0 and $matches[0] % 100 > 0 or $matches[2] < 29