Condition Coverage

lib/Rex/Task.pm
Criterion Covered Total %
condition 50 70 71.4


and 3 conditions

line !l l&&!r l&&r condition
123 39 1 220 exists $self->{'connection'} and $self->{'connection'}
189 0 274 18 ref $self->{'server'} eq "ARRAY" and scalar @{$self->{'server'};} > 0
197 1 0 28 ref $srv and $srv->isa("Rex::Group::Entry::Server")
288 7 3 14 exists $self->{'server'} and scalar @{$self->{'server'};} > 0
316 10 36 0 $self->{'connection_type'} && lc $self->{'connection_type'} eq 'http'
328 10 36 0 $self->{'connection_type'} && lc $self->{'connection_type'} eq 'https'
340 9 0 1 $self->{'connection_type'} && lc $self->{'connection_type'} eq 'openssh'
383 36 9 1 $self->is_remote and $self->is_openssh
45 1 0 $self->is_remote and $self->is_openssh and $self->want_connect
36 5 5 $self->is_remote and $self->want_connect
441 0 0 39 exists $self->{'auth'} and $self->{'auth'}{'user'}
465 0 0 2 exists $self->{'auth'} and $self->{'auth'}{'password'}
535 0 16 2 $old_server and $old_server ne $$server
749 29 0 0 defined $args{'d'} and $args{'d'} > 2

or 2 conditions

line l !l condition
99 2 243 $self->{'no_ssh'} ||= 0
100 244 1 $self->{'func'} ||= sub { }
102 32 213 $self->{'opts'} ||= {}
103 32 213 $self->{'args'} ||= []
528 6 0 $self->{'__was_authenticated'} || 0
654 149 147 $data ||= ""
801 0 54 $options{'opts'} ||= {$self->get_opts}
802 6 48 $options{'args'} ||= [$self->get_args]

or 3 conditions

line l !l&&r !l&&!r condition
90 0 245 0 ref $that || $that
101 244 1 0 $self->{'executor'} ||= "Rex::Interface::Executor"->create
249 1 1 0 $self->{'current_server'} || 'Rex::Group::Entry::Server'->new('name', '')
803 21 33 0 $options{'params'} ||= $options{'opts'}