Condition Coverage

bin/lsjobs
Criterion Covered Total %
condition 1 109 0.9


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
135 0 0 0 $opt_pending_bool and $jobs->{$job}{'STATE'} ne "PENDING"
138 0 0 0 $opt_running_bool and $jobs->{$job}{'STATE'} ne "RUNNING"
141 0 0 0 scalar @ids > 0 and not grep({$_ eq $job;} @ids)
147 0 0 0 defined $display_jobid and $display_jobid =~ /_/u
169 0 0 0 @opt_hide and not $opt_tab
189 0 0 0 $opt_verbose_bool and scalar @{$selected_arrays;} == 3
410 0 0 0 @$ids_ref and not grep({$_ eq $jobid;} @$ids_ref)
498 0 0 0 length $pattern >= 3 and $col_name =~ /\Q$pattern\E/iu
570 0 0 0 &$calc_width() > $terminal_width and $progress
578 0 0 0 $fitted[$i] > $min and $fitted[$i] > $best_w
609 0 0 0 defined $i and not $hidden{$i}
617 0 0 0 &$calc_width() > $terminal_width and $progress
622 0 0 0 $fitted[$i] > 4 and $fitted[$i] > $best_w
847 0 0 0 defined $job->{'JOBID'} and $job->{'JOBID'} ne ""
866 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
162 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"
229 0 0 shift() // "UNKNOWN"
261 0 0 shift() // "None"
330 0 0 $job->{'STATE'} // ""
380 0 0 shift() // ""
433 0 0 $job->{'USER'} // ""
681 0 0 $hidden //= {}
704 0 0 $hidden //= {}
705 0 0 $icon_only //= {}

or 3 conditions

line l !l&&r !l&&!r condition
77 0 0 0 not defined $jobs or ref $jobs ne "HASH"
95 0 0 0 $opt_user eq "ALL" or $opt_user eq "all"
193 0 0 0 $job->{$key} =~ /^$/u or $job->{$key} =~ /^(\(null\)|\*)$/u
401 0 0 0 not defined $user or $user eq ".+"
621 0 0 0 $hidden{$i} or $icon_only{$i}