Branch Coverage

blib/lib/Games/Roguelike/World/Daemon.pm
Criterion Covered Total %
branch 21 60 35.0


line true false branch
105 1 0 unless $$r{'tick'}
110 0 1 if $$r{'addr'}
111 0 1 if $$r{'host'}
112 0 1 if $$r{'port'}
119 0 1 unless $$r{'main_sock'}
121 0 1 unless $$r{'stdout'}
150 1 0 if ($$r{'main_sock'})
180 1 1 unless $$self{'ts'}
188 1 1 if ($sock == $$self{'main_sock'}) { }
192 1 0 if ($new_sock)
195 0 1 if ($WIN32) { }
204 1 1 if defined $$self{$_}
217 1 0 if $$self{'vp'} and not $$self{'vp'}{'con'}
221 0 1 if ($sock->eof or not $sock->connected or *$sock{'HASH'}{'errc'} > 5) { }
232 0 1 if $$self{'vp'} and not $$self{'vp'}{'con'}
236 1 0 if ($$self{'state'} eq 'QUIT')
238 1 0 if *$sock{'HASH'}{'char'}
254 0 2 if ($rem >= $$self{'tick'})
266 0 0 if (*$sock{'HASH'}{'char'})
308 0 0 if $_ =~ /\w/
320 0 0 if (not defined $b) { }
0 0 elsif ($b eq 'BACKSPACE') { }
0 0 elsif (length $b > 1 or $b eq '') { }
321 0 0 if $first
325 0 0 if (length *$sock{'HASH'}{'sbuf'} > 0)
336 0 0 if $first
340 0 0 if ($b eq "\n" or $b eq "\r")
359 0 0 unless (defined $c)
474 0 0 if ($$char{'move'}) { }
478 0 0 if $msg