Branch Coverage

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


line true false branch
470 2 13 if @_
477 0 16 ref $_[0] eq 'HASH' ? :
484 1 15 if exists $args->{'sysinfo'}
489 1 17 unless exists $opts->{$opt}
491 0 17 if (ref $args->{$opt}) { }
0 17 elsif (not $args->{$opt} =~ qr/^[012]\z/) { }
501 17 0 if ($opts->{$opt}) { }
0 0 elsif (exists $obj->{$opt}) { }
511 16 1 unless ($obj->{$opt})
512 0 16 if (ref $args->{$opt}) { }
522 11 6 if ($opts->{$opt} == 1 and UNIVERSAL::can($package, 'init'))
538 0 0 if ($self->{'opts'}{$opt} > 0 and UNIVERSAL::can(ref $self->{'obj'}{$opt}, 'init'))
548 0 13 if $time
552 16 270 if ($self->{'opts'}{$opt})
554 1 15 if ($opt eq 'netstats')
565 0 0 @_ ? :
571 0 0 unless $self->{'timeformat'}
573 0 0 wantarray ? :