Branch Coverage

lib/Rex/TaskList/Base.pm
Criterion Covered Total %
branch 52 72 72.2


line true false branch
48 0 212 if (exists $self->{'tasks'}{$task_name})
56 0 212 if (ref $desc eq 'CODE') { }
65 39 173 if (scalar keys %{$$self{"tasks"};} == 2)
69 0 39 if ($task_name ne "Commands:Box:get_sys_info" and $task_name ne "Test:run" and $requested_env ne "" and not grep({$_ eq $requested_env;} @environments))
87 1 211 if ($main::FORCE_SERVER) { }
89 0 1 if (ref $main::FORCE_SERVER eq 'ARRAY') { }
93 0 0 if (not 'Rex::Group'->is_group($group_name)) { }
97 0 0 unless ("Rex::Group"->is_group($group_name))
128 13 198 if (scalar @_ >= 1)
129 6 7 if ($_[0] eq 'group') { }
131 1 5 if (ref $_[1] eq 'ARRAY') { }
139 6 1 if ('Rex::Group'->is_group($group)) { }
144 0 6 if (scalar @group_server == 0 and "Rex::Config"->get_allow_empty_groups == 0)
162 0 1 unless ("Rex::Group"->is_group($group))
168 1 0 if (ref $_ and $_->isa('Rex::Group::Entry::Server')) { }
182 1 9 ref $entry && $entry->isa('Rex::Group::Entry::Server') ? :
205 1 211 $options->{'no_ssh'} ? :
2 210 $options->{'dont_register'} ? :
1 211 exists $options->{'exit_on_connect_fail'} ? :
217 207 5 if ($self->{'DEFAULT_AUTH'})
227 1 211 if (exists $Rex::Commands::auth_late{$task_name})
258 3 3 if (grep {/^$host$/u;} @servers or $#servers == -1)
288 126 66 if (exists $self->{'tasks'}{$task})
297 0 138 unless (ref $task)
307 3 135 if ($self->{'IN_TRANSACTION'}) { }
343 3 29 if ($self->{'IN_TRANSACTION'}) { }
344 2 1 if $@
348 5 24 $@ ? :
369 5 80 if ($package ne "main" and $package ne "Rex::CLI")
370 4 1 unless ($task =~ /:/u)
380 5 80 if ($package ne 'main' and $package ne 'Rex:CLI') { }
388 0 85 unless (@all_tasks)
429 138 0 if $threads =~ /^(\d+)$/u
430 0 0 if $threads =~ m[^max\s?/(\d+)$]u
431 0 0 if $threads =~ /^max (\d+)%$/u
432 0 0 if $threads eq "max"