Branch Coverage

blib/lib/Alien/Build/Plugin/PkgConfig/CommandLine.pm
Criterion Covered Total %
branch 18 36 50.0


line true false branch
27 3 18 File::Which::which('pkg-config') ? :
1 21 File::Which::which('pkgconf') ? :
1 22 File::Which::which($ENV{'PKG_CONFIG'}) ? :
54 0 0 if ($prop_name =~ /version$/) { }
58 0 0 if ($prop_name =~ /^(.*?)\.(.*?)\.(.*?)$/) { }
80 2 0 unless (defined $meta->prop->{'env'}{'PKG_CONFIG'})
85 0 2 ref $self->pkg_name ? :
89 1 1 if (defined $self->minimum_version) { }
0 1 elsif (defined $self->atleast_version) { }
98 0 2 if (defined $self->exact_version)
103 0 2 if (defined $self->max_version)
130 0 0 if $build->hook_prop->{'name'} eq "gather_system" and ($build->install_prop->{'system_probe_instance_id'} || '') ne $self->instance_id
136 2 4 $prop_name eq 'version' ? :
139 0 6 if (@alt_names)
153 0 4 if (@alt_names)
165 0 2 if ($meta->prop->{'platform'}{'system_type'} eq "windows-mingw")
168 0 0 if (ref $_ eq 'ARRAY') { }
182 0 0 if (keys %{$build->runtime_prop->{"alt"};} < 2)