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
414 0 0 if ($cpp_line =~ /\s*#include\s*<.+search starts here/)
421 0 0 if ($path =~ /\s*End of search list/)
520 79 0 $glob ? :
532 0 118 if (exists do { $self->udefclass . '::' }->{$field})
544 0 118 if ($@)
558 0 0 unless defined $ref
581 0 39 if ($options{$basekey . '_override'}) { }
608 0 13 if (ref $library eq 'ARRAY') { }
614 2 11 if ($options{'file_path'}) { }
616 1 1 if (-r $options{'file_path'}) { }
629 0 11 if $lib =~ /^(.*)\s+(!=|=|>=|<=|>|<)\s+(.*)$/
633 0 11 if (not $o->errmsg and defined $op)
634 0 0 if $op eq '='
635 0 0 unless (eval " PkgConfig::Version->new(\$o->pkg_version) $op \$ver ")
637 0 0 $o->pkg_version ? :
657 26 0 unless $ldflag =~ /^-Wl/
663 0 0 unless (@wlflags)
672 1 11 unless @ld_flags
692 20 2 unless $requires
699 2 0 unless @reqlist
709 0 0 if ($cmp_op) { }
0 0 elsif ($reqlist[0] =~ /[<>=]+/) { }
710 0 0 if ($req =~ /[<>=]+$/) { }
734 11 118 unless $line
739 0 118 unless defined $value
741 56 62 if ($tok eq '=')
774 5 113 if $value =~ /[\\"']/
791 0 11 unless open my $fh, '<', $pcfile
818 0 11 if ($self->static)
822 0 11 if ($self->static)
832 0 11 if ($self->static)
836 11 0 if ($self->recursion == 1 and not $self->pkg_exists)
843 11 0 unless ($self->no_recurse)
846 0 2 if defined $cmp_op
848 1 1 if ($other->errmsg)
875 1 10 unless (@found_paths)
877 1 0 unless $self->errmsg
902 12 6 wantarray ? :
945 0 0 unless -d $d
947 0 0 if ($pc =~ m[/([^\\\/]+)\.pc$])
966 0 24 unless (@flags)
969 23 1 if (@flags == 1)
971 2 21 unless $str
987 0 59 if (exists $seen_hash{$elem})
1003 0 44 if (grep {$_ eq $elem;} @$exclude)
1030 0 0 scalar @a_want > scalar @a_have ? :
1035 0 0 if ($a_want[$i] > $a_have[$i])
1057 6 0 defined $value ? :
1072 28 4 defined $self->[0] || defined $other->[0] ? :