| bin/session | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 8 | 44 | 18.1 |
| line | true | false | branch |
|---|---|---|---|
| 10 | 1 | 0 | if (-e "$main::RealBin/../dist.ini") |
| 11 | 0 | 1 | if $ENV{'DEBUG'} |
| 17 | 1 | 0 | unless caller |
| 50 | 0 | 0 | unless &GetOptions("c|threads=i", \$CORES, "m|mem=s", \$MEM_MB, "d|days=i", \$DAYS, "h|hours=i", \$OPT_HOURS, "T|t|time=s", \$OPT_TIME, "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; } ) |
| 55 | 0 | 0 | if ($MEM_MB < 350) |
| 68 | 0 | 0 | unless ($OPT_PARTITION) |
| 69 | 0 | 0 | if ($config->{'queue'}) { } |
| 77 | 0 | 0 | $OPT_INTEL ? : |
| 78 | 0 | 0 | $OPT_SPECIAL ? : |
| 93 | 0 | 0 | if $OPT_VERBOSE |
| 95 | 0 | 0 | if (has_srun() == 0) |
| 103 | 0 | 0 | if ($hours <= 2) { } |
| 0 | 0 | elsif ($hours <= 8) { } | |
| 115 | 1 | 4 | if defined $args{'hours'} and defined $args{'time_string'} |
| 121 | 1 | 0 | defined $args{'hours'} ? : |
| 3 | 1 | defined $args{'time_string'} ? : | |
| 155 | 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) { } | |
| 183 | 0 | 0 | if $_[0] |
| 190 | 0 | 0 | if ($srun eq "") |