Branch Coverage

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


line true false branch
117 0 0 if (defined $_[1])
210 0 0 if (defined $_[1])
214 0 0 unless (defined $pids[0])
244 0 0 if (defined $proc_keys_hash{'pctmem'})
247 0 0 if (defined $proc_keys_hash{'groups'})
250 0 0 if (defined $proc_keys_hash{'cmdline'})
257 0 0 if (defined $pids_hash{$proc->pid})
262 0 0 unless (defined $procs[0])
290 0 0 if (not defined $user) { }
309 0 0 if (not defined $group) { }
327 0 0 if (defined $proc->{'groups'})
331 0 0 if (not defined $group) { }
361 0 0 if (not defined $proc->{'pctmem'}) { }
408 0 0 unless ($proc->{$key} =~ /^$/)
412 0 0 if ($key =~ /time$/ and $proc->{$key} =~ /\.0*$/ and $self->{'zero_time'}) { }
0 0 elsif ($key =~ /time$/) { }
422 0 0 if ($key =~ /flt$/ and $proc->{$key} eq 0 and $self->{'zero_flt'})
430 0 0 if ($key =~ /^start$/)
434 0 0 unless (defined $value)
438 0 0 if ($print_it)
450 0 0 unless ($proc->{'cmndline'} =~ /^$/)
463 0 0 if ($? eq 0 or $^O =~ /linux/ and $? eq 256)
501 0 0 unless (defined $line_split[7])
507 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] =~ /^[Vv][Rr][Ee][Gg]$/ and $line_split[7] =~ m[^/$] and not $self->{'vregroot'})
537 0 0 unless ($self->{'dont_dedup'})
538 0 0 if ($line_split[3] =~ /[Vv][Rr][Ee][Gg]/ or $line_split[3] =~ /[Vv][Dd][Ii][Dd]/ or $line_split[3] =~ /[Vv][Cc][Hh][Rr]/)
543 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/) { }
548 0 0 if (not defined $rw_filehandles{$name}) { }
557 0 0 if (not defined $r_filehandles{$name}) { }
566 0 0 if (not defined $w_filehandles{$name}) { }
575 0 0 unless ($dont_add)
591 0 0 if (not $self->{'dont_dedup'}) { }
596 0 0 if ($line->[1] =~ /[Vv][Rr][Ee][Gg]/ or $line->[1] =~ /[Vv][Dd][Ii][Dd]/ or $line->[1] =~ /[Vv][Cc][Hh][Rr]/) { }
602 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/) { }
607 0 0 if (defined $rw_dedup{$line->[5]}) { }
610 0 0 if ($rw_filehandles{$line->[5]} > 1)
619 0 0 if (defined $r_dedup{$line->[5]}) { }
622 0 0 if ($r_filehandles{$line->[5]} > 1)
631 0 0 if (defined $w_dedup{$line->[5]}) { }
634 0 0 if ($w_filehandles{$line->[5]} > 1)
641 0 0 if ($add_line)
678 0 0 if ($self->{'dont_resolv'})
701 0 0 if ($first) { }
722 0 0 if ($^O =~ /^linux$/)
727 0 0 if ($time >= 3600)
732 0 0 if ($time >= 60)
746 0 0 if ($hours == 0) { }
0 0 elsif ($hours >= 10) { }
757 0 0 if ($hours > 0 or $minutes > 0)
782 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') { }
834 0 0 if ($year ne $cyear)
837 0 0 if ($mon ne $cmon)
840 0 0 if ($mday ne $cmday)
859 0 0 if (defined $self->{'colors'}[$self->{'nextColor'}]) { }