Condition Coverage

blib/lib/Games/Tournament/Card.pm
Criterion Covered Total %
condition 12 24 50.0


and 3 conditions

line !l l&&!r l&&r condition
195 0 0 0 $contestant and $contestant->isa('Games::Tournament::Contestant::Swiss')
232 0 0 11038 $contestant and $contestant->isa('Games::Tournament::Contestant::Swiss')
393 0 0 1422 $player and $player->isa('Games::Tournament::Contestant::Swiss')
419 32 0 8 @status == 1 and &any(sub { $_ eq 'Bye'; } , @status)
420 0 0 32 @status == 2 and &all(sub { $_ eq ('White', 'Black')[1] unless $_ eq ('White', 'Black')[0]; } , @status)

or 3 conditions

line l !l&&r !l&&!r condition
75 20 2 0 keys %roles == 2 or grep /bye/i, values %roles
396 60 681 681 $role eq 'Bye' or $role eq ('White', 'Black')[0]
741 681 0 $role eq 'Bye' or $role eq ('White', 'Black')[0] or $role eq ('White', 'Black')[1]