Branch Coverage

bin/session
Criterion Covered Total %
branch 2 36 5.5


line true false branch
9 1 0 if (-e "$main::RealBin/../dist.ini")
10 0 1 if $ENV{'DEBUG'}
40 0 0 unless &GetOptions("c|t|threads=i", \$CORES, "m|mem=s", \$MEM_MB, "d|days=i", \$DAYS, "h|hours=i", \$HOURS, "n|name=s", \$NAME, "q|queue=s", \$OPT_PARTITION, "s|special", \$OPT_SPECIAL, "i|intel", \$OPT_INTEL, "verbose", \$OPT_VERBOSE, "version", sub { say "session v", $NBI::Slurm::VERSION; exit 0; } , "help", sub { usage(); exit 0; } )
45 0 0 if ($MEM_MB < 350)
55 0 0 unless ($OPT_PARTITION)
56 0 0 if ($config->{'queue'}) { }
64 0 0 $OPT_INTEL ? :
65 0 0 $OPT_SPECIAL ? :
80 0 0 if $OPT_VERBOSE
82 0 0 if (has_srun() == 0)
89 0 0 if ($hours <= 2) { }
0 0 elsif ($hours <= 8) { }
109 0 0 if ($mem =~ /^(\d+)$/u) { }
0 0 elsif ($mem =~ /(\d+)\s?Gb?/iu) { }
0 0 elsif ($mem =~ /(\d+)\s?Mb?/iu) { }
0 0 elsif ($mem =~ /(\d+)\s?Kb?/iu) { }
136 0 0 if $_[0]
143 0 0 if ($srun eq "")