| line | % | coverage | condition |
| 63 | 100 | | shift @ARGV || 'help' |
| 65 | 67 | | $opt{'help'} or $command eq "help" |
| 109 | 50 | | $@ || 'unknown error' |
| 117 | 0 | | $@ || 'unknown error' |
| 128 | 0 | | $response->{'error'} || 'the backend refused the request' |
| 157 | 0 | | $response->{'error'} || 'the backend refused to shut down' |
| 168 | 25 | | defined $opt{'listen'} or defined $opt{'host'} or defined $opt{'port'} |
| 191 | 33 | | $^O eq "linux" or $^O eq "freebsd" |
| 207 | 33 | | defined $host or defined $port |
| 221 | 75 | | defined $host xor defined $port |
| 225 | 75 | | defined $host and defined $opt{'socket'} and length $opt{'socket'} |
| 237 | 67 | | defined $opt{'socket'} && length $opt{'socket'} |
| 239 | 50 | | $@ || 'cannot work out the socket path' |
| 245 | 33 | | defined $opt{'log'} and length $opt{'log'} |
| 251 | 67 | | defined $opt{'token_file'} and length $opt{'token_file'} |
| 276 | 33 | | defined $tls{'tls_fingerprint'} and length $tls{'tls_fingerprint'} |
| 280 | 67 | | defined $tls{$_} && length $tls{$_} |
| 289 | 67 | | defined $tls{$_} && length $tls{$_} |
| 291 | 67 | | defined $tls{'tls_ca'} && length $tls{'tls_ca'} |
| 292 | 67 | | defined $tls{'tls_fingerprint'} && length $tls{'tls_fingerprint'} |
| 294 | 67 | | $has_ca or $has_pin |
| 298 | 100 | | $has_ca and $has_pin |
| 351 | 33 | | defined $why and length $why |
| 380 | 50 | | defined $host and defined $hello_error and $hello_error =~ /closed by peer|read failed|write failed/ |
| 406 | 50 | | $hello->{'error'} || 'the backend refused the handshake' |
| 430 | 67 | | ref $refusal eq "HASH" and not $refusal->{'ok'} |
| 449 | 67 | | -e $socket and time < $deadline |
| 468 | 67 | | print {*STDOUT;} $text and "STDOUT"->flush |