Branch Coverage

blib/lib/Enbld/Target.pm
Criterion Covered Total %
branch 64 96 66.6


line true false branch
53 1 13 unless ($self->_is_install_ok)
57 0 13 $version ? :
70 1 13 if 'Enbld::Feature'->is_force_install
71 1 12 if $self->is_installed
95 1 13 unless $self->_is_install_declared_ok($$declared_conditions{$$self{'name'}})
124 1 13 if 'Enbld::Feature'->is_force_install
125 10 3 unless $$self{'config'}->enabled
126 2 1 unless $condition->is_equal_to($$self{'config'}->condition)
127 1 0 if $$self{'config'}->enabled eq $$self{'attributes'}->Version
135 1 2 unless ($self->is_installed)
155 1 1 if ($index_current <= $index_enabled)
167 1 1 unless ($self->is_installed)
181 0 0 unless ($self->is_installed)
193 0 4 unless ($$self{'config'}->installed)
198 1 3 unless ($version =~ /^$form$/)
202 1 2 if ($$self{'config'}->enabled and $$self{'config'}->enabled eq $version)
206 1 1 unless ($$self{'config'}->is_installed_version($version))
224 1 2 unless $$self{'config'}->enabled
241 1 1 if ($index_current > $index_enabled)
251 27 20 if (not $$self{'config'})
315 0 26 if ($condition->module_file)
340 0 2 if ($condition->module_file)
359 29 0 if $$self{'attributes'}->CommandConfigure
360 28 0 if $$self{'attributes'}->CommandMake
362 1 27 if ($condition->make_test or 'Enbld::Feature'->is_make_test_all)
366 28 0 if $$self{'attributes'}->CommandInstall
372 24 3 unless @{$$self{'attributes'}->Dependencies;}
385 1 2 if ($target->is_installed)
393 1 1 $$self{'conditions'}{$dependency} ? :
397 1 1 if ($condition) { }
410 2 0 unless @{$$self{'attributes'}->Dependencies;}
416 0 0 if 'Enbld::Deployed'->is_deployed($dependency)
423 0 0 $$self{'conditions'}{$dependency} ? :
427 0 0 if ($condition) { }
440 29 0 if $$self{'attributes'}->PatchFiles
447 0 29 unless $$self{'attributes'}->CommandConfigure
454 0 29 if ($$self{'attributes'}->AdditionalArgument)
458 0 29 if ($condition->arguments)
468 28 0 if ($$self{'attributes'}->CommandConfigure)
476 0 0 if ($$self{'attributes'}->AdditionalArgument)
488 0 1 unless $$self{'attributes'}->CommandTest
496 28 0 if ($$self{'attributes'}->CommandConfigure)
503 0 0 if ($$self{'attributes'}->AdditionalArgument)
542 0 26 unless my $dirs = $$self{'attributes'}->CopyFiles
563 85 1 unless $?
565 0 1 if ($? == -1) { }
0 1 elsif ($? & 127) { }
621 0 27 if -d $depository