Condition Coverage

blib/lib/Games/Tournament.pm
Criterion Covered Total %
condition 10 42 23.8


and 3 conditions

line !l l&&!r l&&r condition
77 1762 0 0 $absent and ref $absent eq 'ARRAY'
243 126 0 573 $game and $game->can('contestants')
280 0 0 0 keys %$contestants == 1 and $result->{'Bye'} =~ /Bye/i
0 0 0 $$result{('White', 'Black')[0]} and $$result{('White', 'Black')[1]}
0 0 0 $$result{('White', 'Black')[0]} and $$result{('White', 'Black')[1]} and $$result{('White', 'Black')[0]} eq 'Win' && $$result{('White', 'Black')[1]} eq 'Loss' || $$result{('White', 'Black')[0]} eq 'Loss' && $$result{('White', 'Black')[1]} eq 'Win' || $$result{('White', 'Black')[0]} eq 'Draw' && $$result{('White', 'Black')[1]} eq 'Draw'
330 0 0 0 $card and $card->isa('Games::Tournament::Card')
583 0 0 0 $strings and ref $strings eq 'ARRAY'

or 3 conditions

line l !l&&r !l&&!r condition
108 1254 15918 489 $b->score <=> $a->score or $b->rating <=> $a->rating
17172 0 489 $b->score <=> $a->score or $b->rating <=> $a->rating or $a->title cmp $b->title
116 10097 0 16 $b->rating <=> $a->rating or $a->title cmp $b->title
280 0 0 0 $$result{('White', 'Black')[0]} eq 'Win' && $$result{('White', 'Black')[1]} eq 'Loss' || $$result{('White', 'Black')[0]} eq 'Loss' && $$result{('White', 'Black')[1]} eq 'Win' || $$result{('White', 'Black')[0]} eq 'Draw' && $$result{('White', 'Black')[1]} eq 'Draw'
0 0 0 keys %$contestants == 1 and $result->{'Bye'} =~ /Bye/i or $$result{('White', 'Black')[0]} and $$result{('White', 'Black')[1]} and $$result{('White', 'Black')[0]} eq 'Win' && $$result{('White', 'Black')[1]} eq 'Loss' || $$result{('White', 'Black')[0]} eq 'Loss' && $$result{('White', 'Black')[1]} eq 'Win' || $$result{('White', 'Black')[0]} eq 'Draw' && $$result{('White', 'Black')[1]} eq 'Draw'
335 0 0 0 $_ eq ('White', 'Black')[0] or $_ eq ('White', 'Black')[1]
338 0 0 0 not $card or $@