| line |
true |
false |
branch |
|
28
|
1 |
0 |
if (-e "$main::RealBin/../dist.ini") |
|
29
|
0 |
1 |
if $ENV{'DEBUG'} |
|
69
|
0 |
0 |
unless (NBI::Slurm::has_squeue()) |
|
77
|
0 |
0 |
if (not defined $jobs or ref $jobs ne "HASH") |
|
83
|
0 |
0 |
if ($positional =~ /^(\d+)$/u) { } |
|
86
|
0 |
0 |
if ($opt_name eq '.+') { } |
|
95
|
0 |
0 |
if ($opt_user eq "ALL" or $opt_user eq "all") |
|
98
|
0 |
0 |
if ($opt_verbose_bool) |
|
103
|
0 |
0 |
if ($opt_summary) |
|
111
|
0 |
0 |
if ($opt_tab) |
|
118
|
0 |
0 |
unless ($jobs->{$job}{'USER'} =~ /^$opt_user$/u) |
|
122
|
0 |
0 |
unless ($jobs->{$job}{'PARTITION'} =~ /$opt_queue/u) |
|
127
|
0 |
0 |
unless ($jobs->{$job}{'NAME'} =~ /$opt_name/u) |
|
131
|
0 |
0 |
unless ($jobs->{$job}{'STATE'} =~ /$opt_status/u) |
|
135
|
0 |
0 |
if ($opt_pending_bool and $jobs->{$job}{'STATE'} ne "PENDING") |
|
138
|
0 |
0 |
if ($opt_running_bool and $jobs->{$job}{'STATE'} ne "RUNNING") |
|
141
|
0 |
0 |
if (scalar @ids > 0 and not grep({$_ eq $job;} @ids)) |
|
147
|
0 |
0 |
if (defined $display_jobid and $display_jobid =~ /_/u) |
|
162
|
0 |
0 |
$opt_tab ? : |
|
|
0 |
0 |
$opt_tab ? : |
|
169
|
0 |
0 |
if (@opt_hide and not $opt_tab) |
|
174
|
0 |
0 |
unless ($opt_tab) |
|
178
|
0 |
0 |
if ($opt_tab) { } |
|
189
|
0 |
0 |
if ($opt_verbose_bool and scalar @{$selected_arrays;} == 3) |
|
193
|
0 |
0 |
if ($job->{$key} =~ /^$/u or $job->{$key} =~ /^(\(null\)|\*)$/u) |
|
196
|
0 |
0 |
if ($key =~ /(S_C_T|USER|ACCOUNT)/u) |
|
206
|
0 |
0 |
if ($opt_delete_bool and scalar @selected_ids) { } |
|
|
0 |
0 |
elsif ($opt_delete_bool) { } |
|
208
|
0 |
0 |
if (prompt('Delete ' . scalar(@selected_ids) . ' jobs?', 'n') =~ /^(y|Y|yes|YES)$/u) { } |
|
211
|
0 |
0 |
if ($result == -1) { } |
|
|
0 |
0 |
elsif ($result & 127) { } |
|
|
0 |
0 |
elsif (my $exit_code = $result >> 8) { } |
|
232
|
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) { } |
|
264
|
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) { } |
|
299
|
0 |
0 |
unless $row->[0] =~ /^\d+$/u |
|
331
|
0 |
0 |
if ($state =~ /^R/iu) { } |
|
|
0 |
0 |
elsif ($state =~ /^P/iu) { } |
|
|
0 |
0 |
elsif ($state =~ /^C/iu) { } |
|
|
0 |
0 |
elsif ($state =~ /^F/iu) { } |
|
356
|
0 |
0 |
if $stats{'running'} |
|
358
|
0 |
0 |
if $stats{'pending'} |
|
360
|
0 |
0 |
if $stats{'completed'} |
|
362
|
0 |
0 |
if $stats{'failed'} |
|
364
|
0 |
0 |
if $stats{'other'} |
|
366
|
0 |
0 |
if (@stat_parts) |
|
382
|
0 |
0 |
if $state =~ /^RUNNING$/iu |
|
383
|
0 |
0 |
if $state =~ /^PENDING$/iu |
|
384
|
0 |
0 |
if $state =~ /^COMPLETED$/iu |
|
385
|
0 |
0 |
if $state =~ /^(?:FAILED|CANCELLED|TIMEOUT|NODE_FAIL|OUT_OF_MEMORY|BOOT_FAIL|DEADLINE|PREEMPTED)$/iu |
|
392
|
0 |
0 |
if $bucket eq "running" |
|
393
|
0 |
0 |
if $bucket eq "pending" |
|
394
|
0 |
0 |
if $bucket eq "completed" |
|
395
|
0 |
0 |
if $bucket eq "errors" |
|
401
|
0 |
0 |
if not defined $user or $user eq ".+" |
|
408
|
0 |
0 |
unless $job->{'PARTITION'} =~ /$opt_queue/u |
|
409
|
0 |
0 |
unless $job->{'NAME'} =~ /$opt_name/u |
|
410
|
0 |
0 |
if @$ids_ref and not grep({$_ eq $jobid;} @$ids_ref) |
|
429
|
0 |
0 |
unless job_matches_summary_scope($jobid, $job, $ids_ref) |
|
433
|
0 |
0 |
if (($job->{'USER'} // "") =~ /^$user_pattern$/u) |
|
450
|
0 |
0 |
if length $user_count > $user_w |
|
451
|
0 |
0 |
if length $total_count > $total_w |
|
453
|
0 |
0 |
if 5 > $label_w |
|
454
|
0 |
0 |
if length $user_total > $user_w |
|
455
|
0 |
0 |
if length $grand_total > $total_w |
|
483
|
0 |
0 |
unless @$hide_patterns |
|
486
|
0 |
0 |
unless @arrays |
|
498
|
0 |
0 |
if (length $pattern >= 3 and $col_name =~ /\Q$pattern\E/iu) |
|
504
|
0 |
0 |
unless $should_hide |
|
508
|
0 |
0 |
unless @keep_indices |
|
559
|
0 |
0 |
if $hidden{$i} |
|
565
|
0 |
0 |
if &$calc_width() <= $terminal_width |
|
575
|
0 |
0 |
unless defined $i |
|
576
|
0 |
0 |
if $hidden{$i} |
|
578
|
0 |
0 |
if ($fitted[$i] > $min and $fitted[$i] > $best_w) |
|
583
|
0 |
0 |
if (defined $best) |
|
588
|
0 |
0 |
if $excess < $cut |
|
590
|
0 |
0 |
if $cut > 0 |
|
595
|
0 |
0 |
if (&$calc_width() > $terminal_width) |
|
597
|
0 |
0 |
if defined $i |
|
601
|
0 |
0 |
if (&$calc_width() > $terminal_width) |
|
603
|
0 |
0 |
if defined $i |
|
607
|
0 |
0 |
if (&$calc_width() > $terminal_width) |
|
609
|
0 |
0 |
if (defined $i and not $hidden{$i}) |
|
621
|
0 |
0 |
if $hidden{$i} or $icon_only{$i} |
|
622
|
0 |
0 |
if ($fitted[$i] > 4 and $fitted[$i] > $best_w) |
|
627
|
0 |
0 |
if ($best_i >= 0) |
|
630
|
0 |
0 |
if $excess < $cut |
|
632
|
0 |
0 |
if $cut > 0 |
|
642
|
0 |
0 |
unless @rows |
|
652
|
0 |
0 |
if $width > $max_width |
|
665
|
0 |
0 |
if (@rows > 0) |
|
684
|
0 |
0 |
if ($type eq 'top') { } |
|
|
0 |
0 |
elsif ($type eq 'middle') { } |
|
697
|
0 |
0 |
$j == $#visible ? : |
|
709
|
0 |
0 |
if $hidden->{$i} |
|
715
|
0 |
0 |
if ($icon_only->{$i}) |
|
725
|
0 |
0 |
$style eq 'header' ? : |
|
727
|
0 |
0 |
if (length $stripped > $width) { } |
|
735
|
0 |
0 |
if ($index >= 0) |
|
758
|
0 |
0 |
if $width > $max_width |
|
792
|
0 |
0 |
if ($jobid eq $id) |
|
811
|
0 |
0 |
if ($? != 0) |
|
813
|
0 |
0 |
if @output |
|
821
|
0 |
0 |
if $line =~ /^\s*$/u |
|
825
|
0 |
0 |
if ($c == 1) { } |
|
833
|
0 |
0 |
if (scalar @fields != scalar @header) |
|
835
|
0 |
0 |
if ($ENV{'DEBUG'}) |
|
843
|
0 |
0 |
unless defined $$job{"$header[$i]"} |
|
847
|
0 |
0 |
if (defined $job->{'JOBID'} and $job->{'JOBID'} ne '') { } |
|
850
|
0 |
0 |
if $ENV{'DEBUG'} |
|
863
|
0 |
0 |
if defined $terminal_width |
|
866
|
0 |
0 |
if (defined $terminal_width and $terminal_width =~ /^\d+$/u and $terminal_width > 20) |
|
887
|
0 |
0 |
if $answer eq "" |