Branch Coverage

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


line true false branch
20 0 11 $ENV{'MOJO_SNMP_DEBUG'} ? :
57 0 0 if @_ == 1
58 0 0 defined $format ? :
74 0 0 unless (ref $pdu)
133 0 0 unless (defined $transport and defined($fileno = $transport->fileno))
138 0 0 if ($self->{'descriptors'}{$fileno}++)
164 0 0 if --$self->{'descriptors'}{$fileno} > 0
175 0 0 unless (defined $msg)
180 0 0 unless (defined $msg->send)
181 0 0 if ($pdu->expect_response)
184 0 0 if ($retries-- > 0 and $!{'EAGAIN'} or $!{'EWOULDBLOCK'})
194 0 0 if ($pdu->expect_response)
208 0 0 if ($retries-- > 0) { }
226 0 0 unless (defined $msg)
229 0 0 unless (defined $msg->recv)
231 0 0 unless $transport->connectionless
234 0 0 unless ($msg->length)
238 0 0 unless (defined $mp->prepare_data_elements($msg))
242 0 0 if ($mp->error)