Branch Coverage

blib/lib/PkgConfig.pm
Criterion Covered Total %
branch 50 102 49.0


line true false branch
50 10 0 if (not $ret)
56 236 0 unless $UseDebugging
415 0 0 if ($cpp_line =~ /\s*#include\s*<.+search starts here/)
422 0 0 if ($path =~ /\s*End of search list/)
521 79 0 $glob ? :
533 0 118 if (exists do { $self->udefclass . '::' }->{$field})
545 0 118 if ($@)
559 0 0 unless defined $ref
582 0 39 if ($options{$basekey . '_override'}) { }
609 0 13 if (ref $library eq 'ARRAY') { }
615 2 11 if ($options{'file_path'}) { }
617 1 1 if (-r $options{'file_path'}) { }
630 0 11 if $lib =~ /^(.*)\s+(!=|=|>=|<=|>|<)\s+(.*)$/
634 0 11 if (not $o->errmsg and defined $op)
635 0 0 if $op eq '='
636 0 0 unless (eval " PkgConfig::Version->new(\$o->pkg_version) $op \$ver ")
638 0 0 $o->pkg_version ? :
658 26 0 unless $ldflag =~ /^-Wl/
664 0 0 unless (@wlflags)
673 1 11 unless @ld_flags
693 20 2 unless $requires
700 2 0 unless @reqlist
710 0 0 if ($cmp_op) { }
0 0 elsif ($reqlist[0] =~ /[<>=]+/) { }
711 0 0 if ($req =~ /[<>=]+$/) { }
735 11 118 unless $line
740 0 118 unless defined $value
742 56 62 if ($tok eq '=')
775 5 113 if $value =~ /[\\"']/
792 0 11 unless open my $fh, '<', $pcfile
819 0 11 if ($self->static)
823 0 11 if ($self->static)
833 0 11 if ($self->static)
837 11 0 if ($self->recursion == 1 and not $self->pkg_exists)
844 11 0 unless ($self->no_recurse)
847 0 2 if defined $cmp_op
849 1 1 if ($other->errmsg)
876 1 10 unless (@found_paths)
878 1 0 unless $self->errmsg
903 12 6 wantarray ? :
946 0 0 unless -d $d
948 0 0 if ($pc =~ m[/([^\\\/]+)\.pc$])
967 0 24 unless (@flags)
970 23 1 if (@flags == 1)
972 2 21 unless $str
988 0 59 if (exists $seen_hash{$elem})
1004 0 44 if (grep {$_ eq $elem;} @$exclude)
1031 0 0 scalar @a_want > scalar @a_have ? :
1036 0 0 if ($a_want[$i] > $a_have[$i])
1058 6 0 defined $value ? :
1073 28 4 defined $self->[0] || defined $other->[0] ? :