Condition Coverage

bin/lsjobs
Criterion Covered Total %
condition 1 99 1.0


and 2 conditions

line l !l condition
199 0 0 $opt_delete_bool and scalar @selected_ids

and 3 conditions

line !l l&&!r l&&r condition
128 0 0 0 $opt_pending_bool and $jobs->{$job}{'STATE'} ne "PENDING"
131 0 0 0 $opt_running_bool and $jobs->{$job}{'STATE'} ne "RUNNING"
134 0 0 0 scalar @ids > 0 and not grep({$_ eq $job;} @ids)
140 0 0 0 defined $display_jobid and $display_jobid =~ /_/u
162 0 0 0 @opt_hide and not $opt_tab
182 0 0 0 $opt_verbose_bool and scalar @{$selected_arrays;} == 3
389 0 0 0 length $pattern >= 3 and $col_name =~ /\Q$pattern\E/iu
461 0 0 0 &$calc_width() > $terminal_width and $progress
469 0 0 0 $fitted[$i] > $min and $fitted[$i] > $best_w
500 0 0 0 defined $i and not $hidden{$i}
508 0 0 0 &$calc_width() > $terminal_width and $progress
513 0 0 0 $fitted[$i] > 4 and $fitted[$i] > $best_w
734 0 0 0 defined $job->{'JOBID'} and $job->{'JOBID'} ne ""
753 0 0 0 defined $terminal_width and $terminal_width =~ /^\d+$/u
0 0 0 defined $terminal_width and $terminal_width =~ /^\d+$/u and $terminal_width > 20

or 2 conditions

line l !l condition
39 0 1 $ENV{'SLURM_JOBID'} // -1
155 0 0 $display_jobid // "N/A"
0 0 $jobs->{$job}{'USER'} // "N/A"
0 0 $jobs->{$job}{'PARTITION'} // "N/A"
0 0 $jobs->{$job}{'NAME'} // "N/A"
0 0 $jobs->{$job}{'STATE'} // "N/A"
0 0 $jobs->{$job}{'STATE'} // "UNKNOWN"
0 0 $jobs->{$job}{'TIME'} // "0:00"
0 0 $jobs->{$job}{'TIME_LIMIT'} // "N/A"
0 0 $jobs->{$job}{'NODELIST'} // "N/A"
0 0 $jobs->{$job}{'CPUS'} // "N/A"
0 0 $jobs->{$job}{'MIN_MEMORY'} // "N/A"
0 0 $jobs->{$job}{'REASON'} // "N/A"
0 0 $jobs->{$job}{'REASON'} // "None"
222 0 0 shift() // "UNKNOWN"
254 0 0 shift() // "None"
323 0 0 $job->{'STATE'} // ""
572 0 0 $hidden //= {}
595 0 0 $hidden //= {}
596 0 0 $icon_only //= {}

or 3 conditions

line l !l&&r !l&&!r condition
75 0 0 0 not defined $jobs or ref $jobs ne "HASH"
93 0 0 0 $opt_user eq "ALL" or $opt_user eq "all"
186 0 0 0 $job->{$key} =~ /^$/u or $job->{$key} =~ /^(\(null\)|\*)$/u
512 0 0 0 $hidden{$i} or $icon_only{$i}