Branch Coverage

blib/lib/P9Y/ProcessTable/Role/Table/ProcFS.pm
Criterion Covered Total %
branch 23 60 38.3


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 13 unless -d $pdir
69 0 13 unless $stat
81 39 0 if -l $link
87 0 13 unless -f $file
96 13 0 if (-f $env_file)
99 3 10 unless ($@)
111 13 0 if (-f $uptime_file)
114 13 0 if $uptime =~ /^([\d\.]+)/
118 13 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) { }
141 273 312 if $stat_loc->[$i] eq '.'
142 13 299 if $i >= @$stat_loc
147 13 0 if ($clock_ticks)
149 13 0 if $boot_time
165 0 0 $P9Y::ProcessTable::Role::Table::ProcFS::Config{'longsize'} >= 8 ? :
169 0 0 if (length $data)
193 0 0 if ($data[2] == $pid)
203 0 0 if $stat_loc->[$i] eq '.'
204 0 0 if $i >= @$stat_loc
214 0 0 if (length $data)
245 0 0 if ($data[2] == $pid)
255 0 0 if $psinfo_loc->[$i] eq '.'
256 0 0 if $i >= @$psinfo_loc
276 0 0 if $stat_loc->[$i] eq '.'
277 0 0 if $i >= @$stat_loc