Branch Coverage

blib/lib/Linux/Info/NetStats.pm
Criterion Covered Total %
branch 13 26 50.0


line true false branch
146 0 1 ref $_[0] ? :
155 0 1 if (defined $opts->{'initfile'})
169 0 1 if ($self->{'initfile'} and -r $self->{'initfile'}) { }
183 0 1 unless (exists $self->{'init'})
190 0 1 if ($self->{'initfile'})
223 2 0 $file->{'path'} ? :
224 0 2 unless open my $fh, '<', $filename
228 4 4 unless $line =~ /^\s*(.+?):\s*(.*)/
253 0 2 unless (exists $istat->{$dev})
262 0 36 unless (defined $idev->{$k})
266 0 36 unless ($v =~ /^\d+\z/ and $ldev->{$k} =~ /^\d+\z/)
270 36 0 if ($ldev->{$k} == $idev->{$k} or $idev->{$k} > $ldev->{$k}) { }
0 0 elsif ($delta > 0) { }