Branch Coverage

blib/lib/Sys/Statistics/Linux/NetStats.pm
Criterion Covered Total %
branch 15 26 57.6


line true false branch
128 0 1 ref $_[0] ? :
137 0 1 if (defined $$opts{'initfile'})
152 0 1 if ($$self{'initfile'} and -r $$self{'initfile'}) { }
165 0 1 unless (exists $$self{'init'})
172 0 1 if ($$self{'initfile'})
204 2 0 $$file{'path'} ? :
205 0 2 unless open my $fh, '<', $filename
208 4 4 unless $line =~ /^\s*(.+?):\s*(.*)/
231 0 2 unless (exists $$istat{$dev})
240 0 36 unless (defined $$idev{$k})
244 0 36 unless ($v =~ /^\d+\z/ and $$ldev{$k} =~ /^\d+\z/)
248 32 4 if ($$ldev{$k} == $$idev{$k} or $$idev{$k} > $$ldev{$k}) { }
4 0 elsif ($delta > 0) { }