Condition Coverage

blib/lib/Mafia.pm
Criterion Covered Total %
condition 25 58 43.1


and 3 conditions

line !l l&&!r l&&r condition
89 0 3 14 defined $faction and $faction eq 'town'
3 6 8 defined $faction and $faction eq 'town' and $role eq 'vanilla'
98 14 3 0 $role eq 'goon' and $player{'godfather'}
183 0 24 0 exists $args{'target'} and exists $args{'source'}
11 13 0 exists $args{'target'} and exists $args{'source'} and $players{$args{'target'}}{'faction'} eq 'mafia'
24 0 0 exists $args{'target'} and exists $args{'source'} and $players{$args{'target'}}{'faction'} eq 'mafia' and $players{$args{'source'}}{'weak'}
194 11 0 13 defined $source and defined $target
212 7 6 0 $type eq 'ACT_KILL' && $args{'strong'}
216 0 13 0 $source and $roleblocked && !$strongkill || $hidden && !$hidepierce
224 6 0 0 $tplayers{$target}{'bulletproof'} and defined $source
225 6 0 0 $tplayers{$target}{'guard_count'} and defined $source
232 6 0 0 $tplayers{$target}{'protection'} and not $args{'strong'}

or 2 conditions

line l !l condition
182 0 24 $actions[$delay]{$type} //= []
196 0 13 $tplayers{$source}{'targets'} //= []
198 2 11 $tplayers{$target}{'sources'} //= []
255 0 1 $args{'count'} // 1
270 0 0 $tplayers{$target}{'targets'} // []
274 0 0 $tplayers{$target}{'sources'} // []
279 0 0 $tplayers{$target}{'guards'} //= []
298 0 0 $tplayers{$target}{'hiders'} //= []

or 3 conditions

line l !l&&r !l&&!r condition
216 0 0 13 $roleblocked && !$strongkill || $hidden && !$hidepierce
265 0 0 0 $GUNROLES_HASH{$role} || $players{$target}{'faction'} eq 'mafia' && $role ne 'doctor'