Branch Coverage

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


line true false branch
49 11 0 if (not $ret)
55 236 0 unless $UseDebugging
413 0 0 if ($cpp_line =~ /\s*#include\s*<.+search starts here/)
420 0 0 if ($path =~ /\s*End of search list/)
519 79 0 $glob ? :
531 0 118 if (exists do { $self->udefclass . '::' }->{$field})
543 0 118 if ($@)
557 0 0 unless defined $ref
580 0 39 if ($options{$basekey . '_override'}) { }
607 0 13 if (ref $library eq 'ARRAY') { }
613 2 11 if ($options{'file_path'}) { }
615 1 1 if (-r $options{'file_path'}) { }
628 0 11 if $lib =~ /^(.*)\s+(!=|=|>=|<=|>|<)\s+(.*)$/
632 0 11 if (not $o->errmsg and defined $op)
633 0 0 if $op eq '='
634 0 0 unless (eval " PkgConfig::Version->new(\$o->pkg_version) $op \$ver ")
636 0 0 $o->pkg_version ? :
656 26 0 unless $ldflag =~ /^-Wl/
662 0 0 unless (@wlflags)
671 1 11 unless @ld_flags
691 20 2 unless $requires
698 2 0 unless @reqlist
708 0 0 if ($cmp_op) { }
0 0 elsif ($reqlist[0] =~ /[<>=]+/) { }
709 0 0 if ($req =~ /[<>=]+$/) { }
733 11 118 unless $line
738 0 118 unless defined $value
740 56 62 if ($tok eq '=')
773 5 113 if $value =~ /[\\"']/
790 0 11 unless open my $fh, '<', $pcfile
817 0 11 if ($self->static)
821 0 11 if ($self->static)
831 0 11 if ($self->static)
835 11 0 if ($self->recursion == 1 and not $self->pkg_exists)
842 11 0 unless ($self->no_recurse)
845 0 2 if defined $cmp_op
847 1 1 if ($other->errmsg)
874 1 10 unless (@found_paths)
876 1 0 unless $self->errmsg
901 12 6 wantarray ? :
944 0 0 unless -d $d
946 0 0 if ($pc =~ m[/([^\\\/]+)\.pc$])
965 0 24 unless (@flags)
968 23 1 if (@flags == 1)
970 2 21 unless $str
986 0 59 if (exists $seen_hash{$elem})
1002 0 44 if (grep {$_ eq $elem;} @$exclude)
1029 0 0 scalar @a_want > scalar @a_have ? :
1034 0 0 if ($a_want[$i] > $a_have[$i])
1056 6 0 defined $value ? :
1071 28 4 defined $self->[0] || defined $other->[0] ? :