Branch Coverage

blib/lib/Gentoo/Probe.pm
Criterion Covered Total %
branch 11 72 15.2


line true false branch
29 8 0 if "$@"
30 0 0 unless defined $_
51 7 1 @_ ? :
52 0 8 unless ref $passed
59 1 7 unless defined $_
62 0 7 unless defined $_
65 7 0 unless defined $_
68 0 0 unless defined $_
69 0 0 unless m[^/]
74 0 0 if (not defined $pats) { }
0 0 elsif (ref $pats eq 'ARRAY') { }
0 0 elsif (ref $pats) { }
86 0 0 unless ref $pats eq 'ARRAY'
88 0 0 if $self->builds or $self->latest
89 0 0 unless ($$self{'installed'} or $$self{'uninstalled'})
117 0 0 if (/^canna-2ch/) { }
0 0 elsif (/^font-adobe-\d+dpi/) { }
129 0 0 if (opendir my $DIR, $dir)
131 0 0 if $_ ne '.' and $_ ne 'CVS' and $_ ne '..'
136 0 0 if $allowfail
142 0 0 if $self->latest
143 0 0 if ($self->builds) { }
0 0 elsif ($self->versions) { }
164 0 0 unless @_
167 0 0 if /$re/
186 0 0 unless ($self->installed)
188 0 0 if $pkg{$_} & 2
191 0 0 unless ($self->uninstalled)
193 0 0 unless $pkg{$_} & 2
199 0 0 unless $self->check_pats($qua, @pats)
200 0 0 if ($self->versions) { }
209 0 0 unless ($self->uninstalled)
211 0 0 unless $ver{$_} & 2
223 0 8 unless $self->isa('Gentoo::Probe')
230 0 0 if @_
232 84 16 unless defined &$key