Branch Coverage

blib/lib/Mojo/SNMP/Dispatcher.pm
Criterion Covered Total %
branch 1 38 2.6


line true false branch
8 0 12 $ENV{'MOJO_SNMP_DEBUG'} ? :
19 0 0 if @_ == 1
20 0 0 defined $format ? :
28 0 0 unless (ref $pdu)
62 0 0 unless (defined $transport and defined($fileno = $transport->fileno))
67 0 0 if ($self->{'descriptors'}{$fileno}++)
87 0 0 if --$self->{'descriptors'}{$fileno} > 0
98 0 0 unless (defined $msg)
103 0 0 unless (defined $msg->send)
104 0 0 if ($pdu->expect_response)
107 0 0 if ($retries-- > 0 and $!{'EAGAIN'} or $!{'EWOULDBLOCK'})
117 0 0 if ($pdu->expect_response)
131 0 0 if ($retries-- > 0) { }
149 0 0 unless (defined $msg)
152 0 0 unless (defined $msg->recv)
154 0 0 unless $transport->connectionless
157 0 0 unless ($msg->length)
161 0 0 unless (defined $mp->prepare_data_elements($msg))
165 0 0 if ($mp->error)