Branch Coverage

blib/lib/Games/AssaultCube/Utils.pm
Criterion Covered Total %
branch 12 112 10.7


line true false branch
21 0 0 unless defined $port
52 0 0 unless defined $reason
53 0 0 if (exists $reason_name{$reason}) { }
62 0 0 unless defined $reason
63 0 0 if (exists $name_reason{$reason}) { }
76 0 0 if (defined $result) { }
101 0 0 unless defined $gun
102 0 0 if (exists $name_gun{$gun}) { }
111 0 0 unless defined $gun
112 0 0 if (exists $gun_name{$gun}) { }
133 0 9 unless defined $team
134 9 0 if (exists $name_team{$team}) { }
143 0 0 unless defined $team
144 0 0 if (exists $team_name{$team}) { }
163 0 7 unless defined $role
164 7 0 if (exists $name_role{$role}) { }
173 0 0 unless defined $role
174 0 0 if (exists $role_name{$role}) { }
194 0 2 unless defined $mode
195 2 0 if (exists $name_mode{$mode}) { }
204 0 1 unless defined $mode
205 1 0 if (exists $mode_name{$mode}) { }
222 0 0 unless (length $l)
225 0 0 if ($l =~ /^addserver\s+(\S+)\s+(\d+)\;$/) { }
271 0 0 unless (length $$str)
276 0 0 if ($c == 128) { }
0 0 elsif ($c == 127) { }
316 0 0 unless (length $$str)
366 0 0 unless defined $m
367 0 0 if (exists $mode_name{$m}) { }
376 0 1 unless defined $m
377 1 0 if (exists $name_mode{$m}) { }
417 0 0 unless defined $m
418 0 0 if (exists $mode_name{$m}) { }
427 0 5 unless defined $m
428 5 0 if (exists $name_mode{$m}) { }
462 0 0 if (defined $pong and $pong > 0) { }
464 0 0 if ($pong & 2) { }
0 0 elsif ($pong & 4) { }
0 0 elsif ($pong & 1) { }
471 0 0 if ($mm) { }
472 0 0 if ($mm == 1) { }
0 0 elsif ($mm == 2) { }
497 0 0 if ($foundcolor) { }
0 0 elsif (ord $c == 12) { }
543 0 0 if ($found) { }
0 0 elsif (ord $chars[$i] == 12) { }
544 0 0 if (exists $htmlcolors{$chars[$i]} and defined $chars[$i + 1]) { }
552 0 0 if ($incolor)
561 0 0 if ($found)
608 0 0 if (length $r)
612 0 0 if (length $r)
614 0 0 if (defined $query)
615 0 0 if ($query == 0) { }
0 0 elsif ($query == 1) { }
620 0 0 if (defined $player and $player ne '')