Condition Coverage

lib/App/Tel.pm
Criterion Covered Total %
condition 23 79 29.1


and 3 conditions

line !l l&&!r l&&r condition
225 1 1 1 $hostname =~ tr/:// < 2 and $hostname =~ /(\S+):(\d+)$/
423 1 1 0 $type ne 'password' and $type ne 'enable'
425 0 0 2 defined $profile->{$type} and $profile->{$type} ne ''
431 0 0 0 $profile->{$type} eq '' and $profile->{'password'} ne ''
0 0 0 $type eq 'enable' and ($profile->{$type} eq '' and $profile->{'password'} ne '')
469 1 0 1 not $renew and defined $self->{'session'}
472 1 0 0 $session and $session->pid
578 0 0 1 defined $App::Tel::rtr->{'sshoptions'} and scalar $App::Tel::rtr->{'sshoptions'} > 0
645 0 0 0 $App::Tel::rtr->{'hostsearch'} and not $App::Tel::rtr->{'hostsearched'}
820 0 0 0 exists do { *$read_handle }->{'exp_Pid'} and do { *$read_handle }->{'exp_Pid'}
821 0 0 0 exists do { *$read_handle }->{'exp_Pid'} and do { *$read_handle }->{'exp_Pid'}
0 0 0 exists do { *$read_handle }->{'exp_Pid'} and do { *$read_handle }->{'exp_Pid'} and not kill(0, do { *$read_handle }->{'exp_Pid'})
930 0 0 0 defined do { *$read_handle }->{'exp_Pid'} and do { *$read_handle }->{'exp_Pid'}

or 2 conditions

line l !l condition
421 1 1 $type ||= 'password'
609 0 0 $p ||= 22
610 0 0 $p ||= 23
668 0 1 $App::Tel::rtr->{'logoutcmd'} ||= 'logout'
669 0 1 $App::Tel::rtr->{'prompt'} ||= '#'

or 3 conditions

line l !l&&r !l&&!r condition
326 1 0 0 $host =~ /$h2/i or check_hostrange($h2, $host)
386 1 0 1 $profile->{'user'} ||= $ENV{'USER'}
542 0 1 0 $profile->{'ena_username_prompt'} ||= qr/[Uu]ser[Nn]ame:|Login:/
543 0 1 0 $profile->{'ena_password_prompt'} ||= qr/[Pp]ass[Ww]ord/
595 0 1 0 $App::Tel::rtr->{'username_prompt'} ||= qr/[Uu]ser[Nn]ame:|[Ll]ogin:/
596 0 1 0 $App::Tel::rtr->{'password_prompt'} ||= qr/[Pp]ass[Ww]ord/
598 0 0 1 $self->{'port'} ||= $self->{'opts'}{'p'}
599 0 0 1 $self->{'port'} ||= $App::Tel::rtr->{'port'}
687 0 0 0 $file ||= $self->{'hostname'}
840 0 0 0 not defined $nfound or $nfound < 1