Branch Coverage

bin/whojobs
Criterion Covered Total %
branch 2 30 6.6


line true false branch
13 1 0 if (-e "$main::RealBin/../dist.ini")
14 0 1 if $ENV{'DEBUG'}
45 0 0 $user eq $opt_user ? :
46 0 0 if ($opt_pattern and not $user =~ /$opt_pattern/iu)
49 0 0 if ($opt_min_jobs and $slurm_users->{$user} < $opt_min_jobs)
53 0 0 if ($c % 2 == 0) { }
54 0 0 if (not $opt_no_color) { }
63 0 0 $opt_scramble ? :
71 0 0 if ($opt_verbose)
72 0 0 unless ($opt_no_color)
97 0 0 unless (NBI::Slurm::has_squeue())
122 0 0 unless $string
125 0 0 if grep {$string eq $_;} @{$whitelist;}
127 0 0 if (rand() > 0.5) { }
138 0 0 $terminal_width > 20 ? :