Branch Coverage

blib/lib/Alien/Build/Plugin/PkgConfig/LibPkgConf.pm
Criterion Covered Total %
branch 7 38 18.4


line true false branch
44 3 0 unless (defined $meta->prop->{'env'}{'PKG_CONFIG'})
48 0 3 File::Which::which('pkg-config') ? :
0 3 File::Which::which('pkgconf') ? :
54 0 3 if defined $command_line
58 1 2 if ($self->register_prereqs)
63 0 0 if (defined $self->minimum_version or defined $self->atleast_version or defined $self->exact_version or defined $self->max_version)
69 0 3 ref $self->pkg_name ? :
82 0 0 unless $pkg
86 0 0 unless defined $self->atleast_version
87 0 0 if ($atleast_version)
90 0 0 if (PkgConfig::LibPkgConf::Util::compare_version($pkg->version, $atleast_version) < 0)
96 0 0 if ($self->exact_version)
99 0 0 if (PkgConfig::LibPkgConf::Util::compare_version($pkg->version, $self->exact_version) != 0)
105 0 0 if ($self->max_version)
108 0 0 if (PkgConfig::LibPkgConf::Util::compare_version($pkg->version, $self->max_version) > 0)
117 0 0 unless $pkg
129 0 0 if $build->hook_prop->{'name'} eq "gather_system" and ($build->install_prop->{'system_probe_instance_id'} || '') ne $self->instance_id
137 0 0 unless defined $pkg
153 0 0 if (keys %{$build->runtime_prop->{"alt"};} == 1)