Branch Coverage

blib/lib/Sys/Statistics/Linux/Compilation.pm
Criterion Covered Total %
branch 35 74 47.3


line true false branch
221 0 46 unless $$self{$stat}
222 0 46 if (@keys)
225 0 46 wantarray ? :
233 0 103 unless $$self{$stat}
234 0 103 if ($sub)
236 0 0 unless exists $$ref{$sub}
237 0 0 if (@keys) { }
240 0 0 wantarray ? :
243 0 103 wantarray ? :
250 0 16 unless (ref $stats eq 'HASH')
258 2 0 ref $_[0] eq 'HASH' ? :
264 0 5 unless (ref $$filter{$opt} eq 'HASH')
269 0 5 unless exists $$self{$opt}
279 0 10 if (ref $$fref{$x} eq 'HASH') { }
282 0 0 unless exists $$proc{$x}
286 0 0 if (exists $$subref{$name} and $self->_compare($$subref{$name}, $value))
292 29 2 if (ref $$proc{$key} eq 'HASH') { }
294 0 29 if (ref $$subref{$x} eq 'HASH') { }
29 0 elsif (defined $$subref{$x} and $self->_compare($$subref{$x}, $$fref{$x})) { }
296 0 0 if ($self->_compare($$subref{$x}{$y}, $$fref{$x}))
304 2 0 if (defined $$proc{$x} and $self->_compare($$proc{$x}, $$fref{$x}))
314 0 2 wantarray ? :
319 1 0 ref $_[0] eq 'HASH' ? :
320 0 1 unless my $proc = $$self{'processes'}
326 4 0 if (exists $$proc{$key})
327 0 4 if (ref $$proc{$key} eq 'HASH') { }
4 0 elsif ($self->_compare($$proc{$key}, $value)) { }
329 0 0 if ($self->_compare($v, $value))
342 0 1 wantarray ? :
347 0 1 unless ($key)
356 1 0 if ($count)
359 1 0 wantarray ? :
369 11 24 if (ref $y eq 'Regexp') { }
1 23 elsif ($y =~ s/^eq://) { }
2 21 elsif ($y =~ s/^ne://) { }
3 18 elsif ($y =~ s/^gt://) { }
18 0 elsif ($y =~ s/^lt://) { }