Branch Coverage

lib/Command/Interactive.pm
Criterion Covered Total %
branch 52 60 86.6


line true false branch
162 1 19 unless $command
165 14 5 if ($self->always_use_expect or @{$self->interactions;}) { }
174 2 2 if ($cfh) { }
180 1 1 $? >> 8 ? :
186 9 9 $result ? :
200 20 2 unless $self->echo_output
202 1 1 if $self->web_format
228 0 14 unless $e
243 8 12 if ($match_position) { }
12 0 elsif ($error) { }
249 3 5 if length $before
251 8 0 if length $after
259 7 1 unless $$occurrences[$match_position]
261 1 7 if ($i->is_error)
266 1 6 if ($$occurrences[$match_position] > $i->max_allowed_occurrences)
277 1 5 if ($i->response)
282 11 1 if ($error eq '2:EOF' or $error =~ /3:Child PID (\d+) exited with/) { }
1 0 elsif ($error eq '1:TIMEOUT') { }
0 0 elsif ($error =~ /^3: (.+)/) { }
0 0 elsif ($error =~ /^4:(.+)/) { }
287 2 5 if ($i->is_required and not $$occurrences[$count])
307 11 3 if $e->exp_before
308 13 1 unless $already_closed
310 2 12 if $e->exp_before
311 13 1 unless $already_closed
313 1 13 if ($e->exitstatus and not defined $result)
334 2 8 if $i->expected_string_is_regex
356 18 1 unless $use_command =~ /2>&1/
375 3 38 if ($self->debug_logfile)
377 1 2 unless $f