Condition Coverage

blib/lib/Mojo/TFTPd.pm
Criterion Covered Total %
condition 24 30 80.0


and 3 conditions

line !l l&&!r l&&r condition
240 3 1 2 $connection->receive_ack($datagram) and $connection->send_data
243 1 1 3 $connection->receive_data($datagram) and $connection->send_ack
292 9 0 1 $rfc{'timeout'} and $rfc{'timeout'} >= 0
9 0 1 $rfc{'timeout'} and $rfc{'timeout'} >= 0 and $rfc{'timeout'} <= 255
295 8 1 1 $type eq 'wrq' and $rfc{'tsize'}
301 4 0 5 %rfc and $connection->send_oack
324 3 1 3 $scheme and not defined $port

or 2 conditions

line l !l condition
66 0 3 $ENV{'MOJO_TFTPD_CHECK_INACTIVE_INTERVAL'} || 3
302 1 0 $connection->error // 'No filehandle'
327 4 3 $port //= 69

or 3 conditions

line l !l&&r !l&&!r condition
301 5 0 4 %rfc and $connection->send_oack or $type eq 'rrq' ? $connection->send_data : $connection->send_ack