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
300 0 0 0 $1 > 0 and $1 <= 6
565 0 0 0 @_ and ref $_[0] eq 'ARRAY'
776 146 0 245 /^\[/ and not $memory->{'game'}
883 0 0 0 exists $params->{'all_tags'} and $params->{'all_tags'} =~ /^(?:[Yy][Ee][Ss]|1)$/
1005 0 0 0 exists $params->{'game'} and lc $params->{'game'} ne 'yes'
1010 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)$/
1256 0 0 1 exists $params->{'save_comments'} && $params->{'save_comments'} =~ /^(?:yes|1)$/
1269 0 1 0 $save_comments and exists $params->{'comments_struct'}
1341 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'
1395 0 0 0 $1 and exists $comment_types{$1}

or 2 conditions

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

or 3 conditions

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