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
114 0 0 0 $path ne "" and not $path =~ m[/$]u
160 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'}
274 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
422 0 0 0 defined $cc and ref $cc eq "HASH"
431 0 0 0 not $loadok and -f $previousfname
434 0 0 0 defined $cc and ref $cc eq "HASH"
442 0 0 0 not $loadok and -f $tempfname
445 0 0 0 defined $cc and ref $cc eq "HASH"
466 0 0 0 $shutdowntime and $shutdowntime < &Net::Clacks::Server::time()
472 0 0 0 $savecache and $now > $lastsavecache + $self->{'persistanceinterval'}
486 0 0 0 not defined $clients{$mcid} and $nextinterclackscheck < $now
659 0 0 0 $clients{$cid}{'lastping'} > 0 and $clients{$cid}{'lastping'} < $pingtime
672 0 0 0 $clients{$cid}{'interclacks'} and $clients{$cid}{'lastinterclacksping'} < $interclackspinginterval
677 0 0 0 not $clients{$cid}{'authok'} and $clients{$cid}{'authtimeout'} < $now
694 0 0 0 $clients{$cid}{'interclacksclient'} and $interclackslock
743 0 0 0 defined $rawbuffer and length $rawbuffer
792 0 0 0 $interclackslock and not $clients{$cid}{'interclacksclient'}
866 0 0 0 $parsedflags{'lock_for_sync'} and $clients{$cid}{'interclacksclient'}
888 0 0 0 $parsedflags{'close_all_connections'} and $value
890 0 0 0 $clients{$closecid}{'interclacks'} and $parsedflags{'forward_message'}
965 0 0 0 $cid eq $overheadcid and not $parsedflags{'return_to_sender'}
993 0 0 0 $inmsg =~ /^TIMEOUT/u and $clients{$cid}{'interclacks'}
1238 0 0 0 $line->{'type'} eq "DEBUG" and $clients{$cid}{'mirror'}
1246 0 0 0 $line->{'type'} ne "DEBUG" and defined $clients{$cid}{'listening'}{$line->{'name'}}
1311 0 0 0 $Net::Clacks::Server::ERRNO ne "" and not $Net::Clacks::Server::ERRNO{'EWOULDBLOCK'}
1317 0 0 0 defined $written and $written

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
133 0 0 0 not defined $filedata or $filedata eq ""
228 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"
479 0 0 0 defined $self->{'config'}{'master'}{'socket'} or defined $self->{'config'}{'master'}{'ip'}
1050 0 0 0 not defined $self->{'clackscachetime'}{$ckey} or $ctimestamp > $self->{'clackscachetime'}{$ckey}
1189 0 0 0 $cid eq $interclackscid or not $clients{$interclackscid}{'interclacks'}
1311 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'}
1394 0 0 0 ref $val eq "SCALAR" or ref $val eq "REF"
1411 0 0 0 $Net::Clacks::Server::EVAL_ERROR or not $ok