Branch Coverage

blib/lib/Net/SSH/Mechanize/Session.pm
Criterion Covered Total %
branch 29 48 60.4


line true false branch
67 0 0 unless my $text = $h->rbuf
77 0 2 unless my $text = $h->rbuf
94 7 23 unless $handle->{'rbuf'}
96 5 18 unless (@captures)
119 0 23 unless exists $states->{$state}
123 5 18 unless ($states->{$state})
149 0 2 if ($self->is_logged_in)
175 2 2 if (_match($stdin, $passwd_prompt_re))
176 0 2 unless ($self->connection_params->has_password)
185 0 2 if (_match($stdin, $initial_prompt_re))
194 0 2 if (_match($stdin, $passwd_prompt_re))
200 2 0 if (_match($stdin, $initial_prompt_re))
209 2 0 if (_match($stdin, $prompt_re))
240 0 2 unless $self->is_logged_in
254 0 3 unless $self->is_logged_in
281 0 6 unless defined $handle->{'rbuf'}
288 3 3 unless $cumdata =~ /(.*?)$prompt_re/ms
316 0 3 unless $self->is_logged_in
326 0 3 unless ($self->connection_params->has_password)
363 3 3 if (_match($stdin, $sudo_passwd_prompt_re))
375 0 3 if (_match($stdin, $sudo_passwd_prompt_re))
381 3 0 if (_match($stdin, $prompt_re))
393 3 0 if (my($data) = _match($stdin, qr/(.*?)$prompt_re/ms))
414 3 0 if (_match($stdin, $prompt_re))