Branch Coverage

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


line true false branch
494 2 13 if @_
501 0 16 ref $_[0] eq 'HASH' ? :
508 1 15 if exists $args->{'sysinfo'}
513 1 17 unless exists $opts->{$opt}
515 0 17 if (ref $args->{$opt}) { }
0 17 elsif (not $args->{$opt} =~ qr/^[012]\z/) { }
525 17 0 if ($opts->{$opt}) { }
0 0 elsif (exists $obj->{$opt}) { }
535 16 1 unless ($obj->{$opt})
536 0 16 if (ref $args->{$opt}) { }
546 11 6 if ($opts->{$opt} == 1 and UNIVERSAL::can($package, 'init'))
562 0 0 if ($self->{'opts'}{$opt} > 0 and UNIVERSAL::can(ref $self->{'obj'}{$opt}, 'init'))
572 0 13 if $time
576 16 270 if ($self->{'opts'}{$opt})
578 1 15 if ($opt eq 'netstats')
589 0 0 @_ ? :
595 0 0 unless $self->{'timeformat'}
597 0 0 wantarray ? :