Branch Coverage

blib/lib/Linux/Info/ProcStats.pm
Criterion Covered Total %
branch 18 30 60.0


line true false branch
134 0 2 ref $_[0] ? :
144 0 2 if (defined $opts->{'initfile'})
158 0 2 if ($self->{'initfile'} and -r $self->{'initfile'}) { }
172 0 2 unless (exists $self->{'init'})
179 0 2 if ($self->{'initfile'})
205 4 0 $file->{'path'} ? :
206 0 4 unless open my $fh, '<', $filename
222 4 0 $file->{'path'} ? :
223 0 4 unless open my $fh, '<', $filename
227 4 92 if ($line =~ /^processes\s+(\d+)/) { }
8 84 elsif ($line =~ /^procs_(blocked|running)\s+(\d+)/) { }
248 0 2 unless (defined $istat->{'new'} and defined $lstat->{'new'})
251 0 2 unless ($istat->{'new'} =~ /^\d+\z/ and $lstat->{'new'} =~ /^\d+\z/)
257 1 1 if ($lstat->{'new'} == $istat->{'new'} or $istat->{'new'} > $lstat->{'new'}) { }
1 0 elsif ($delta > 0) { }