Branch Coverage

blib/lib/Proc/ProcessTable/Colorizer.pm
Criterion Covered Total %
branch 0 242 0.0


line true false branch
98 0 0 if ($^O =~ /linux/)
113 0 0 if ($^O =~ /bsd/)
145 0 0 if ($self->{'header'})
150 0 0 if ($fields->[$fieldInt] eq 'pid') { }
0 0 elsif ($fields->[$fieldInt] eq 'uid') { }
0 0 elsif ($fields->[$fieldInt] eq 'pctcpu') { }
0 0 elsif ($fields->[$fieldInt] eq 'pctmem') { }
0 0 elsif ($fields->[$fieldInt] eq 'size') { }
0 0 elsif ($fields->[$fieldInt] eq 'rss') { }
0 0 elsif ($fields->[$fieldInt] eq 'proc') { }
191 0 0 if ($^O =~ /bsd/ and $field =~ /pctmem/) { }
0 0 elsif ($^O =~ /bsd/ and $field =~ /rss/) { }
0 0 elsif ($field eq 'proc') { }
0 0 elsif ($field eq 'info') { }
196 0 0 if (defined $rss) { }
207 0 0 if (not defined $values{'rss'}) { }
224 0 0 if ($cmndline =~ /^$/) { }
228 0 0 if ($^O =~ /bsd/ and hex $proc->flags & 2097152)
238 0 0 if ($kernel_proc) { }
240 0 0 if ($fname eq 'idle')
248 0 0 if ($cmndline =~ /^su *$/) { }
260 0 0 if ($^O =~ /bsd/)
270 0 0 if (hex $proc->flags & 2)
271 0 0 if (hex $proc->flags & 2)
273 0 0 if (hex $proc->flags & 8192)
274 0 0 if (hex $proc->flags & 2)
275 0 0 if (hex $proc->flags & 4)
276 0 0 if (hex $proc->flags & 2048)
277 0 0 if (hex $proc->flags & 1)
288 0 0 unless (defined $values{'pctmem'})
291 0 0 unless (defined $values{'pctcpu'})
295 0 0 unless (defined $values{'size'})
315 0 0 unless $Proc::ProcessTable::Colorizer::a->{'pctcpu'} <=> $Proc::ProcessTable::Colorizer::b->{'pctcpu'} or $Proc::ProcessTable::Colorizer::a->{'pctmem'} <=> $Proc::ProcessTable::Colorizer::b->{'pctmem'} or $Proc::ProcessTable::Colorizer::a->{'rss'} <=> $Proc::ProcessTable::Colorizer::b->{'rss'} or $Proc::ProcessTable::Colorizer::a->{'size'} <=> $Proc::ProcessTable::Colorizer::b->{'size'}
327 0 0 if (defined $proc->{'idle'} and not $self->{'showIdle'}) { }
338 0 0 if (defined $proc_search)
341 0 0 if ($proc->{'proc'} =~ /$proc_search/)
348 0 0 if (defined $user_search_array->[0])
360 0 0 if ($to_match =~ /^\!/)
366 0 0 if ($to_invert) { }
367 0 0 if ($to_match ne $user)
372 0 0 if ($to_match eq $user)
384 0 0 if (defined $wait_search_array->[0])
395 0 0 if ($to_match =~ /^\!/)
401 0 0 if ($to_invert) { }
402 0 0 if ($to_match ne $proc->{'wchan'})
407 0 0 if ($to_match eq $proc->{'wchan'})
420 0 0 if (defined $time_search_array->[0])
433 0 0 if ($to_match =~ /^\<\=/ and $checked == 0)
439 0 0 if ($time <= $to_match)
446 0 0 if ($to_match =~ /^\
452 0 0 if ($time < $to_match)
459 0 0 if ($to_match =~ /^\>=/ and $checked == 0)
465 0 0 if ($time >= $to_match)
472 0 0 if ($to_match =~ /^\>/ and $checked == 0)
478 0 0 if ($time > $to_match)
489 0 0 if (defined $pctcpu_search_array->[0])
502 0 0 if ($to_match =~ /^\<\=/ and $checked == 0)
508 0 0 if ($time <= $to_match)
515 0 0 if ($to_match =~ /^\
521 0 0 if ($time < $to_match)
528 0 0 if ($to_match =~ /^\>=/ and $checked == 0)
534 0 0 if ($time >= $to_match)
541 0 0 if ($to_match =~ /^\>/ and $checked == 0)
547 0 0 if ($time > $to_match)
559 0 0 if (defined $pctmem_search_array->[0])
572 0 0 if ($to_match =~ /^\<\=/ and $checked == 0)
578 0 0 if ($pctmem <= $to_match)
585 0 0 if ($to_match =~ /^\
591 0 0 if ($pctmem < $to_match)
598 0 0 if ($to_match =~ /^\>=/ and $checked == 0)
604 0 0 if ($pctmem >= $to_match)
611 0 0 if ($to_match =~ /^\>/ and $checked == 0)
617 0 0 if ($pctmem > $to_match)
628 0 0 if ($self->{'zombie_search'})
630 0 0 if ($proc->{'state'} eq 'zombie')
636 0 0 if ($self->{'swapped_out_search'})
638 0 0 if ($proc->{'state'} ne 'zombie' and $proc->{'rss'} == '0')
648 0 0 if ($self_ignore == 1 and $proc->{'pid'} == $$) { }
0 0 elsif ($required_hits > 0 and $self_ignore == 2 and $proc->{'pid'} == $$) { }
665 0 0 if ($required_hits == $hits)
670 0 0 if ($show)
676 0 0 if (defined $proc->{$field})
680 0 0 if ($field ne 'proc') { }
681 0 0 if ($field eq 'start')
685 0 0 if ($field eq 'uid' and $self->{'resolveUser'})
693 0 0 if ($field eq 'time') { }
0 0 elsif ($field eq 'proc') { }
0 0 elsif ($field eq 'info') { }
694 0 0 if ($^O =~ /linux/)
702 0 0 if ($left eq 'sleep') { }
0 0 elsif ($left eq 'zombie') { }
0 0 elsif ($left eq 'wait') { }
0 0 elsif ($left eq 'run') { }
721 0 0 if ($proc->{'state'} ne 'zombie' and $proc->{'rss'} == '0')
729 0 0 if (defined $proc->{'working_on_exiting'} and $proc->{'working_on_exiting'})
737 0 0 if (defined $proc->{'is_session_leader'} and $proc->{'is_session_leader'})
745 0 0 if (defined $proc->{'is_locked'} || defined $proc->{'posix_advisory_lock'} and $proc->{'is_locked'} || $proc->{'posix_advisory_lock'})
753 0 0 if (defined $proc->{'has_controlling_terminal'} and $proc->{'has_controlling_terminal'})
761 0 0 if (defined $proc->{'is_being_forked'} and $proc->{'is_being_forked'})
769 0 0 if (defined $proc->{'traced_by_debugger'} and $proc->{'traced_by_debugger'})
776 0 0 if ($^O =~ /linux/) { }
778 0 0 if (-e '/proc/' . $proc->{'pid'} . '/wchan')
812 0 0 if ($^O =~ /linux/)
895 0 0 if (defined $self->{'colors'}[$self->{'nextColor'}]) { }
986 0 0 if (not defined $pctcpu_search_string) { }
992 0 0 unless ($item =~ /^\>[0123456789]*$/ or $item =~ /^\>[0123456789]*\.[0123456789]*$/ or $item =~ /^\>\.[0123456789]*$/ or $item =~ /^\>\=[0123456789]*$/ or $item =~ /^\>\=[0123456789]*\.[0123456789]*$/ or $item =~ /^\>\=\.[0123456789]*$/ or $item =~ /^\<[0123456789]*$/ or $item =~ /^\<[0123456789]*\.[0123456789]*$/ or $item =~ /^\<\.[0123456789]*$/ or $item =~ /^\<\=[0123456789]*$/ or $item =~ /^\<\=[0123456789]*\.[0123456789]*$/ or $item =~ /^\<\=\.[0123456789]*$/)
1065 0 0 if (not defined $pctmem_search_string) { }
1071 0 0 unless ($item =~ /^\>[0123456789]*$/ or $item =~ /^\>[0123456789]*\.[0123456789]*$/ or $item =~ /^\>\.[0123456789]*$/ or $item =~ /^\>\=[0123456789]*$/ or $item =~ /^\>\=[0123456789]*\.[0123456789]*$/ or $item =~ /^\>\=\.[0123456789]*$/ or $item =~ /^\<[0123456789]*$/ or $item =~ /^\<[0123456789]*\.[0123456789]*$/ or $item =~ /^\<\.[0123456789]*$/ or $item =~ /^\<=[0123456789]*$/ or $item =~ /^\<\=[0123456789]*\.[0123456789]*$/ or $item =~ /^\<\=\.[0123456789]*$/)
1202 0 0 unless (defined $self_ignore)
1232 0 0 if ($year ne $cyear)
1235 0 0 if ($mon ne $cmon)
1238 0 0 if ($mday ne $cmday)
1344 0 0 if (not defined $time_search_string) { }
1350 0 0 unless ($item =~ /^\>[0123456789]*$/ or $item =~ /^\>[0123456789]*\.[0123456789]*$/ or $item =~ /^\>\.[0123456789]*$/ or $item =~ /^\>=[0123456789]*$/ or $item =~ /^\>\=[0123456789]*\.[0123456789]*$/ or $item =~ /^\>\=\.[0123456789]*$/ or $item =~ /^\<[0123456789]*$/ or $item =~ /^\<[0123456789]*\.[0123456789]*$/ or $item =~ /^\<\.[0123456789]*$/ or $item =~ /^\<=[0123456789]*$/ or $item =~ /^\<\=[0123456789]*\.[0123456789]*$/ or $item =~ /^\<\=\.[0123456789]*$/)
1396 0 0 if ($time >= 3600)
1401 0 0 if ($time >= 60)
1415 0 0 if ($hours == 0) { }
0 0 elsif ($hours >= 10) { }
1426 0 0 if ($hours > 0 or $minutes > 0)
1482 0 0 if (not defined $user_search_string) { }
1534 0 0 if (not defined $wait_search_string) { }