Branch Coverage

blib/lib/Enbld/Target.pm
Criterion Covered Total %
branch 63 94 67.0


line true false branch
52 1 13 unless ($self->_is_install_ok)
68 1 13 if 'Enbld::Feature'->is_force_install
69 1 12 if $self->is_installed
95 1 13 unless $self->_is_install_declared_ok($$declared_conditions{$self->{'name'}})
122 1 13 if 'Enbld::Feature'->is_force_install
123 10 3 unless $self->{'config'}->enabled
124 2 1 unless $condition->is_equal_to($self->{'config'}->condition)
125 1 0 if $self->{'config'}->enabled eq $self->{'attributes'}->Version
133 1 2 unless ($self->is_installed)
153 1 1 if ($index_current <= $index_enabled)
165 1 1 unless ($self->is_installed)
179 0 0 unless ($self->is_installed)
191 0 4 unless ($self->{'config'}->installed)
196 1 3 unless ($version =~ /^$form$/)
200 1 2 if ($self->{'config'}->enabled and $self->{'config'}->enabled eq $version)
204 1 1 unless ($self->{'config'}->is_installed_version($version))
222 1 2 unless $self->{'config'}->enabled
239 1 1 if ($index_current > $index_enabled)
249 27 20 if (not $self->{'config'})
313 0 26 if ($condition->modules)
338 0 2 if ($condition->modules)
357 29 0 if $self->{'attributes'}->CommandConfigure
358 28 0 if $self->{'attributes'}->CommandMake
360 1 27 if ($condition->make_test or 'Enbld::Feature'->is_make_test_all)
364 28 0 if $self->{'attributes'}->CommandInstall
370 24 3 unless @{$self->{'attributes'}->Dependencies;}
383 1 2 if ($target->is_installed)
392 1 1 $self->{'conditions'}{$dependency} ? :
395 1 1 if ($condition) { }
408 2 0 unless @{$self->{'attributes'}->Dependencies;}
414 0 0 if 'Enbld::Deployed'->is_deployed($dependency)
422 0 0 $self->{'conditions'}{$dependency} ? :
425 0 0 if ($condition) { }
438 29 0 if $self->{'attributes'}->PatchFiles
445 0 29 unless $self->{'attributes'}->CommandConfigure
452 0 29 if ($self->{'attributes'}->AdditionalArgument)
456 0 29 if ($condition->arguments)
466 28 0 if ($self->{'attributes'}->CommandConfigure)
474 0 0 if ($self->{'attributes'}->AdditionalArgument)
486 0 1 unless $self->{'attributes'}->CommandTest
494 28 0 if ($self->{'attributes'}->CommandConfigure)
501 0 0 if ($self->{'attributes'}->AdditionalArgument)
539 0 26 unless my $dirs = $self->{'attributes'}->CopyFiles
560 85 1 unless $?
562 0 1 if ($? == -1) { }
0 1 elsif ($? & 127) { }
618 0 27 if -d $depository