Condition Coverage

blib/lib/Net/Telnet.pm
Criterion Covered Total %
condition 0 168 0.0


and 3 conditions

line !l l&&!r l&&r condition
403 0 0 0 defined $output_ref and ref $output_ref eq 'ARRAY'
674 0 0 0 defined $globref and defined fileno $globref
785 0 0 0 $s->{'timedout'} and defined $timeout
0 0 0 $s->{'timedout'} and defined $timeout and $timeout == 0
0 0 0 $s->{'timedout'} and defined $timeout and $timeout == 0 and not length $s->{'buf'}
788 0 0 0 $s->{'errormsg'} and not $s->{'timedout'}
1145 0 0 0 $Socket::VERSION >= 1.94 and defined $AF_INET6
1373 0 0 0 defined $maxbufsize and $maxbufsize =~ /^\d+$/
0 0 0 defined $maxbufsize and $maxbufsize =~ /^\d+$/ and $maxbufsize
1484 0 0 0 defined $timeout and &_have_alarm
1567 0 0 0 length $localhost and not $local_addr
1758 0 0 0 defined $callback and ref $callback eq 'CODE'
2141 0 0 0 defined $AF_INET6 and $s->{'sock_family'} == $AF_INET6
2197 0 0 0 defined $callback and ref $callback eq 'CODE'
2593 0 0 0 !defined($nfound) || $nfound <= 0 and $s->{'select_supported'}
2594 0 0 0 defined $nfound and $nfound == 0
2648 0 0 0 $s->{'telnet_mode'} and index($s->{'buf'}, "\377", $unparsed_pos) > -1
2789 0 0 0 not length $nextchar and $s->{'telnet_mode'} || !$s->{'bin_mode'}
2876 0 0 0 $s->{'subopt_cback'} and length $subcmd >= 5
2979 0 0 0 $option >= 0 and $option <= $#Net::Telnet::Telopts
3044 0 0 0 $is_remote and $opt == &TELOPT_ECHO
3047 0 0 0 $is_enabled and not $was_enabled
0 0 0 not $is_enabled and $was_enabled
3448 0 0 0 $Socket::VERSION >= 1.94 and defined $AF_INET6
3477 0 0 0 defined $rs and length $rs
3497 0 0 0 $Socket::VERSION >= 1.94 and defined $AF_INET6
3636 0 0 0 !defined($nfound) || $nfound <= 0 and $s->{'select_supported'}
3637 0 0 0 defined $nfound and $nfound == 0

or 3 conditions

line l !l&&r !l&&!r condition
147 0 0 0 /^-?input_record_separator$/i or /^-?rs$/i
0 0 0 /^-?output_field_separator$/i or /^-?ofs$/i
0 0 0 /^-?output_record_separator$/i or /^-?ors$/i
395 0 0 0 /^-?input_record_separator$/i or /^-?rs$/i
0 0 0 /^-?output_record_separator$/i or /^-?ors$/i
524 0 0 0 not defined $name or $name eq ''
705 0 0 0 $^O ne 'MSWin32' || -S $self
847 0 0 0 /^-?input_record_separator$/i or /^-?rs$/i
941 0 0 0 /^-?input_record_separator$/i or /^-?rs$/i
1037 0 0 0 not defined $name or $name eq ''
1350 0 0 0 $match =~ /login[: ]*$/i or $match =~ /username[: ]*$/i
1524 0 0 0 $err or not @ai
1548 0 0 0 $err or not @ai
1610 0 0 0 $err or not @ai
1634 0 0 0 $err or not @ai
1782 0 0 0 not defined $name or $name eq ''
1871 0 0 0 not defined $name or $name eq ''
2386 0 0 0 $match_op =~ m[^\s*/] or $match_op =~ /^\s*m\s*\W/
2426 0 0 0 $@ or @warns
2593 0 0 0 !defined($nfound) || $nfound <= 0
2789 0 0 0 $s->{'telnet_mode'} || !$s->{'bin_mode'}
2839 0 0 0 $nextchar eq "\375" or $nextchar eq "\373"
0 0 0 $nextchar eq "\375" or $nextchar eq "\373" or $nextchar eq "\374"
0 0 0 $nextchar eq "\375" or $nextchar eq "\373" or $nextchar eq "\374" or $nextchar eq "\376"
3374 0 0 0 not defined $blksize or $blksize < 512
0 0 0 not defined $blksize or $blksize < 512 or $blksize > 1048576
3556 0 0 0 $prompt =~ m[^\s*/] or $prompt =~ /^\s*m\s*\W/
3636 0 0 0 !defined($nfound) || $nfound <= 0