Condition Coverage

blib/lib/Net/Clacks/Server.pm
Criterion Covered Total %
condition 0 121 0.0


and 3 conditions

line !l l&&!r l&&r condition
115 0 0 0 $path ne "" and not $path =~ m[/$]u
161 0 0 0 defined $self->{'config'}{'ssl'} and defined $self->{'config'}{'ssl'}{'cert'}
0 0 0 defined $self->{'config'}{'ssl'} and defined $self->{'config'}{'ssl'}{'cert'} and defined $self->{'config'}{'ssl'}{'key'}
272 0 0 0 defined $config->{'socketchmod'} and $config->{'socketchmod'} ne ""
308 0 0 0 not defined $endline and $accesstimeline eq "ENDBYTES"
316 0 0 0 defined $line && defined $timestampline
424 0 0 0 defined $cc and ref $cc eq "HASH"
433 0 0 0 not $loadok and -f $previousfname
436 0 0 0 defined $cc and ref $cc eq "HASH"
444 0 0 0 not $loadok and -f $tempfname
447 0 0 0 defined $cc and ref $cc eq "HASH"
468 0 0 0 $shutdowntime and $shutdowntime < &Net::Clacks::Server::time()
474 0 0 0 $savecache and $now > $lastsavecache + $self->{'persistanceinterval'}
488 0 0 0 not defined $clients{$mcid} and $nextinterclackscheck < $now
661 0 0 0 $clients{$cid}{'lastping'} > 0 and $clients{$cid}{'lastping'} < $pingtime
674 0 0 0 $clients{$cid}{'interclacks'} and $clients{$cid}{'lastinterclacksping'} < $interclackspinginterval
679 0 0 0 not $clients{$cid}{'authok'} and $clients{$cid}{'authtimeout'} < $now
696 0 0 0 $clients{$cid}{'interclacksclient'} and $interclackslock
745 0 0 0 defined $rawbuffer and length $rawbuffer
794 0 0 0 $interclackslock and not $clients{$cid}{'interclacksclient'}
868 0 0 0 $parsedflags{'lock_for_sync'} and $clients{$cid}{'interclacksclient'}
890 0 0 0 $parsedflags{'close_all_connections'} and $value
892 0 0 0 $clients{$closecid}{'interclacks'} and $parsedflags{'forward_message'}
967 0 0 0 $cid eq $overheadcid and not $parsedflags{'return_to_sender'}
995 0 0 0 $inmsg =~ /^TIMEOUT/u and $clients{$cid}{'interclacks'}
1240 0 0 0 $line->{'type'} eq "DEBUG" and $clients{$cid}{'mirror'}
1248 0 0 0 $line->{'type'} ne "DEBUG" and defined $clients{$cid}{'listening'}{$line->{'name'}}
1313 0 0 0 $Net::Clacks::Server::ERRNO ne "" and not $Net::Clacks::Server::ERRNO{'EWOULDBLOCK'}
1319 0 0 0 defined $written and $written

or 2 conditions

line l !l condition
70 0 0 do { *$self }->{'__client_id'} || ''
250 0 0 do { *$self }->{'__client_id'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
134 0 0 0 not defined $filedata or $filedata eq ""
226 0 0 0 defined $config->{'socket'} or defined $self->{'config'}{'master'}{'socket'}
316 0 0 0 not defined $line && defined $timestampline or $endline ne "ENDBYTES"
481 0 0 0 defined $self->{'config'}{'master'}{'socket'} or defined $self->{'config'}{'master'}{'ip'}
1052 0 0 0 not defined $self->{'clackscachetime'}{$ckey} or $ctimestamp > $self->{'clackscachetime'}{$ckey}
1191 0 0 0 $cid eq $interclackscid or not $clients{$interclackscid}{'interclacks'}
1313 0 0 0 not $clients{$cid}{'socket'}->opened or $clients{$cid}{'socket'}->error
0 0 0 not $clients{$cid}{'socket'}->opened or $clients{$cid}{'socket'}->error or $Net::Clacks::Server::ERRNO ne "" and not $Net::Clacks::Server::ERRNO{'EWOULDBLOCK'}
1400 0 0 0 ref $val eq "SCALAR" or ref $val eq "REF"
1419 0 0 0 $Net::Clacks::Server::EVAL_ERROR or not $ok