Branch Coverage

blib/lib/Games/AssaultCube/Log/Line.pm
Criterion Covered Total %
branch 24 174 13.7


line true false branch
16 0 1 unless (defined $line and length $line)
21 0 1 if (defined $subclass)
23 0 0 if (ref $subclass eq 'CODE') { }
25 0 0 if (defined $result)
30 0 0 if (defined $result)
47 1 0 if ($@)
61 0 1 if ($text =~ /^\[([\d\.]*)\]\s+(.+)$/) { }
0 1 elsif ($text =~ /^\s*(\d+)\s+([^\s]+)\s+(\w+)\s+(-?\d+)\s+(-?\d+)\s+(-?\d+)\s+(\w+)\s+([\d\.]+)$/) { }
0 1 elsif ($text =~ /^\s*(\d+)\s+([^\s]+)\s+(\w+)\s+(-?\d+)\s+(-?\d+)\s+(\w+)\s+([\d\.]+)$/) { }
0 1 elsif ($text =~ /^\s*(\d+)\s+([^\s]+)\s+(-?\d+)\s+(-?\d+)\s+(-?\d+)\s+(\w+)\s+([\d\.]+)$/) { }
0 1 elsif ($text =~ /^\s*(\d+)\s+([^\s]+)\s+(-?\d+)\s+(-?\d+)\s+(\w+)\s+([\d\.]+)$/) { }
0 1 elsif ($text =~ /^Team\s+(\w+):\s+(\d+)\s+players,\s+(-?\d+)\s+frags(?:,\s+(-?\d+)\s+flags)?$/) { }
0 1 elsif ($text =~ /^Game\s+status:\s+(.+)\s+on\s+([^,]*),\s+(\d+)\s+[^,]+,\s+(\w+)$/) { }
0 1 elsif ($text =~ /^Game\s+status:\s+(.+)\s+on\s+([^,]+),\s+game finished,\s+(\w+)$/) { }
0 1 elsif ($text =~ /cn\s+name\s+(?:team\s+)?frag\s+death\s+(?:flags\s+)?role\s+host$/) { }
0 1 elsif ($text =~ m[^Status\s+at\s+(\d+)-(\d+)-(\d+)\s+(\d+):(\d+):(\d+):\s+(\d+)\s+remote\s+clients,\s+([\d\.]+)\s+send,\s+([\d\.]+)\s+rec\s+\(K/sec\)$]) { }
0 1 elsif ($text =~ /^Game\s+start:\s+(.+)\s+on\s+([^,]+),\s+(\d+)\s+[^,]+,\s+(\d+)\s+[^,]+,\s+mastermode\s+(\d+)/) { }
0 1 elsif ($text =~ /^at-target:\s+(-?\d+),\s+(.+)\s+pick:(\d+)$/) { }
0 1 elsif ($text =~ /^the\s+server\s+reset\s+the\s+flag\s+for\s+team\s+(\w+)$/) { }
0 1 elsif ($text =~ /^sending\s+request\s+to\s+(.+)...$/) { }
0 1 elsif ($text =~ /^masterserver\s+reply:\s+(.*)$/) { }
0 1 elsif ($text eq 'Registration successful. Due to caching it might take a few minutes to see the your server in the serverlist') { }
0 1 elsif ($text eq 'Server not registered, could not ping you. Make sure your server is accessible from the internet.') { }
0 1 elsif ($text eq 'logging local AssaultCube server now..' or $text eq 'dedicated server started, waiting for clients...' or $text eq 'Ctrl-C to exit') { }
0 1 elsif ($text =~ /^loaded\s+map\s+([^,]+),\s+(\d+)\s+\+\s+(\d+)\((\d+)\)\s+bytes\.$/) { }
0 1 elsif ($text =~ /^read\s+(\d+)\s+\((\d+)\)\s+blacklist\s+entries\s+from\s+(.+)$/) { }
1 0 elsif ($text =~ /^read\s+(\d+)\s+admin\s+passwords\s+from\s+(.*)$/) { }
0 0 elsif ($text =~ /^looking\s+up\s+(.+)\.\.\./) { }
0 0 elsif ($text =~ /^map\s+\"([^\"]+)\"\s+does\s+not\s+support\s+\"([^\"]+)\":\s+(.+)$/) { }
0 0 elsif ($text =~ /^could\s+not\s+read\s+config\s+file\s+\'(.+)\'$/) { }
0 0 elsif ($text =~ /^maprot\s+error:\s+map\s+\'(.+)\'\s+not\s+found$/) { }
0 0 elsif ($text =~ /^AssaultCube\s+fatal\s+error:\s+(.*)$/) { }
0 0 elsif ($text eq 'Demo recording started.') { }
0 0 elsif ($text =~ /^Demo\s+"\w+\s+(\w+)\s+(\d+)\s+(\d+):(\d+):(\d+)\s+(\d+):\s+([^\,]+),\s+([^\,]+),\s+([\d\.]+)(MB|kB)"\s+recorded.$/) { }
64 0 0 if ($ip) { }
65 0 0 if ($etext =~ /^([^\s]+)\s+(fragged|gibbed)\s+(his\s+teammate\s+)?(.+)$/) { }
0 0 elsif ($etext =~ /^([^\s]+)\s+says(?:\s+to\s+team\s+(\w+))?:\s+\'(.*)\'(,\s+SPAM\s+detected)?$/) { }
0 0 elsif ($etext =~ /^disconnected\s+client\s+(.*)$/) { }
0 0 elsif ($etext =~ /^disconnecting\s+client\s+([^\s]*)\s+\((.+)\)$/) { }
0 0 elsif ($etext eq 'client connected') { }
0 0 elsif ($etext =~ /^([^\s]+)\s+(dropped|lost|returned|stole)\s+the\s+flag$/) { }
0 0 elsif ($etext =~ /^runs\s+AC\s+(\d+)\s+\(defs:\s+(.+)\)$/) { }
0 0 elsif ($etext =~ /^([^\s]+)\s+scored\s+with\s+the\s+flag\s+for\s+(\w+),\s+new\s+score\s+(-?\d+)$/) { }
0 0 elsif ($etext =~ /^client\s+([^\s]+)\s+(failed\s+to\s+)?call(?:ed)?\s+a\s+vote:\s+(.*)$/) { }
0 0 elsif ($etext =~ /^(.+)\s+suicided$/) { }
0 0 elsif ($etext =~ /^([^\s]+)\s+changed\s+his\s+name\s+to\s+(.+)$/) { }
0 0 elsif ($etext =~ /^([^\s]+)\s+scored,\s+carrying\s+for\s+(\d+)\s+seconds,\s+new\s+score\s+(\d+)$/) { }
0 0 elsif ($etext =~ /^set\s+role\s+of\s+player\s+([^\s]+)\s+to\s+(\w+)(?:\s+player)?$/) { }
0 0 elsif ($etext =~ /^player\s+([^\s]+)\s+used\s+admin\s+password\s+in\s+line\s+(\d+)$/) { }
0 0 elsif ($etext =~ /^([^\s]+)\s+got\s+forced\s+to\s+pickup\s+the\s+flag$/) { }
0 0 elsif ($etext =~ /^([^\s]+)\s+failed\s+to\s+score$/) { }
0 0 elsif ($etext =~ /^logged\s+in\s+using\s+the\s+admin\s+password\s+in\s+line\s+(\d+)(,\s+\(ban\s+removed\))?$/) { }
0 0 elsif ($etext =~ /^([^\s]+)\s+says(?:\s+to\s+team\s+(\w+))?:\s+\'([^']+)$/) { }
66 0 0 $2 eq 'gibbed' ? :
0 0 defined $3 ? :
75 0 0 defined $2 ? :
0 0 defined $4 ? :
83 0 0 defined $1 ? :
121 0 0 if (defined $failure) { }
128 0 0 if (not length $vote) { }
0 0 elsif ($vote =~ /^load\s+map\s+\'(.*)\'\s+in\s+mode\s+\'(.+)\'(?:\s+\((.+)\))?$/) { }
0 0 elsif ($vote =~ /^(\w+)\s+player\s+([^\s]*)(?:\s+to\s+the\s+enemy\s+team)?(?:\s+\((.+)\))?$/) { }
0 0 elsif ($vote =~ /^shuffle\s+teams(?:\s+\((.+)\))?$/) { }
0 0 elsif ($vote =~ /^(enable|disable|remove|stop)\s+([^\(]+)(?:\s+\((.+)\))?$/) { }
0 0 elsif ($vote =~ /^change\s+(.+)(?:\s+\((.+)\))?$/) { }
0 0 elsif ($vote =~ /^set\s+(.+)(?:\s+\((.+)\))?$/) { }
0 0 elsif ($vote =~ /^\((.+)\)$/) { }
138 0 0 defined $3 ? :
147 0 0 defined $3 ? :
156 0 0 defined $2 ? :
165 0 0 defined $3 ? :
174 0 0 defined $2 ? :
183 0 0 defined $2 ? :
224 0 0 if ($2 eq 'normal')
250 0 0 defined $2 ? :
259 0 0 defined $2 ? :
276 0 0 $7 eq 'normal' ? :
287 0 0 $6 eq 'normal' ? :
297 0 0 $6 eq 'normal' ? :
308 0 0 $5 eq 'normal' ? :
318 0 0 defined $4 ? :
325 0 0 $1 eq 'ctf' ? :
333 0 0 $1 eq 'ctf' ? :
359 0 0 $1 eq 'ctf' ? :
400 0 0 if ($mapname =~ m[([^\\/]+)\.cgz$]) { }
428 0 0 $2 eq 'ctf' ? :
464 0 0 if ($10 eq 'MB') { }