Branch Coverage

blib/lib/Linux/Info.pm
Criterion Covered Total %
branch 20 36 55.5


line true false branch
288 2 12 if @_
318 0 15 ref $_[0] eq 'HASH' ? :
324 1 14 if exists $args->{'sysinfo'}
329 1 16 unless exists $opts->{$opt}
331 0 16 if (ref $args->{$opt}) { }
0 16 elsif (not $args->{$opt} =~ qr/^[012]\z/) { }
341 16 0 if ($opts->{$opt}) { }
0 0 elsif (exists $obj->{$opt}) { }
351 15 1 unless ($obj->{$opt})
352 0 15 if (ref $args->{$opt}) { }
362 11 5 if ($opts->{$opt} == 1 and UNIVERSAL::can($package, 'init'))
400 0 12 if $time
404 15 249 if ($self->{'opts'}{$opt})
406 1 14 if ($opt eq 'netstats')
467 0 0 if ($self->{'opts'}{$opt} > 0 and UNIVERSAL::can(ref $self->{'obj'}{$opt}, 'init'))
489 0 0 @_ ? :
513 0 0 unless $self->{'timeformat'}
515 0 0 wantarray ? :