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
83 1762 0 0 $absent and ref $absent eq 'ARRAY'
249 126 0 573 $game and $game->can('contestants')
286 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'
336 0 0 0 $card and $card->isa('Games::Tournament::Card')
589 0 0 0 $strings and ref $strings eq 'ARRAY'

or 3 conditions

line l !l&&r !l&&!r condition
114 1254 15932 494 $b->score <=> $a->score or $b->rating <=> $a->rating
17186 0 494 $b->score <=> $a->score or $b->rating <=> $a->rating or $a->title cmp $b->title
122 9679 0 17 $b->rating <=> $a->rating or $a->title cmp $b->title
286 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'
341 0 0 0 $_ eq ('White', 'Black')[0] or $_ eq ('White', 'Black')[1]
344 0 0 0 not $card or $@