Branch Coverage

blib/lib/P9Y/ProcessTable/Role/Table/ProcFS.pm
Criterion Covered Total %
branch 22 58 37.9


line true false branch
36 48 24 unless $pdir->is_dir
37 13 11 unless -e $pdir->file('status')
38 1 10 unless $pdir->basename =~ /^\d+$/
47 0 0 $^O eq /solaris|sunos/i ? :
66 1 12 unless -d $pdir
77 36 0 if -l $link
83 0 12 unless -f $file
91 12 0 if (-f $env_file)
94 2 10 unless ($@)
105 12 0 if (-f $uptime_file)
108 12 0 if $uptime =~ /^([\d\.]+)/
112 12 0 if (-f $pdir->file('status') and -f $pdir->file('statm') and -f $pdir->file('stat')) { }
0 0 elsif ($^O =~ /solaris|sunos/i) { }
0 0 elsif ($^O =~ /dragonfly|bsd/i) { }
135 252 288 if $stat_loc->[$i] eq '.'
136 12 276 if $i >= @$stat_loc
141 12 0 if ($clock_ticks)
143 12 0 if $boot_time
159 0 0 $P9Y::ProcessTable::Role::Table::ProcFS::Config{'longsize'} >= 8 ? :
163 0 0 if (length $data)
187 0 0 if ($data[2] == $pid)
197 0 0 if $stat_loc->[$i] eq '.'
198 0 0 if $i >= @$stat_loc
208 0 0 if (length $data)
239 0 0 if ($data[2] == $pid)
249 0 0 if $psinfo_loc->[$i] eq '.'
250 0 0 if $i >= @$psinfo_loc
270 0 0 if $stat_loc->[$i] eq '.'
271 0 0 if $i >= @$stat_loc