Condition Coverage

blib/lib/Net/TFTP.pm
Criterion Covered Total %
condition 2 44 4.5


and 3 conditions

line !l l&&!r l&&r condition
127 0 1 1 defined $local and defined $io
183 0 0 0 defined $local and defined $io
434 0 0 0 $self->{'eof'} and length $self->{'ibuf'} == 0
442 0 0 0 exists $self->{'sock'} and not exists $self->{'closing'}
660 0 0 0 length $self->{'obuf'} == 0 and $self->{'blksize'} == 1

or 2 conditions

line l !l condition
320 0 0 $_[2] || 0
512 0 0 $self->{'error'} ||= 'Protocol error'
534 0 0 $self->{'sock'} || (return -1)
688 0 0 $self->{'sock'} || (return -1)

or 3 conditions

line l !l&&r !l&&!r condition
297 0 0 0 UNIVERSAL::isa($self, 'GLOB') && tied *$self || $self
340 0 0 0 exists $self->{'error'} or not exists $self->{'ibuf'}
634 0 0 0 $self->{'peer'} ||= $peer
748 0 0 0 $code == 3 or $code == 4
0 0 0 $code == 3 or $code == 4 or $code == 5
754 0 0 0 $code == 1 or $code == 2
0 0 0 $code == 1 or $code == 2 or $code == 6