Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
107 0 0 0 defined $self->{'initHasRun'} and $self->{'initHasRun'}
133 0 0 0 $self->{'shutdowntime'} and $self->{'shutdowntime'} < &Net::Clacks::Server::time()
139 0 0 0 $self->{'savecache'} and $now > $self->{'lastsavecache'} + $self->{'persistanceinterval'}
184 0 0 0 $self->{'interclackslock'} and not $self->{'clients'}{$cid}{'interclacksclient'}
395 0 0 0 not $loadok and -f $previousfname
402 0 0 0 not $loadok and -f $tempfname
421 0 0 0 defined $self->{'initHasRun'} and $self->{'initHasRun'}
438 0 0 0 $path ne "" and not $path =~ m[/$]u
484 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'}
616 0 0 0 defined $config->{'socketchmod'} and $config->{'socketchmod'} ne ""
716 0 0 0 not defined $endline and $accesstimeline eq "ENDBYTES"
724 0 0 0 defined $line && defined $timestampline
848 0 0 0 not defined $self->{'clients'}{$mcid} and $self->{'nextinterclackscheck'} < $now
1029 0 0 0 $self->{'clients'}{$cid}{'lastping'} > 0 and $self->{'clients'}{$cid}{'lastping'} < $pingtime
1042 0 0 0 $self->{'clients'}{$cid}{'interclacks'} and $self->{'clients'}{$cid}{'lastinterclacksping'} < $interclackspinginterval
1047 0 0 0 not $self->{'clients'}{$cid}{'authok'} and $self->{'clients'}{$cid}{'authtimeout'} < $now
1078 0 0 0 $self->{'clients'}{$cid}{'interclacksclient'} and $self->{'interclackslock'}
1084 0 0 0 $self->{'clients'}{$cid}{'interclacksclient'} and $self->{'interclackslock'}
1133 0 0 0 defined $rawbuffer and length $rawbuffer
1170 0 0 0 $forceclientid ne "" and $forceclientid ne $cid
1173 0 0 0 $cid ne $forceclientid and contains($cid, $self->{'toremove'})
1197 0 0 0 $Net::Clacks::Server::ERRNO ne "" and not $Net::Clacks::Server::ERRNO{'EWOULDBLOCK'}
1203 0 0 0 defined $written and $written
1222 0 0 0 $self->{'cache'}{$ckey}{'deleted'} and $self->{'cache'}{$ckey}{'cachetime'} < $deletedtime
1238 0 0 0 not $self->{'cache'}{$ckey}{'deleted'} and $self->{'cache'}{$ckey}{'accesstime'} < $staletime
1264 0 0 0 $line->{'type'} eq "DEBUG" and $self->{'clients'}{$cid}{'mirror'}
1272 0 0 0 $line->{'type'} ne "DEBUG" and defined $self->{'clients'}{$cid}{'listening'}{$line->{'name'}}
1356 0 0 0 $parsedflags{'lock_for_sync'} and $self->{'clients'}{$cid}{'interclacksclient'}
1370 0 0 0 defined $self->{'cache'}{$ckey}{'cachetime'} and &looks_like_number($self->{'cache'}{$ckey}{'cachetime'})
1373 0 0 0 defined $self->{'cache'}{$ckey}{'accesstime'} and &looks_like_number($self->{'cache'}{$ckey}{'accesstime'})
1376 0 0 0 defined $self->{'cache'}{$ckey}{'deleted'} and $self->{'cache'}{$ckey}{'deleted'}
1395 0 0 0 $parsedflags{'close_all_connections'} and $value
1397 0 0 0 $self->{'clients'}{$closecid}{'interclacks'} and $parsedflags{'forward_message'}
1445 0 0 0 defined $self->{'cache'}{$ckey}{'cachetime'} and &looks_like_number($self->{'cache'}{$ckey}{'cachetime'})
1448 0 0 0 defined $self->{'cache'}{$ckey}{'accesstime'} and &looks_like_number($self->{'cache'}{$ckey}{'accesstime'})
1451 0 0 0 defined $self->{'cache'}{$ckey}{'deleted'} and $self->{'cache'}{$ckey}{'deleted'}
1489 0 0 0 $cid eq $overheadcid and not $parsedflags{'return_to_sender'}
1558 0 0 0 defined $self->{'cache'}{$ckey} and not $self->{'cache'}{$ckey}{'deleted'}
1584 0 0 0 defined $self->{'cache'}{$ckey} and not $self->{'cache'}{$ckey}{'deleted'}
0 0 0 defined $self->{'cache'}{$ckey} and not $self->{'cache'}{$ckey}{'deleted'} and &looks_like_number($self->{'cache'}{$ckey}{'data'})
1605 0 0 0 defined $self->{'cache'}{$ckey} and not $self->{'cache'}{$ckey}{'deleted'}
0 0 0 defined $self->{'cache'}{$ckey} and not $self->{'cache'}{$ckey}{'deleted'} and &looks_like_number($self->{'cache'}{$ckey}{'data'})
1638 0 0 0 $inmsg =~ /^TIMEOUT/u and $self->{'clients'}{$cid}{'interclacks'}

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
146 0 0 0 defined $self->{'config'}{'master'}{'socket'} or defined $self->{'config'}{'master'}{'ip'}
251 0 0 0 $cid eq $interclackscid or not $self->{'clients'}{$interclackscid}{'interclacks'}
329 0 0 0 ref $val eq "SCALAR" or ref $val eq "REF"
346 0 0 0 $Net::Clacks::Server::EVAL_ERROR or not $ok
457 0 0 0 not defined $filedata or $filedata eq ""
570 0 0 0 defined $config->{'socket'} or defined $self->{'config'}{'master'}{'socket'}
724 0 0 0 not defined $line && defined $timestampline or $endline ne "ENDBYTES"
1197 0 0 0 not $self->{'clients'}{$cid}{'socket'}->opened or $self->{'clients'}{$cid}{'socket'}->error
0 0 0 not $self->{'clients'}{$cid}{'socket'}->opened or $self->{'clients'}{$cid}{'socket'}->error or $Net::Clacks::Server::ERRNO ne "" and not $Net::Clacks::Server::ERRNO{'EWOULDBLOCK'}
1514 0 0 0 not defined $self->{'cache'}{$ckey} or $ctimestamp > $self->{'cache'}{$ckey}{'cachetime'}