Branch Coverage

blib/lib/Sys/Statistics/Linux/ProcStats.pm
Criterion Covered Total %
branch 17 30 56.6


line true false branch
116 0 2 ref $_[0] ? :
126 0 2 if (defined $$opts{'initfile'})
141 0 2 if ($$self{'initfile'} and -r $$self{'initfile'}) { }
154 0 2 unless (exists $$self{'init'})
161 0 2 if ($$self{'initfile'})
186 4 0 $$file{'path'} ? :
187 0 4 unless open my $fh, '<', $filename
200 4 0 $$file{'path'} ? :
201 0 4 unless open my $fh, '<', $filename
204 4 92 if ($line =~ /^processes\s+(\d+)/) { }
8 84 elsif ($line =~ /^procs_(blocked|running)\s+(\d+)/) { }
224 0 2 unless (defined $$istat{'new'} and defined $$lstat{'new'})
227 0 2 unless ($$istat{'new'} =~ /^\d+\z/ and $$lstat{'new'} =~ /^\d+\z/)
233 0 2 if ($$lstat{'new'} == $$istat{'new'} or $$istat{'new'} > $$lstat{'new'}) { }
2 0 elsif ($delta > 0) { }