Branch Coverage

blib/lib/App/Fasops/Command/slice.pm
Criterion Covered Total %
branch 22 34 64.7


line true false branch
44 2 2 if (@{$args;} != 2)
51 0 3 if lc $_ eq 'stdin'
52 1 2 unless (Path::Tiny::path($_)->is_file)
57 0 1 if (not exists $opt->{'outfile'})
67 0 1 if (lc $args->[0] eq 'stdin') { }
75 1 0 if (lc $opt->{'outfile'} eq 'stdout') { }
88 1 7 if $in_fh->eof and $content eq ''
90 6 1 unless ($in_fh->eof)
93 1 6 if ($line eq '' || $line =~ /^\s+$/ and $content ne '') { }
98 0 1 unless (defined $opt->{'name'})
112 0 1 unless exists $set_single->{$chr_name}
113 0 1 if $set_single->{$chr_name}->is_empty
123 0 1 if $i_chr_intspan->is_empty
162 0 1 if $ss_start >= $ss_end
168 0 1 if ($indel_intspan->contains($ss_start))
172 0 1 if ($indel_intspan->contains($ss_end))
176 0 1 if $ss_intspan->size <= $opt->{'length'}