Condition Coverage

lib/NBI/Launcher.pm
Criterion Covered Total %
condition 61 107 57.0


and 3 conditions

line !l l&&!r l&&r condition
49 1 1 7 @act_keys == 1 and grep {/^(module|singularity|conda)$/u;} @act_keys
126 0 0 5 ($inp->{'type'} // "") eq "file" and $inp->{'required'} // 0
148 0 1 1 defined $args{'r1'} && defined $args{'r2'}
182 5 6 1 $inp->{'required'} and not defined $val
188 0 5 1 $type eq "file" and not -f $val
5 0 0 $type eq "dir" and not -d $val
202 2 1 4 not defined $val and $p->{'default_env'}
207 2 5 0 $p->{'required'} and not defined $val
213 7 0 0 $type eq "int" and not $val =~ /^\d+$/u
5 2 0 $type eq "float" and not $val =~ /^[\d.]+$/u
7 0 0 $type eq "file" and not -f $val
2 4 1 $type eq "dir" and not -d $val
225 0 3 1 $self->{'outdir'}{'required'} and not defined $args{'outdir'}
279 0 0 0 $p->{'default_env'} and defined $ENV{$p->{'default_env'}}
409 1 0 1 $p->{'default_env'} and defined $ENV{$p->{'default_env'}}

or 2 conditions

line l !l condition
52 3 4 $args{'slurm_defaults'} // {}
61 2 3 $args{'description'} // ""
62 2 3 $args{'version'} // "unknown"
71 5 0 $args{'inputs'} // []
72 5 0 $args{'params'} // []
73 5 0 $args{'outputs'} // []
74 5 0 $args{'outdir'} // {"flag", "--outdir", "short", "-o", "required", 1}
75 2 3 $args{'scratch'} // {"use_tmpdir", 0, "cleanup_on_failure", 0}
126 5 0 $inp->{'type'} // ""
5 0 $inp->{'required'} // 0
187 6 0 $inp->{'type'} // "string"
212 7 0 $p->{'type'} // "string"
270 0 2 $NBI::Slurm::VERSION // "unknown"
271 0 2 $NBI::Launcher::VERSION // "0.1.0"
292 2 0 $out->{'pattern'} // (next)
307 2 0 $self->{'scratch'}{'use_tmpdir'} // 0
420 4 0 $spec->{'type'} // ""
459 0 0 $hours || 1
557 2 0 $out->{'pattern'} // (next)

or 3 conditions

line l !l&&r !l&&!r condition
205 5 2 0 $val //= $p->{'default'}
266 2 0 0 $args{'manifest_path'} // ".nbilaunch/$sample.manifest.json"
421 1 1 2 $type eq "file" or $type eq "dir"
422 2 0 0 realpath($args{$name}) // $args{$name}
484 1 0 0 $args{'slurm_queue'} // $self->{'slurm_defaults'}{'queue'}
485 1 0 0 $args{'slurm_threads'} // $self->{'slurm_defaults'}{'threads'}
486 1 0 0 $args{'slurm_memory'} // $self->{'slurm_defaults'}{'memory'}
487 0 1 0 $args{'slurm_runtime'} // $self->{'slurm_defaults'}{'runtime'}