Branch Coverage

blib/lib/Sys/Statistics/Linux/PgSwStats.pm
Criterion Covered Total %
branch 19 34 55.8


line true false branch
116 0 1 ref $_[0] ? :
126 0 1 if (defined $$opts{'initfile'})
141 0 1 if ($$self{'initfile'} and -r $$self{'initfile'}) { }
154 0 1 unless (exists $$self{'init'})
161 0 1 if ($$self{'initfile'})
186 2 0 $$file{'path'} ? :
187 0 2 unless open my $fh, '<', $filename
190 0 48 if ($line =~ /^page\s+(\d+)\s+(\d+)$/) { }
0 48 elsif ($line =~ /^swap\s+(\d+)\s+(\d+)$/) { }
202 2 0 unless (defined $stats{'pswpout'})
203 2 0 $$file{'path'} ? :
204 0 2 unless open my $fh, '<', $filename
206 214 12 unless $line =~ /^(pgpgin|pgpgout|pswpin|pswpout|pgfault|pgmajfault)\s+(\d+)/
225 0 6 unless (defined $$istat{$k} and defined $$lstat{$k})
229 0 6 unless ($v =~ /^\d+\z/ and $$istat{$k} =~ /^\d+\z/)
233 1 5 if ($$lstat{$k} == $$istat{$k} or $$istat{$k} > $$lstat{$k}) { }
5 0 elsif ($delta > 0) { }