Branch Coverage

bin/lsjobs
Criterion Covered Total %
branch 2 204 0.9


line true false branch
28 1 0 if (-e "$main::RealBin/../dist.ini")
29 0 1 if $ENV{'DEBUG'}
67 0 0 unless (NBI::Slurm::has_squeue())
75 0 0 if (not defined $jobs or ref $jobs ne "HASH")
81 0 0 if ($positional =~ /^(\d+)$/u) { }
84 0 0 if ($opt_name eq '.+') { }
93 0 0 if ($opt_user eq "ALL" or $opt_user eq "all")
96 0 0 if ($opt_verbose_bool)
104 0 0 if ($opt_tab)
111 0 0 unless ($jobs->{$job}{'USER'} =~ /^$opt_user$/u)
115 0 0 unless ($jobs->{$job}{'PARTITION'} =~ /$opt_queue/u)
120 0 0 unless ($jobs->{$job}{'NAME'} =~ /$opt_name/u)
124 0 0 unless ($jobs->{$job}{'STATE'} =~ /$opt_status/u)
128 0 0 if ($opt_pending_bool and $jobs->{$job}{'STATE'} ne "PENDING")
131 0 0 if ($opt_running_bool and $jobs->{$job}{'STATE'} ne "RUNNING")
134 0 0 if (scalar @ids > 0 and not grep({$_ eq $job;} @ids))
140 0 0 if (defined $display_jobid and $display_jobid =~ /_/u)
155 0 0 $opt_tab ? :
0 0 $opt_tab ? :
162 0 0 if (@opt_hide and not $opt_tab)
167 0 0 unless ($opt_tab)
171 0 0 if ($opt_tab) { }
182 0 0 if ($opt_verbose_bool and scalar @{$selected_arrays;} == 3)
186 0 0 if ($job->{$key} =~ /^$/u or $job->{$key} =~ /^(\(null\)|\*)$/u)
189 0 0 if ($key =~ /(S_C_T|USER|ACCOUNT)/u)
199 0 0 if ($opt_delete_bool and scalar @selected_ids) { }
0 0 elsif ($opt_delete_bool) { }
201 0 0 if (prompt('Delete ' . scalar(@selected_ids) . ' jobs?', 'n') =~ /^(y|Y|yes|YES)$/u) { }
204 0 0 if ($result == -1) { }
0 0 elsif ($result & 127) { }
0 0 elsif (my $exit_code = $result >> 8) { }
225 0 0 if ($s =~ /^R/iu) { }
0 0 elsif ($s =~ /^P/iu) { }
0 0 elsif ($s =~ /^C/iu) { }
0 0 elsif ($s =~ /^F/iu) { }
0 0 elsif ($s =~ /^S/iu) { }
257 0 0 if ($s =~ /^None/iu) { }
0 0 elsif ($s =~ /^Priority/iu) { }
0 0 elsif ($s =~ /^Resources/iu) { }
0 0 elsif ($s =~ /^Dependency/iu) { }
0 0 elsif ($s =~ /^(Bad|Error|Invalid)/iu) { }
0 0 elsif ($s =~ /^QOS/iu) { }
292 0 0 unless $row->[0] =~ /^\d+$/u
324 0 0 if ($state =~ /^R/iu) { }
0 0 elsif ($state =~ /^P/iu) { }
0 0 elsif ($state =~ /^C/iu) { }
0 0 elsif ($state =~ /^F/iu) { }
349 0 0 if $stats{'running'}
351 0 0 if $stats{'pending'}
353 0 0 if $stats{'completed'}
355 0 0 if $stats{'failed'}
357 0 0 if $stats{'other'}
359 0 0 if (@stat_parts)
374 0 0 unless @$hide_patterns
377 0 0 unless @arrays
389 0 0 if (length $pattern >= 3 and $col_name =~ /\Q$pattern\E/iu)
395 0 0 unless $should_hide
399 0 0 unless @keep_indices
450 0 0 if $hidden{$i}
456 0 0 if &$calc_width() <= $terminal_width
466 0 0 unless defined $i
467 0 0 if $hidden{$i}
469 0 0 if ($fitted[$i] > $min and $fitted[$i] > $best_w)
474 0 0 if (defined $best)
479 0 0 if $excess < $cut
481 0 0 if $cut > 0
486 0 0 if (&$calc_width() > $terminal_width)
488 0 0 if defined $i
492 0 0 if (&$calc_width() > $terminal_width)
494 0 0 if defined $i
498 0 0 if (&$calc_width() > $terminal_width)
500 0 0 if (defined $i and not $hidden{$i})
512 0 0 if $hidden{$i} or $icon_only{$i}
513 0 0 if ($fitted[$i] > 4 and $fitted[$i] > $best_w)
518 0 0 if ($best_i >= 0)
521 0 0 if $excess < $cut
523 0 0 if $cut > 0
533 0 0 unless @rows
543 0 0 if $width > $max_width
556 0 0 if (@rows > 0)
575 0 0 if ($type eq 'top') { }
0 0 elsif ($type eq 'middle') { }
588 0 0 $j == $#visible ? :
600 0 0 if $hidden->{$i}
606 0 0 if ($icon_only->{$i})
616 0 0 $style eq 'header' ? :
618 0 0 if (length $stripped > $width) { }
626 0 0 if ($index >= 0)
649 0 0 if $width > $max_width
683 0 0 if ($jobid eq $id)
698 0 0 if ($? != 0)
700 0 0 if @output
708 0 0 if $line =~ /^\s*$/u
712 0 0 if ($c == 1) { }
720 0 0 if (scalar @fields != scalar @header)
722 0 0 if ($ENV{'DEBUG'})
730 0 0 unless defined $$job{"$header[$i]"}
734 0 0 if (defined $job->{'JOBID'} and $job->{'JOBID'} ne '') { }
737 0 0 if $ENV{'DEBUG'}
750 0 0 if defined $terminal_width
753 0 0 if (defined $terminal_width and $terminal_width =~ /^\d+$/u and $terminal_width > 20)
774 0 0 if $answer eq ""