| line | % | coverage | condition |
| 168 | 100 | | defined $host || defined $port |
| 169 | 100 | | $opt{'token'} // "" |
| 170 | 100 | | $opt{$_} // "" |
| 175 | 100 | | defined $host and defined $port |
| 244 | 67 | | $set{'max_queued_total'} //= $set{'max_queued'} * 4 |
| 324 | 100 | | $given || {} |
| 375 | 100 | | $@ || 'invalid options' |
| 398 | 50 | | $@ || 'unknown error' |
| 431 | 67 | | defined $self->{'owner_pid'} and $self->{'owner_pid'} != $$ |
| 439 | 100 | | $self->{'owns_socket'} and -e $self->{'socket'} |
| 460 | 50 | | $@ || 'unknown error' |
| 464 | 50 | | $@ || 'unknown error' |
| 516 | 50 | | open $pid_fh, ">", $pid_path and print {$pid_fh;} "${$}\n" and close $pid_fh |
| 571 | 100 | | defined $self->{'host'} and defined $self->{'port'} |
| 597 | 50 | | IO::Socket::SSL::errstr() || "$!" || 'unknown error' |
| 657 | 33 | | not defined $write_deadline or $deadline < $write_deadline |
| 671 | 100 | | not defined $read_deadline or $deadline < $read_deadline |
| 677 | 67 | | not defined $timeout or $wait < $timeout |
| 682 | 33 | | not defined $timeout or $wait < $timeout |
| 692 | 0 | | not defined $timeout or $wait < $timeout |
| 702 | 33 | | defined $ready && $ready > 0 |
| 705 | 67 | | not defined $ready or $ready <= 0 |
| 722 | 50 | | $readable or $client->{'want_write'} and $writable |
| 725 | 67 | | $readable or $writable |
| 728 | 67 | | $writable and not $client->{'closed'} |
| 777 | 67 | | $client->{'partial_started'} //= $now |
| 780 | 50 | | $_->{'buffer'} // "" |
| 784 | 0 | | $Class::Shared::Backend::b->{'partial_started'} // $now |
| 0 | | $Class::Shared::Backend::a->{'partial_started'} // $now |
| 814 | 100 | | not $client->{'greeted'} and defined $client->{'greet_by'} |
| 815 | 67 | | @partial and $partial[0] < $client->{'greet_by'} |
| 825 | 25 | | $self->{'idle_timeout'} and defined $client->{'last_request'} and not length $client->{'outbuf'} |
| 849 | 33 | | length $readable and vec $readable, fileno $client->{'fh'}, 1 |
| 871 | 33 | | $limit and defined $self->{'log'} |
| 874 | 100 | | lstat $path and -f _ and -s _ > $limit |
| 884 | 20 | | A | B | C | D | dec |
|---|
| 0 | X | X | X | 0 | | 1 | 0 | X | X | 0 | | 1 | 1 | 0 | X | 0 | | 1 | 1 | 1 | 0 | 0 | | 1 | 1 | 1 | 1 | 1 |
| @named and -f _ and $named[0] == $opened[0] and $named[1] == $opened[1] |
| 929 | 20 | | A | B | C | D | dec |
|---|
| 0 | 0 | 0 | 0 | 0 | | 0 | 0 | 0 | 1 | 1 | | 0 | 0 | 1 | X | 1 | | 0 | 1 | X | X | 1 | | 1 | X | X | X | 1 |
| $!{'EMFILE'} or $!{'ENFILE'} or $!{'ENOBUFS'} or $!{'ENOMEM'} |
| 959 | 67 | | fcntl $fh, 2, 1 and defined $fh->blocking(0) |
| 980 | 50 | | IO::Socket::SSL::errstr() || 'cannot start a handshake' |
| 1038 | 100 | | defined $error and $error == IO::Socket::SSL::SSL_WANT_READ() |
| 1043 | 100 | | defined $error and $error == IO::Socket::SSL::SSL_WANT_WRITE() |
| 1048 | 100 | | IO::Socket::SSL::errstr() || 'handshake failed' |
| 1064 | 67 | | $!{'EAGAIN'} or $!{'EWOULDBLOCK'} |
| 1067 | 100 | | $fh->can($want) and $fh->$want |
| 1070 | 100 | | $direction eq "write" and $fh->can("want_read") and $fh->want_read |
| 1093 | 50 | | $! || 'unknown error' |
| 1144 | 100 | | $client->{'closed'} || $client->{'greeted'} |
| 75 | | not $client->{'closed'} || $client->{'greeted'} and defined $client->{'greet_by'} and $client->{'greet_by'} <= &Time::HiRes::time() |
| 1197 | 33 | | waitpid($pid, 0) == -1 and $!{'EINTR'} |
| 1209 | 100 | | defined $reason && length $reason |
| 1223 | 100 | | $client->{'objects'} || {} |
| 1253 | 100 | | $encode_error || 'unknown error' |
| 1301 | 100 | | $client->{'closed'} or not length $client->{'outbuf'} |
| 1316 | 100 | | $! || 'unknown error' |
| 1397 | 100 | | defined $message->{'proto'} && !ref($message->{'proto'}) |
| 1411 | 67 | | defined $wanted and length $wanted |
| 1414 | 50 | | $@ || 'bad class name' |
| 1480 | 100 | | defined $id and $id =~ /\A\d+\z/a |
| 1494 | 100 | | defined $method and length $method |
| 1514 | 100 | | $method eq "new" or $method eq "DESTROY" or $method eq "AUTOLOAD" |
| 1520 | 100 | | $method eq "can" or $method eq "isa" |
| 1534 | 100 | | $target->can($method) or $target->can("AUTOLOAD") |
| 1700 | 33 | | not defined $second or $second > 0 |
| 1723 | 100 | | $! || 'unknown error' |
| 1736 | 100 | | unlink $path or $!{'ENOENT'} |
| 1769 | 100 | | not defined $self->{'logger'} or $self->{'logger_pid'} != $$ |