Branch Coverage

lib/Rex/Commands/Box.pm
Criterion Covered Total %
branch 1 46 2.1


line true false branch
191 0 0 if (-f ".box.cache")
198 0 0 unless ($found_box)
204 0 0 unless open my $fh, ">", ".box.cache"
209 0 0 if (wantarray)
237 0 0 if ($box->status eq "stopped")
247 0 0 if (-f ".box.cache")
255 0 0 if (exists $Rex::Commands::Box::vm_infos{$box_name})
260 0 0 if ($pid == 0)
277 0 0 unless (eval { do { $Rex::Commands::Box::vm_infos{$box_name} = run_task("Commands:Box:get_sys_info", "on", $box_ip) } })
297 0 0 unless open my $fh, ">", ".box.cache"
346 0 0 if (substr($action, 0, 1) eq "-")
350 0 0 if ($action eq "init")
352 0 0 if (-f ".box.cache")
360 0 0 if (ref $yaml_ref->{'vms'} eq 'HASH') { }
384 0 0 if (ref $vm_ref->{$key} eq 'HASH') { }
0 0 elsif (ref $vm_ref->{$key} eq 'ARRAY') { }
402 0 0 if ($action eq "stop")
409 0 0 if ($action eq "start")
425 0 0 unless (-f $file)
434 0 0 unless (exists $yaml_ref->{'type'})
442 0 0 if (exists $$yaml_ref{lc $type}) { }
0 0 elsif (exists $yaml_ref->{$type}) { }
455 0 3 if ($option{'init_file'})