Branch Coverage

blib/lib/Proc/ProcessTable/piddler.pm
Criterion Covered Total %
branch 0 134 0.0


line true false branch
139 0 0 if (defined $_[1])
237 0 0 if (defined $_[1])
241 0 0 unless (defined $pids[0])
271 0 0 if (defined $proc_keys_hash{'pctmem'})
274 0 0 if (defined $proc_keys_hash{'groups'})
277 0 0 if (defined $proc_keys_hash{'cmdline'})
284 0 0 if (defined $pids_hash{$proc->pid})
289 0 0 unless (defined $procs[0])
317 0 0 if (not defined $user) { }
336 0 0 if (not defined $group) { }
354 0 0 if (defined $proc->{'groups'})
358 0 0 if (not defined $group) { }
388 0 0 if (not defined $proc->{'pctmem'}) { }
435 0 0 unless ($proc->{$key} =~ /^$/)
439 0 0 if ($key =~ /time$/ and $proc->{$key} =~ /\.0*$/ and $self->{'zero_time'}) { }
0 0 elsif ($key =~ /time$/) { }
449 0 0 if ($key =~ /^environ$/)
451 0 0 unless (defined $value)
456 0 0 if ($key =~ /flt$/ and $proc->{$key} eq 0 and $self->{'zero_flt'})
464 0 0 if ($key =~ /^start$/)
468 0 0 unless (defined $value)
472 0 0 if ($print_it)
484 0 0 unless ($proc->{'cmndline'} =~ /^$/)
497 0 0 if ($? eq 0 or $^O =~ /linux/ and $? eq 256)
536 0 0 unless (defined $line_split[7])
542 0 0 if ($line_split[3] =~ /^IPv/ or $line_split[2] =~ /^txt$/ and not $self->{'txt'} or $line_split[3] =~ /^[Pp][Ii][Pp][Ee]$/ and not $self->{'pipe'} or $line_split[3] =~ /^[Uu][Nn][Ii][Xx]$/ and not $self->{'unix'} or $line_split[3] =~ /^[Ff][Ii][Ff][Oo]$/ and not $self->{'fifo'} or $line_split[3] =~ /^[Rr][Ee][Gg]$/ and $line_split[7] =~ /\.so$/ || $line_split[7] =~ /\.so\.[0-9]$/ || $line_split[7] =~ /\.so\.[0-9]+\.[0-9]+$/ || $line_split[7] =~ /\.so\.[0-9]+\.[0-9]+\.[0-9]+$/ || $line_split[7] =~ /\.jar$/ and not $self->{'memreglib'} or $line_split[3] =~ /^a\_inode$/ and not $self->{'a_inode'} or $line_split[3] =~ /^[Vv][Rr][Ee][Gg]$/ and $line_split[7] =~ m[^/$] and not $self->{'vregroot'})
595 0 0 unless ($self->{'dont_dedup'} or $dont_add)
599 0 0 if ($line_split[3] =~ /[Vv][Rr][Ee][Gg]/ or $line_split[3] =~ /[Rr][Ee][Gg]/ or $line_split[3] =~ /[Vv][Dd][Ii][Dd]/ or $line_split[3] =~ /[Vv][Cc][Hh][Rr]/)
605 0 0 if ($line_split[2] =~ /u/ or $line_split[2] =~ /rw/ or $line_split[2] =~ /wr/) { }
0 0 elsif (not $line_split[2] =~ /u/ or $line_split[2] =~ /r/) { }
0 0 elsif (not $line_split[2] =~ /u/ or $line_split[2] =~ /w/) { }
0 0 elsif ($line_split[2] =~ /mem/) { }
610 0 0 if (not defined $rw_filehandles{$name}) { }
619 0 0 if (not defined $r_filehandles{$name}) { }
628 0 0 if (not defined $w_filehandles{$name}) { }
636 0 0 if (not defined $mem_filehandles{$name}) { }
645 0 0 unless ($dont_add)
661 0 0 if (not $self->{'dont_dedup'}) { }
667 0 0 if ($line->[1] =~ /[Vv][Rr][Ee][Gg]/ or $line->[1] =~ /[Rr][Ee][Gg]/ or $line->[1] =~ /[Vv][Dd][Ii][Dd]/ or $line->[1] =~ /[Vv][Cc][Hh][Rr]/) { }
674 0 0 if ($line->[0] =~ /u/ or $line->[0] =~ /rw/ or $line->[0] =~ /wr/) { }
0 0 elsif (not $line->[0] =~ /u/ or $line->[0] =~ /r/) { }
0 0 elsif (not $line->[0] =~ /u/ or $line->[0] =~ /w/) { }
0 0 elsif ($line->[0] =~ /mem/) { }
679 0 0 if (defined $rw_dedup{$line->[5]}) { }
682 0 0 if ($rw_filehandles{$line->[5]} > 1)
691 0 0 if (defined $r_dedup{$line->[5]}) { }
694 0 0 if ($r_filehandles{$line->[5]} > 1)
703 0 0 if (defined $w_dedup{$line->[5]}) { }
706 0 0 if ($w_filehandles{$line->[5]} > 1)
714 0 0 if ($mem_filehandles{$line->[5]} > 1)
720 0 0 if ($add_line)
757 0 0 if ($self->{'dont_resolv'})
780 0 0 if ($first) { }
801 0 0 if ($^O =~ /^linux$/)
806 0 0 if ($time >= 3600)
811 0 0 if ($time >= 60)
825 0 0 if ($hours == 0) { }
0 0 elsif ($hours >= 10) { }
836 0 0 if ($hours > 0 or $minutes > 0)
861 0 0 if ($mem < '10000') { }
0 0 elsif ($mem >= '10000' and $mem < '1000000') { }
0 0 elsif ($mem >= '1000000' and $mem < '1000000000') { }
0 0 elsif ($mem >= '1000000000') { }
913 0 0 if ($year ne $cyear)
916 0 0 if ($mon ne $cmon)
919 0 0 if ($mday ne $cmday)
938 0 0 if (defined $self->{'colors'}[$self->{'nextColor'}]) { }