Branch Coverage

blib/lib/Expect/Simple.pm
Criterion Covered Total %
branch 22 40 55.0


line true false branch
27 0 2 unless my $attr = shift()
32 0 8 unless exists $$obj{$attr}
42 0 14 unless defined $$obj{$_}
48 2 0 'ARRAY' eq ref $$obj{'Prompt'} ? :
52 0 2 if ($@)
70 0 2 if $$obj{'Verbose'}
78 2 0 if $$obj{'RawPty'}
96 1 1 'ARRAY' eq ref $$obj{'Cmd'} ? :
99 0 2 unless ($success)
106 0 2 if $$obj{'Verbose'}
111 0 2 $$obj{'Verbose'} > 3 ? :
114 0 2 unless $obj->_expect(@{$$obj{'Prompt'};})
123 0 2 unless $$obj{'_conn'} and not defined $$obj{'_conn'}->exitstatus
125 0 2 if $$obj{'Verbose'}
130 0 2 unless $$obj{'_conn'}->exp_error =~ /^(2|3)/
152 0 4 if $$obj{'Verbose'} and not $$obj{'_conn'}->log_stdout
156 0 4 unless $obj->_expect(@{$$obj{'Prompt'};})
177 2 6 unless (defined $match)
181 0 2 if (/^1/) { }
2 0 elsif (/^(2|3)/) { }