Condition Coverage

blib/lib/Expect.pm
Criterion Covered Total %
condition 49 171 28.6


and 3 conditions

line !l l&&!r l&&r condition
62 0 0 0 defined $version and $version > $Expect::VERSION
65 0 0 0 defined $version and $version < 1.03
132 91 0 17 $self->raw_pty and isatty($self)
367 40 16 9 do { *$self }->{'exp_Log_File'} and ref do { *$self }->{'exp_Log_File'} ne 'CODE'
466 0 0 4811 ref $_[0] and $_[0]->isa('Expect')
630 0 4811 0 exists do { *$exp }->{'exp_Max_Accum'} and do { *$exp }->{'exp_Max_Accum'}
828 0 4763 64 $exp_cont and $exp_cont eq exp_continue()
0 4763 0 $exp_cont and $exp_cont eq exp_continue_timeout()
863 0 0 0 $!{'EINTR'} and $Expect::IgnoreEintr
907 0 2 44 $ret and $ret eq exp_continue()
949 0 9 0 $ret and $ret eq exp_continue() || $ret eq exp_continue_timeout()
988 0 4726 0 exists do { *$exp }->{'exp_Max_Accum'} and do { *$exp }->{'exp_Max_Accum'}
1000 4726 0 0 exists do { *$exp }->{'exp_Continue'} and do { *$exp }->{'exp_Continue'}
1010 23 4726 0 $exp_cont and $exp_cont eq exp_continue()
1031 0 0 0 $Expect::Debug and $exp_matched
1080 0 0 0 $parm->[0] ne '-re' and $parm->[0] ne '-ex'
1260 0 0 0 exists do { *$read_handle }->{'exp_Pid'} and do { *$read_handle }->{'exp_Pid'}
1261 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'})
1356 0 0 0 defined do { *$read_handle }->{'exp_Pid'} and do { *$read_handle }->{'exp_Pid'}
1510 0 0 0 defined $bits[$handle->fileno] and $bits[$handle->fileno]
1532 7 0 0 exists do { *$self }->{'exp_Has_EOF'} and do { *$self }->{'exp_Has_EOF'}
1542 0 0 10 defined $nfound and $nfound
1546 7 0 3 defined $nread and $nread
1553 7 0 0 $end_time <= time and do { *$self }->{'exp_Debug'}
1558 0 7 0 $close_status and do { *$self }->{'exp_Debug'}
1571 0 0 7 defined $returned_pid and $returned_pid
1597 0 0 0 defined $returned_pid and $returned_pid
1625 66 101 0 $close_status and do { *$self }->{'exp_Debug'}
1638 0 31 78 defined $returned_pid and $returned_pid
1664 0 0 0 defined $returned_pid and $returned_pid
1685 0 0 0 defined $returned_pid and $returned_pid
1773 8 7 0 defined $self and do { *$self }->{'exp_Debug'} >= 3
15 0 0 defined $self and do { *$self }->{'exp_Debug'} >= 3 and not defined $length

or 2 conditions

line l !l condition
361 5 60 $mode ||= 'a'
1071 14214 0 $store_parm_nr || 1
1776 5 10 $length ||= 1021

or 3 conditions

line l !l&&r !l&&!r condition
184 0 0 95 do { *$self }->{'exp_Debug'} or do { *$self }->{'exp_Exp_Internal'}
313 0 0 0 not defined $function or $function eq 'undef'
406 0 0 0 do { *$self }->{'exp_Debug'} or $^W
526 21 0 0 $parm eq '-re' or $parm eq '-ex'
592 0 0 0 $debug or $internal
597 0 0 4811 $debug or $internal
606 0 0 0 $debug or $internal
621 0 4720 0 ref $timeout_hook eq 'CODE' or ref $timeout_hook eq 'ARRAY'
819 0 0 4778 do { *$exp }->{'exp_Exp_Internal'} or $Expect::Debug
831 0 0 64 do { *$exp }->{'exp_Exp_Internal'} or $Expect::Debug
839 0 0 0 do { *$exp }->{'exp_Exp_Internal'} or $Expect::Debug
854 0 0 4818 $Expect::Exp_Internal or $Expect::Debug
864 0 0 0 $Expect::Exp_Internal or $Expect::Debug
868 0 0 0 $Expect::Exp_Internal or $Expect::Debug
889 0 0 69 $Expect::Debug or $Expect::Exp_Internal
893 0 0 46 $Expect::Debug or $Expect::Exp_Internal
949 0 0 9 $ret eq exp_continue() || $ret eq exp_continue_timeout()
1017 0 0 4811 $Expect::Debug or $Expect::Exp_Internal
1280 0 0 0 not defined $nfound or $nfound < 1
1458 1040 0 0 do { *$self }->{'exp_Log_Stdout'} or do { *$self }->{'exp_Log_Group'}
1466 0 0 24 not defined $ret or $ret == 0