Branch Coverage

blib/lib/Net/Prometheus/ProcessCollector/linux.pm
Criterion Covered Total %
branch 16 28 57.1


line true false branch
88 5 1 unless (defined $BOOTTIME)
90 80 5 unless $line =~ /^btime /u
105 0 27 unless open my $fh, "<", "/proc/$self->{'pid'}/$path"
113 0 9 unless opendir my $dirh, "/proc/$pid/fd"
116 9 0 if $pid eq "self" or $pid == $$
124 0 9 unless defined $line
133 0 9 unless defined $statline
150 63 0 /^(\S+): (\d+)$/u ? :
192 9 0 defined $open_fds ? :
9 0 defined $limit_fds ? :
9 0 defined $io_stats{'rchar'} ? :
9 0 defined $io_stats{'wchar'} ? :
9 0 defined $io_stats{'syscr'} ? :
9 0 defined $io_stats{'syscw'} ? :