Branch Coverage

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


line true false branch
97 0 0 if ($^O =~ /bsd/)
129 0 0 if ($self->{'header'})
134 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') { }
175 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') { }
180 0 0 if (defined $rss) { }
191 0 0 if (not defined $values{'rss'}) { }
208 0 0 if ($cmndline =~ /^$/) { }
212 0 0 if ($^O =~ /bsd/ and hex $proc->flags & 2097152)
222 0 0 if ($kernel_proc) { }
224 0 0 if ($fname eq 'idle')
232 0 0 if ($cmndline =~ /^su *$/) { }
244 0 0 if ($^O =~ /bsd/)
254 0 0 if (hex $proc->flags & 2)
255 0 0 if (hex $proc->flags & 2)
257 0 0 if (hex $proc->flags & 8192)
258 0 0 if (hex $proc->flags & 2)
259 0 0 if (hex $proc->flags & 4)
260 0 0 if (hex $proc->flags & 2048)
261 0 0 if (hex $proc->flags & 1)
272 0 0 unless (defined $values{'pctmem'})
275 0 0 unless (defined $values{'pctcpu'})
279 0 0 unless (defined $values{'size'})
299 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'}
311 0 0 if (defined $proc->{'idle'} and not $self->{'showIdle'}) { }
322 0 0 if (defined $proc_search)
325 0 0 if ($proc->{'proc'} =~ /$proc_search/)
332 0 0 if (defined $user_search_array->[0])
344 0 0 if ($to_match =~ /^\!/)
350 0 0 if ($to_invert) { }
351 0 0 if ($to_match ne $user)
356 0 0 if ($to_match eq $user)
369 0 0 if (defined $wait_search_array->[0])
380 0 0 if ($to_match =~ /^\!/)
386 0 0 if ($to_invert) { }
387 0 0 if ($to_match ne $proc->{'wchan'})
392 0 0 if ($to_match eq $proc->{'wchan'})
405 0 0 if (defined $time_search_array->[0])
418 0 0 if ($to_match =~ /^\<\=/ and $checked == 0)
424 0 0 if ($time <= $to_match)
431 0 0 if ($to_match =~ /^\
437 0 0 if ($time < $to_match)
444 0 0 if ($to_match =~ /^\>=/ and $checked == 0)
450 0 0 if ($time >= $to_match)
457 0 0 if ($to_match =~ /^\>/ and $checked == 0)
463 0 0 if ($time > $to_match)
476 0 0 if (defined $pctcpu_search_array->[0])
489 0 0 if ($to_match =~ /^\<\=/ and $checked == 0)
495 0 0 if ($time <= $to_match)
502 0 0 if ($to_match =~ /^\
508 0 0 if ($time < $to_match)
515 0 0 if ($to_match =~ /^\>=/ and $checked == 0)
521 0 0 if ($time >= $to_match)
528 0 0 if ($to_match =~ /^\>/ and $checked == 0)
534 0 0 if ($time > $to_match)
546 0 0 if (defined $pctmem_search_array->[0])
559 0 0 if ($to_match =~ /^\<\=/ and $checked == 0)
565 0 0 if ($pctmem <= $to_match)
572 0 0 if ($to_match =~ /^\
578 0 0 if ($pctmem < $to_match)
585 0 0 if ($to_match =~ /^\>=/ and $checked == 0)
591 0 0 if ($pctmem >= $to_match)
598 0 0 if ($to_match =~ /^\>/ and $checked == 0)
604 0 0 if ($pctmem > $to_match)
615 0 0 if ($self->{'zombie_search'})
617 0 0 if ($proc->{'state'} eq 'zombie')
623 0 0 if ($self->{'swapped_out_search'})
625 0 0 if ($proc->{'state'} ne 'zombie' and $proc->{'rss'} == '0')
635 0 0 if ($self_ignore == 1 and $proc->{'pid'} == $$) { }
0 0 elsif ($required_hits > 0 and $self_ignore == 2 and $proc->{'pid'} == $$) { }
652 0 0 if ($required_hits == $hits)
657 0 0 if ($show)
663 0 0 if (defined $proc->{$field})
667 0 0 if ($field ne 'proc') { }
668 0 0 if ($field eq 'start')
672 0 0 if ($field eq 'uid' and $self->{'resolveUser'})
680 0 0 if ($field eq 'time') { }
0 0 elsif ($field eq 'proc') { }
0 0 elsif ($field eq 'info') { }
686 0 0 if ($left eq 'sleep') { }
0 0 elsif ($left eq 'zombie') { }
0 0 elsif ($left eq 'wait') { }
0 0 elsif ($left eq 'run') { }
705 0 0 if ($proc->{'state'} ne 'zombie' and $proc->{'rss'} == '0')
713 0 0 if (defined $proc->{'working_on_exiting'} and $proc->{'working_on_exiting'})
721 0 0 if (defined $proc->{'is_session_leader'} and $proc->{'is_session_leader'})
729 0 0 if (defined $proc->{'is_locked'} || defined $proc->{'posix_advisory_lock'} and $proc->{'is_locked'} || $proc->{'posix_advisory_lock'})
737 0 0 if (defined $proc->{'has_controlling_terminal'} and $proc->{'has_controlling_terminal'})
745 0 0 if (defined $proc->{'is_being_forked'} and $proc->{'is_being_forked'})
753 0 0 if (defined $proc->{'traced_by_debugger'} and $proc->{'traced_by_debugger'})
865 0 0 if (defined $self->{'colors'}[$self->{'nextColor'}]) { }
956 0 0 if (not defined $pctcpu_search_string) { }
962 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]*$/)
1035 0 0 if (not defined $pctmem_search_string) { }
1041 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]*$/)
1172 0 0 unless (defined $self_ignore)
1202 0 0 if ($year ne $cyear)
1205 0 0 if ($mon ne $cmon)
1208 0 0 if ($mday ne $cmday)
1314 0 0 if (not defined $time_search_string) { }
1320 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]*$/)
1366 0 0 if ($time >= 3600)
1371 0 0 if ($time >= 60)
1385 0 0 if ($hours == 0) { }
0 0 elsif ($hours >= 10) { }
1396 0 0 if ($hours > 0 or $minutes > 0)
1452 0 0 if (not defined $user_search_string) { }
1504 0 0 if (not defined $wait_search_string) { }