Condition Coverage

blib/lib/Chess/PGN/Parse.pm
Criterion Covered Total %
condition 6 65 9.2


and 3 conditions

line !l l&&!r l&&r condition
284 0 0 0 $1 > 0 and $1 <= 6
549 0 0 0 @_ and ref $_[0] eq 'ARRAY'
775 143 0 232 /^\[/ and not $memory{'game'}
883 0 0 0 exists $$params{'all_tags'} and $$params{'all_tags'} =~ /^(?:[Yy][Ee][Ss]|1)$/
1003 0 0 0 exists $$params{'game'} and lc $$params{'game'} ne 'yes'
1008 0 0 0 exists $$params{'comments'} and lc $$params{'comments'} eq 'yes'
0 0 0 $out_game and (exists $$params{'comments'} and lc $$params{'comments'} eq 'yes')
1027 0 0 0 defined $$self{'gamedescr'}{'FirstMove'} and $$self{'gamedescr'}{'FirstMove'} =~ /(\d+)([bw])/
1038 0 0 0 $out .= ' ' and ++$len
0 0 0 $len and $count > 1
1048 0 0 0 $out_comments and exists $self->comments->{$count - 1 . "$color"}
1185 20 0 0 exists $$params{'check_moves'} and $$params{'check_moves'} =~ /^(?:yes|1)$/
1255 0 0 1 exists $$params{'save_comments'} && $$params{'save_comments'} =~ /^(?:yes|1)$/
1267 0 1 0 $save_comments and exists $$params{'comments_struct'}
1340 0 0 0 $1 and exists $comment_types{$1}
1378 0 0 0 $comment_struct and $comment_struct =~ /^hol|array$/
1380 0 0 0 $self->moves and $comments
0 0 0 $self->moves and $comments and ref $comments eq 'HASH'
1394 0 0 0 $1 and exists $comment_types{$1}

or 2 conditions

line l !l condition
223 2 0 "< $filename" || (return)

or 3 conditions

line l !l&&r !l&&!r condition
278 0 0 0 $1 > 139 or $1 < 0
753 0 0 0 $memory{'game_printed'} or not $memory{'game'}