Condition Coverage

lib/Rex/Group/Entry/Server.pm
Criterion Covered Total %
condition 30 52 57.6


and 3 conditions

line !l l&&!r l&&r condition
100 0 0 83 ref $_ and $_->isa("Rex::Group::Entry::Server")
155 34 36 0 not "Rex::Config"->has_user and "Rex::Config"->get_ssh_config_username("server", $self->to_s)
188 86 2 0 exists $self->{'auth'}{'public_key'} and -f $self->{'auth'}{'public_key'}
195 49 39 0 not "Rex::Config"->has_public_key and "Rex::Config"->get_ssh_config_public_key("server", $self->to_s)
213 86 2 0 exists $self->{'auth'}{'private_key'} and -f $self->{'auth'}{'private_key'}
220 49 39 0 not "Rex::Config"->has_private_key and "Rex::Config"->get_ssh_config_private_key("server", $self->to_s)
238 88 0 0 exists $self->{'auth'}{'auth_type'} and $self->{'auth'}{'auth_type'}
242 86 2 0 exists $self->{'auth'}{'public_key'} and -f $self->{'auth'}{'public_key'}
88 0 0 exists $self->{'auth'}{'public_key'} and -f $self->{'auth'}{'public_key'} and exists $self->{'auth'}{'private_key'}
0 0 0 exists $self->{'auth'}{'public_key'} and -f $self->{'auth'}{'public_key'} and exists $self->{'auth'}{'private_key'} and -f $self->{'auth'}{'private_key'}
70 0 18 exists $self->{'auth'}{'user'} and $self->{'auth'}{'user'}
0 0 18 exists $self->{'auth'}{'user'} and $self->{'auth'}{'user'} and exists $self->{'auth'}{'password'}
0 0 18 exists $self->{'auth'}{'user'} and $self->{'auth'}{'user'} and exists $self->{'auth'}{'password'} and $self->{'auth'}{'password'} ne ""
304 448 151 105 exists $other_auth->{$key} and defined $other_auth->{$key}
599 4 101 exists $other_auth->{$key} and defined $other_auth->{$key} and "Rex::Config"->get_use_server_auth == 0

or 2 conditions

line l !l condition
205 49 39 'Rex::Config'->get_public_key || ''
230 49 39 'Rex::Config'->get_private_key || ''

or 3 conditions

line l !l&&r !l&&!r condition
39 0 592 0 ref $that || $that