Branch Coverage

blib/lib/Mafia.pm
Criterion Covered Total %
branch 31 66 46.9


line true false branch
82 11 6 if $isday
83 6 0 unless $isday
89 8 9 if (defined $faction and $faction eq 'town' and $role eq 'vanilla')
94 9 8 if $faction
96 0 85 if $player{$flag}
98 17 0 unless $role eq 'goon' and $player{'godfather'}
107 11 0 unless $first
114 6 5 unless $first
135 0 0 if $hasgun
136 0 0 unless $hasgun
150 0 0 unless scalar @result
151 0 0 if scalar @result
159 0 0 unless scalar @result
160 0 0 if scalar @result
172 0 6 if $ismafia
173 6 0 unless $ismafia
183 0 0 if (exists $args{'target'} and exists $args{'source'} and $players{$args{'target'}}{'faction'} eq 'mafia' and $players{$args{'source'}}{'weak'})
194 13 11 if (defined $source and defined $target)
202 0 13 if (exists $tplayers{$target}{'hiders'})
216 0 13 if ($source and $roleblocked && !$strongkill || $hidden && !$hidepierce)
217 0 0 if $INVESTIGATIVE_ACTIONS_HASH{$type}
224 0 6 if $tplayers{$target}{'bulletproof'} and defined $source
225 0 6 if ($tplayers{$target}{'guard_count'} and defined $source)
232 0 6 if ($tplayers{$target}{'protection'} and not $args{'strong'})
241 0 11 if ($tplayers{$target}{'guard_count'})
246 0 11 if ($tplayers{$target}{'protection'})
257 1 0 unless $tplayers{$target}{'macho'}
285 0 0 if $result eq 'goon'
291 0 6 if $players{$target}{'miller'}
292 0 6 if $players{$target}{'godfather'}
320 35 35 if $ROLE_HASH{$trait}
321 35 35 if $FACTION_HASH{$trait}
322 0 70 if $FLAG_HASH{$trait}