Condition Coverage

blib/lib/DateTime/Format/PGN.pm
Criterion Covered Total %
condition 29 114 25.4


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 2 16 $2 < 13 and $3 > 12
4 0 0 $2 == $3 and $2 < 13
0 2 2 $3 < 13 and $2 > 12
77 0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32
0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32 and $2 > 0
81 0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9])(\D|\Z)/ and $2 < 32
0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9])(\D|\Z)/ and $2 < 32 and $2 > 0
85 0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32
0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32 and $2 > 0
89 0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|30)(\D|\Z)/ and $2 < 32
0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|30)(\D|\Z)/ and $2 < 32 and $2 > 0
93 0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32
0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32 and $2 > 0
97 0 0 1 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|30)(\D|\Z)/ and $2 < 32
0 0 1 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|30)(\D|\Z)/ and $2 < 32 and $2 > 0
101 0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32
0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32 and $2 > 0
105 0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32
0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32 and $2 > 0
109 0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|30)(\D|\Z)/ and $2 < 32
0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|30)(\D|\Z)/ and $2 < 32 and $2 > 0
113 0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32
0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32 and $2 > 0
117 0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|30)(\D|\Z)/ and $2 < 32
0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|30)(\D|\Z)/ and $2 < 32 and $2 > 0
121 0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32
0 0 0 $date =~ /(\A|\D)(0?[1-9]|[1-2][0-9]|3[0-1])(\D|\Z)/ and $2 < 32 and $2 > 0
125 5 0 19 index($matches[1], '?') == -1 and index($matches[2], '?') == -1
126 6 13 0 $matches[2] == 31 and $matches[1] == 4 || $matches[1] == 6 || $matches[1] == 9 || $matches[1] == 9 || $matches[1] == 11
131 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 4 $2 < 13 and $3 > 12 or $2 == $3 and $2 < 13
126 1 1 9 $matches[1] == 4 || $matches[1] == 6 || $matches[1] == 9 || $matches[1] == 9 || $matches[1] == 11
131 1 0 3 $matches[2] == 29 and $matches[0] % 4 == 0 and $matches[0] % 100 > 0 or $matches[2] < 29