Branch Coverage

lib/Mail/Pyzor/Client.pm
Criterion Covered Total %
branch 11 24 45.8


line true false branch
267 0 2 unless my $thread_id = $msg_ref->{'Thread'}
280 1 4 unless $op
281 2 2 unless $digest
307 0 2 if ($PYZOR_PROTOCOL_VERSION ne $response_pv)
330 0 2 if ($time_left <= 0)
335 0 0 unless (defined $bytes or $!{'EAGAIN'} or $!{'EWOULDBLOCK'})
339 2 0 if (index($response, "\n\n") > -1)
343 2 0 if (index($response, "\nThread: $thread_id\n") != -1) { }
352 0 0 if $found == -1
362 0 0 unless IO::SigGuard::syswrite($sock, $packet)
371 0 1 if (defined $self->{'_sock_pid'} and $self->{'_sock_pid'} != $$)
379 1 0 unless $self->{'_sock'} ||= 'IO::Socket::INET'->new('PeerHost', $self->{'_server_host'}, 'PeerPort', $self->{'_server_port'}, 'Proto', 'udp')